update
This commit is contained in:
@@ -5,19 +5,19 @@
|
||||
|
||||
|
||||
typedef struct __mavlink_mission_ack_t {
|
||||
uint8_t target_system; /*< System ID*/
|
||||
uint16_t target_system; /*< System ID*/
|
||||
uint8_t target_component; /*< Component ID*/
|
||||
uint8_t type; /*< Mission result.*/
|
||||
uint8_t mission_type; /*< Mission type.*/
|
||||
} mavlink_mission_ack_t;
|
||||
|
||||
#define MAVLINK_MSG_ID_MISSION_ACK_LEN 4
|
||||
#define MAVLINK_MSG_ID_MISSION_ACK_MIN_LEN 3
|
||||
#define MAVLINK_MSG_ID_47_LEN 4
|
||||
#define MAVLINK_MSG_ID_47_MIN_LEN 3
|
||||
#define MAVLINK_MSG_ID_MISSION_ACK_LEN 5
|
||||
#define MAVLINK_MSG_ID_MISSION_ACK_MIN_LEN 4
|
||||
#define MAVLINK_MSG_ID_47_LEN 5
|
||||
#define MAVLINK_MSG_ID_47_MIN_LEN 4
|
||||
|
||||
#define MAVLINK_MSG_ID_MISSION_ACK_CRC 153
|
||||
#define MAVLINK_MSG_ID_47_CRC 153
|
||||
#define MAVLINK_MSG_ID_MISSION_ACK_CRC 108
|
||||
#define MAVLINK_MSG_ID_47_CRC 108
|
||||
|
||||
|
||||
|
||||
@@ -26,20 +26,20 @@ typedef struct __mavlink_mission_ack_t {
|
||||
47, \
|
||||
"MISSION_ACK", \
|
||||
4, \
|
||||
{ { "target_system", NULL, MAVLINK_TYPE_UINT8_T, 0, 0, offsetof(mavlink_mission_ack_t, target_system) }, \
|
||||
{ "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0, 1, offsetof(mavlink_mission_ack_t, target_component) }, \
|
||||
{ "type", NULL, MAVLINK_TYPE_UINT8_T, 0, 2, offsetof(mavlink_mission_ack_t, type) }, \
|
||||
{ "mission_type", NULL, MAVLINK_TYPE_UINT8_T, 0, 3, offsetof(mavlink_mission_ack_t, mission_type) }, \
|
||||
{ { "target_system", NULL, MAVLINK_TYPE_UINT16_T, 0, 0, offsetof(mavlink_mission_ack_t, target_system) }, \
|
||||
{ "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0, 2, offsetof(mavlink_mission_ack_t, target_component) }, \
|
||||
{ "type", NULL, MAVLINK_TYPE_UINT8_T, 0, 3, offsetof(mavlink_mission_ack_t, type) }, \
|
||||
{ "mission_type", NULL, MAVLINK_TYPE_UINT8_T, 0, 4, offsetof(mavlink_mission_ack_t, mission_type) }, \
|
||||
} \
|
||||
}
|
||||
#else
|
||||
#define MAVLINK_MESSAGE_INFO_MISSION_ACK { \
|
||||
"MISSION_ACK", \
|
||||
4, \
|
||||
{ { "target_system", NULL, MAVLINK_TYPE_UINT8_T, 0, 0, offsetof(mavlink_mission_ack_t, target_system) }, \
|
||||
{ "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0, 1, offsetof(mavlink_mission_ack_t, target_component) }, \
|
||||
{ "type", NULL, MAVLINK_TYPE_UINT8_T, 0, 2, offsetof(mavlink_mission_ack_t, type) }, \
|
||||
{ "mission_type", NULL, MAVLINK_TYPE_UINT8_T, 0, 3, offsetof(mavlink_mission_ack_t, mission_type) }, \
|
||||
{ { "target_system", NULL, MAVLINK_TYPE_UINT16_T, 0, 0, offsetof(mavlink_mission_ack_t, target_system) }, \
|
||||
{ "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0, 2, offsetof(mavlink_mission_ack_t, target_component) }, \
|
||||
{ "type", NULL, MAVLINK_TYPE_UINT8_T, 0, 3, offsetof(mavlink_mission_ack_t, type) }, \
|
||||
{ "mission_type", NULL, MAVLINK_TYPE_UINT8_T, 0, 4, offsetof(mavlink_mission_ack_t, mission_type) }, \
|
||||
} \
|
||||
}
|
||||
#endif
|
||||
@@ -57,14 +57,14 @@ typedef struct __mavlink_mission_ack_t {
|
||||
* @return length of the message in bytes (excluding serial stream start sign)
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_mission_ack_pack(uint16_t system_id, uint8_t component_id, mavlink_message_t* msg,
|
||||
uint8_t target_system, uint8_t target_component, uint8_t type, uint8_t mission_type)
|
||||
uint16_t target_system, uint8_t target_component, uint8_t type, uint8_t mission_type)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_MISSION_ACK_LEN];
|
||||
_mav_put_uint8_t(buf, 0, target_system);
|
||||
_mav_put_uint8_t(buf, 1, target_component);
|
||||
_mav_put_uint8_t(buf, 2, type);
|
||||
_mav_put_uint8_t(buf, 3, mission_type);
|
||||
_mav_put_uint16_t(buf, 0, target_system);
|
||||
_mav_put_uint8_t(buf, 2, target_component);
|
||||
_mav_put_uint8_t(buf, 3, type);
|
||||
_mav_put_uint8_t(buf, 4, mission_type);
|
||||
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_MISSION_ACK_LEN);
|
||||
#else
|
||||
@@ -95,14 +95,14 @@ static inline uint16_t mavlink_msg_mission_ack_pack(uint16_t system_id, uint8_t
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_mission_ack_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,uint8_t type,uint8_t mission_type)
|
||||
uint16_t target_system,uint8_t target_component,uint8_t type,uint8_t mission_type)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_MISSION_ACK_LEN];
|
||||
_mav_put_uint8_t(buf, 0, target_system);
|
||||
_mav_put_uint8_t(buf, 1, target_component);
|
||||
_mav_put_uint8_t(buf, 2, type);
|
||||
_mav_put_uint8_t(buf, 3, mission_type);
|
||||
_mav_put_uint16_t(buf, 0, target_system);
|
||||
_mav_put_uint8_t(buf, 2, target_component);
|
||||
_mav_put_uint8_t(buf, 3, type);
|
||||
_mav_put_uint8_t(buf, 4, mission_type);
|
||||
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_MISSION_ACK_LEN);
|
||||
#else
|
||||
@@ -157,14 +157,14 @@ static inline uint16_t mavlink_msg_mission_ack_encode_chan(uint16_t system_id, u
|
||||
*/
|
||||
#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
|
||||
|
||||
static inline void mavlink_msg_mission_ack_send(mavlink_channel_t chan, uint8_t target_system, uint8_t target_component, uint8_t type, uint8_t mission_type)
|
||||
static inline void mavlink_msg_mission_ack_send(mavlink_channel_t chan, uint16_t target_system, uint8_t target_component, uint8_t type, uint8_t mission_type)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_MISSION_ACK_LEN];
|
||||
_mav_put_uint8_t(buf, 0, target_system);
|
||||
_mav_put_uint8_t(buf, 1, target_component);
|
||||
_mav_put_uint8_t(buf, 2, type);
|
||||
_mav_put_uint8_t(buf, 3, mission_type);
|
||||
_mav_put_uint16_t(buf, 0, target_system);
|
||||
_mav_put_uint8_t(buf, 2, target_component);
|
||||
_mav_put_uint8_t(buf, 3, type);
|
||||
_mav_put_uint8_t(buf, 4, mission_type);
|
||||
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_MISSION_ACK, buf, MAVLINK_MSG_ID_MISSION_ACK_MIN_LEN, MAVLINK_MSG_ID_MISSION_ACK_LEN, MAVLINK_MSG_ID_MISSION_ACK_CRC);
|
||||
#else
|
||||
@@ -200,14 +200,14 @@ static inline void mavlink_msg_mission_ack_send_struct(mavlink_channel_t chan, c
|
||||
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_mission_ack_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint8_t target_system, uint8_t target_component, uint8_t type, uint8_t mission_type)
|
||||
static inline void mavlink_msg_mission_ack_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint16_t target_system, uint8_t target_component, uint8_t type, uint8_t mission_type)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char *buf = (char *)msgbuf;
|
||||
_mav_put_uint8_t(buf, 0, target_system);
|
||||
_mav_put_uint8_t(buf, 1, target_component);
|
||||
_mav_put_uint8_t(buf, 2, type);
|
||||
_mav_put_uint8_t(buf, 3, mission_type);
|
||||
_mav_put_uint16_t(buf, 0, target_system);
|
||||
_mav_put_uint8_t(buf, 2, target_component);
|
||||
_mav_put_uint8_t(buf, 3, type);
|
||||
_mav_put_uint8_t(buf, 4, mission_type);
|
||||
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_MISSION_ACK, buf, MAVLINK_MSG_ID_MISSION_ACK_MIN_LEN, MAVLINK_MSG_ID_MISSION_ACK_LEN, MAVLINK_MSG_ID_MISSION_ACK_CRC);
|
||||
#else
|
||||
@@ -232,9 +232,9 @@ static inline void mavlink_msg_mission_ack_send_buf(mavlink_message_t *msgbuf, m
|
||||
*
|
||||
* @return System ID
|
||||
*/
|
||||
static inline uint8_t mavlink_msg_mission_ack_get_target_system(const mavlink_message_t* msg)
|
||||
static inline uint16_t mavlink_msg_mission_ack_get_target_system(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint8_t(msg, 0);
|
||||
return _MAV_RETURN_uint16_t(msg, 0);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -244,7 +244,7 @@ static inline uint8_t mavlink_msg_mission_ack_get_target_system(const mavlink_me
|
||||
*/
|
||||
static inline uint8_t mavlink_msg_mission_ack_get_target_component(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint8_t(msg, 1);
|
||||
return _MAV_RETURN_uint8_t(msg, 2);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -254,7 +254,7 @@ static inline uint8_t mavlink_msg_mission_ack_get_target_component(const mavlink
|
||||
*/
|
||||
static inline uint8_t mavlink_msg_mission_ack_get_type(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint8_t(msg, 2);
|
||||
return _MAV_RETURN_uint8_t(msg, 3);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -264,7 +264,7 @@ static inline uint8_t mavlink_msg_mission_ack_get_type(const mavlink_message_t*
|
||||
*/
|
||||
static inline uint8_t mavlink_msg_mission_ack_get_mission_type(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint8_t(msg, 3);
|
||||
return _MAV_RETURN_uint8_t(msg, 4);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user