update
This commit is contained in:
@@ -6,18 +6,18 @@
|
||||
|
||||
typedef struct __mavlink_remote_log_block_status_t {
|
||||
uint32_t seqno; /*< Log data block sequence number.*/
|
||||
uint8_t target_system; /*< System ID.*/
|
||||
uint16_t target_system; /*< System ID.*/
|
||||
uint8_t target_component; /*< Component ID.*/
|
||||
uint8_t status; /*< Log data block status.*/
|
||||
} mavlink_remote_log_block_status_t;
|
||||
|
||||
#define MAVLINK_MSG_ID_REMOTE_LOG_BLOCK_STATUS_LEN 7
|
||||
#define MAVLINK_MSG_ID_REMOTE_LOG_BLOCK_STATUS_MIN_LEN 7
|
||||
#define MAVLINK_MSG_ID_185_LEN 7
|
||||
#define MAVLINK_MSG_ID_185_MIN_LEN 7
|
||||
#define MAVLINK_MSG_ID_REMOTE_LOG_BLOCK_STATUS_LEN 8
|
||||
#define MAVLINK_MSG_ID_REMOTE_LOG_BLOCK_STATUS_MIN_LEN 8
|
||||
#define MAVLINK_MSG_ID_185_LEN 8
|
||||
#define MAVLINK_MSG_ID_185_MIN_LEN 8
|
||||
|
||||
#define MAVLINK_MSG_ID_REMOTE_LOG_BLOCK_STATUS_CRC 186
|
||||
#define MAVLINK_MSG_ID_185_CRC 186
|
||||
#define MAVLINK_MSG_ID_REMOTE_LOG_BLOCK_STATUS_CRC 140
|
||||
#define MAVLINK_MSG_ID_185_CRC 140
|
||||
|
||||
|
||||
|
||||
@@ -26,20 +26,20 @@ typedef struct __mavlink_remote_log_block_status_t {
|
||||
185, \
|
||||
"REMOTE_LOG_BLOCK_STATUS", \
|
||||
4, \
|
||||
{ { "target_system", NULL, MAVLINK_TYPE_UINT8_T, 0, 4, offsetof(mavlink_remote_log_block_status_t, target_system) }, \
|
||||
{ "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0, 5, offsetof(mavlink_remote_log_block_status_t, target_component) }, \
|
||||
{ { "target_system", NULL, MAVLINK_TYPE_UINT16_T, 0, 4, offsetof(mavlink_remote_log_block_status_t, target_system) }, \
|
||||
{ "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0, 6, offsetof(mavlink_remote_log_block_status_t, target_component) }, \
|
||||
{ "seqno", NULL, MAVLINK_TYPE_UINT32_T, 0, 0, offsetof(mavlink_remote_log_block_status_t, seqno) }, \
|
||||
{ "status", NULL, MAVLINK_TYPE_UINT8_T, 0, 6, offsetof(mavlink_remote_log_block_status_t, status) }, \
|
||||
{ "status", NULL, MAVLINK_TYPE_UINT8_T, 0, 7, offsetof(mavlink_remote_log_block_status_t, status) }, \
|
||||
} \
|
||||
}
|
||||
#else
|
||||
#define MAVLINK_MESSAGE_INFO_REMOTE_LOG_BLOCK_STATUS { \
|
||||
"REMOTE_LOG_BLOCK_STATUS", \
|
||||
4, \
|
||||
{ { "target_system", NULL, MAVLINK_TYPE_UINT8_T, 0, 4, offsetof(mavlink_remote_log_block_status_t, target_system) }, \
|
||||
{ "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0, 5, offsetof(mavlink_remote_log_block_status_t, target_component) }, \
|
||||
{ { "target_system", NULL, MAVLINK_TYPE_UINT16_T, 0, 4, offsetof(mavlink_remote_log_block_status_t, target_system) }, \
|
||||
{ "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0, 6, offsetof(mavlink_remote_log_block_status_t, target_component) }, \
|
||||
{ "seqno", NULL, MAVLINK_TYPE_UINT32_T, 0, 0, offsetof(mavlink_remote_log_block_status_t, seqno) }, \
|
||||
{ "status", NULL, MAVLINK_TYPE_UINT8_T, 0, 6, offsetof(mavlink_remote_log_block_status_t, status) }, \
|
||||
{ "status", NULL, MAVLINK_TYPE_UINT8_T, 0, 7, offsetof(mavlink_remote_log_block_status_t, status) }, \
|
||||
} \
|
||||
}
|
||||
#endif
|
||||
@@ -57,14 +57,14 @@ typedef struct __mavlink_remote_log_block_status_t {
|
||||
* @return length of the message in bytes (excluding serial stream start sign)
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_remote_log_block_status_pack(uint16_t system_id, uint8_t component_id, mavlink_message_t* msg,
|
||||
uint8_t target_system, uint8_t target_component, uint32_t seqno, uint8_t status)
|
||||
uint16_t target_system, uint8_t target_component, uint32_t seqno, uint8_t status)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_REMOTE_LOG_BLOCK_STATUS_LEN];
|
||||
_mav_put_uint32_t(buf, 0, seqno);
|
||||
_mav_put_uint8_t(buf, 4, target_system);
|
||||
_mav_put_uint8_t(buf, 5, target_component);
|
||||
_mav_put_uint8_t(buf, 6, status);
|
||||
_mav_put_uint16_t(buf, 4, target_system);
|
||||
_mav_put_uint8_t(buf, 6, target_component);
|
||||
_mav_put_uint8_t(buf, 7, status);
|
||||
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_REMOTE_LOG_BLOCK_STATUS_LEN);
|
||||
#else
|
||||
@@ -95,14 +95,14 @@ static inline uint16_t mavlink_msg_remote_log_block_status_pack(uint16_t system_
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_remote_log_block_status_pack_chan(uint16_t system_id, uint8_t component_id, uint8_t chan,
|
||||
mavlink_message_t* msg,
|
||||
uint8_t target_system,uint8_t target_component,uint32_t seqno,uint8_t status)
|
||||
uint16_t target_system,uint8_t target_component,uint32_t seqno,uint8_t status)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_REMOTE_LOG_BLOCK_STATUS_LEN];
|
||||
_mav_put_uint32_t(buf, 0, seqno);
|
||||
_mav_put_uint8_t(buf, 4, target_system);
|
||||
_mav_put_uint8_t(buf, 5, target_component);
|
||||
_mav_put_uint8_t(buf, 6, status);
|
||||
_mav_put_uint16_t(buf, 4, target_system);
|
||||
_mav_put_uint8_t(buf, 6, target_component);
|
||||
_mav_put_uint8_t(buf, 7, status);
|
||||
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_REMOTE_LOG_BLOCK_STATUS_LEN);
|
||||
#else
|
||||
@@ -157,14 +157,14 @@ static inline uint16_t mavlink_msg_remote_log_block_status_encode_chan(uint16_t
|
||||
*/
|
||||
#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
|
||||
|
||||
static inline void mavlink_msg_remote_log_block_status_send(mavlink_channel_t chan, uint8_t target_system, uint8_t target_component, uint32_t seqno, uint8_t status)
|
||||
static inline void mavlink_msg_remote_log_block_status_send(mavlink_channel_t chan, uint16_t target_system, uint8_t target_component, uint32_t seqno, uint8_t status)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_REMOTE_LOG_BLOCK_STATUS_LEN];
|
||||
_mav_put_uint32_t(buf, 0, seqno);
|
||||
_mav_put_uint8_t(buf, 4, target_system);
|
||||
_mav_put_uint8_t(buf, 5, target_component);
|
||||
_mav_put_uint8_t(buf, 6, status);
|
||||
_mav_put_uint16_t(buf, 4, target_system);
|
||||
_mav_put_uint8_t(buf, 6, target_component);
|
||||
_mav_put_uint8_t(buf, 7, status);
|
||||
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_REMOTE_LOG_BLOCK_STATUS, buf, MAVLINK_MSG_ID_REMOTE_LOG_BLOCK_STATUS_MIN_LEN, MAVLINK_MSG_ID_REMOTE_LOG_BLOCK_STATUS_LEN, MAVLINK_MSG_ID_REMOTE_LOG_BLOCK_STATUS_CRC);
|
||||
#else
|
||||
@@ -200,14 +200,14 @@ static inline void mavlink_msg_remote_log_block_status_send_struct(mavlink_chann
|
||||
is usually the receive buffer for the channel, and allows a reply to an
|
||||
incoming message with minimum stack space usage.
|
||||
*/
|
||||
static inline void mavlink_msg_remote_log_block_status_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint8_t target_system, uint8_t target_component, uint32_t seqno, uint8_t status)
|
||||
static inline void mavlink_msg_remote_log_block_status_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint16_t target_system, uint8_t target_component, uint32_t seqno, uint8_t status)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char *buf = (char *)msgbuf;
|
||||
_mav_put_uint32_t(buf, 0, seqno);
|
||||
_mav_put_uint8_t(buf, 4, target_system);
|
||||
_mav_put_uint8_t(buf, 5, target_component);
|
||||
_mav_put_uint8_t(buf, 6, status);
|
||||
_mav_put_uint16_t(buf, 4, target_system);
|
||||
_mav_put_uint8_t(buf, 6, target_component);
|
||||
_mav_put_uint8_t(buf, 7, status);
|
||||
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_REMOTE_LOG_BLOCK_STATUS, buf, MAVLINK_MSG_ID_REMOTE_LOG_BLOCK_STATUS_MIN_LEN, MAVLINK_MSG_ID_REMOTE_LOG_BLOCK_STATUS_LEN, MAVLINK_MSG_ID_REMOTE_LOG_BLOCK_STATUS_CRC);
|
||||
#else
|
||||
@@ -232,9 +232,9 @@ static inline void mavlink_msg_remote_log_block_status_send_buf(mavlink_message_
|
||||
*
|
||||
* @return System ID.
|
||||
*/
|
||||
static inline uint8_t mavlink_msg_remote_log_block_status_get_target_system(const mavlink_message_t* msg)
|
||||
static inline uint16_t mavlink_msg_remote_log_block_status_get_target_system(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint8_t(msg, 4);
|
||||
return _MAV_RETURN_uint16_t(msg, 4);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -244,7 +244,7 @@ static inline uint8_t mavlink_msg_remote_log_block_status_get_target_system(cons
|
||||
*/
|
||||
static inline uint8_t mavlink_msg_remote_log_block_status_get_target_component(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint8_t(msg, 5);
|
||||
return _MAV_RETURN_uint8_t(msg, 6);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -264,7 +264,7 @@ static inline uint32_t mavlink_msg_remote_log_block_status_get_seqno(const mavli
|
||||
*/
|
||||
static inline uint8_t mavlink_msg_remote_log_block_status_get_status(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint8_t(msg, 6);
|
||||
return _MAV_RETURN_uint8_t(msg, 7);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user