update XYK

This commit is contained in:
Matt
2019-03-09 18:16:52 +08:00
parent 59e3f15312
commit a2c2cf99f2
17 changed files with 814 additions and 578 deletions
+48 -48
View File
@@ -8,11 +8,11 @@ typedef struct __mavlink_xyk_airpoint_command_t {
int32_t latitude; /*< latitude,0.0000001,[-180^,180^]*/
int32_t longitude; /*< longitude,0.0000001,[-180^,180^]*/
int32_t altitude; /*< altitude,0.01m,[-50000,100000]*/
uint16_t AIRPOINT_ID; /*< Sequence1-800*/
uint16_t LINE_LENGTH; /*< LENGTH,points contained in the aireline*/
uint16_t AIRPOINT_ID; /*< Sequence1-800,65535 for abnormal airpoint*/
uint16_t AIRLINE_LENGTH; /*< LENGTH,points contained in the aireline*/
uint8_t PLANE_ID; /*< System which should execute the command*/
uint8_t confirmation; /*< 0: First transmission of this command. 1-255: Confirmation transmissions (e.g. for kill command)*/
uint8_t LINE_ID; /*< SEE XYK_AIRLINE_TYPE.*/
uint8_t AIRLINE_ID; /*< SEE XYK_AIRLINE_TYPE.*/
uint8_t current; /*< false:0, true:1.*/
uint8_t SWITCH_MOD; /*< defallt Autocontinue to next waypoint.*/
uint8_t LOITER_MOD; /*< defallt arrive at next waypoint with an auto climb rate .*/
@@ -26,8 +26,8 @@ typedef struct __mavlink_xyk_airpoint_command_t {
#define MAVLINK_MSG_ID_30033_LEN 25
#define MAVLINK_MSG_ID_30033_MIN_LEN 25
#define MAVLINK_MSG_ID_XYK_AIRPOINT_COMMAND_CRC 142
#define MAVLINK_MSG_ID_30033_CRC 142
#define MAVLINK_MSG_ID_XYK_AIRPOINT_COMMAND_CRC 36
#define MAVLINK_MSG_ID_30033_CRC 36
@@ -38,9 +38,9 @@ typedef struct __mavlink_xyk_airpoint_command_t {
14, \
{ { "PLANE_ID", NULL, MAVLINK_TYPE_UINT8_T, 0, 16, offsetof(mavlink_xyk_airpoint_command_t, PLANE_ID) }, \
{ "confirmation", NULL, MAVLINK_TYPE_UINT8_T, 0, 17, offsetof(mavlink_xyk_airpoint_command_t, confirmation) }, \
{ "LINE_ID", NULL, MAVLINK_TYPE_UINT8_T, 0, 18, offsetof(mavlink_xyk_airpoint_command_t, LINE_ID) }, \
{ "AIRLINE_ID", NULL, MAVLINK_TYPE_UINT8_T, 0, 18, offsetof(mavlink_xyk_airpoint_command_t, AIRLINE_ID) }, \
{ "AIRPOINT_ID", NULL, MAVLINK_TYPE_UINT16_T, 0, 12, offsetof(mavlink_xyk_airpoint_command_t, AIRPOINT_ID) }, \
{ "LINE_LENGTH", NULL, MAVLINK_TYPE_UINT16_T, 0, 14, offsetof(mavlink_xyk_airpoint_command_t, LINE_LENGTH) }, \
{ "AIRLINE_LENGTH", NULL, MAVLINK_TYPE_UINT16_T, 0, 14, offsetof(mavlink_xyk_airpoint_command_t, AIRLINE_LENGTH) }, \
{ "current", NULL, MAVLINK_TYPE_UINT8_T, 0, 19, offsetof(mavlink_xyk_airpoint_command_t, current) }, \
{ "SWITCH_MOD", NULL, MAVLINK_TYPE_UINT8_T, 0, 20, offsetof(mavlink_xyk_airpoint_command_t, SWITCH_MOD) }, \
{ "LOITER_MOD", NULL, MAVLINK_TYPE_UINT8_T, 0, 21, offsetof(mavlink_xyk_airpoint_command_t, LOITER_MOD) }, \
@@ -58,9 +58,9 @@ typedef struct __mavlink_xyk_airpoint_command_t {
14, \
{ { "PLANE_ID", NULL, MAVLINK_TYPE_UINT8_T, 0, 16, offsetof(mavlink_xyk_airpoint_command_t, PLANE_ID) }, \
{ "confirmation", NULL, MAVLINK_TYPE_UINT8_T, 0, 17, offsetof(mavlink_xyk_airpoint_command_t, confirmation) }, \
{ "LINE_ID", NULL, MAVLINK_TYPE_UINT8_T, 0, 18, offsetof(mavlink_xyk_airpoint_command_t, LINE_ID) }, \
{ "AIRLINE_ID", NULL, MAVLINK_TYPE_UINT8_T, 0, 18, offsetof(mavlink_xyk_airpoint_command_t, AIRLINE_ID) }, \
{ "AIRPOINT_ID", NULL, MAVLINK_TYPE_UINT16_T, 0, 12, offsetof(mavlink_xyk_airpoint_command_t, AIRPOINT_ID) }, \
{ "LINE_LENGTH", NULL, MAVLINK_TYPE_UINT16_T, 0, 14, offsetof(mavlink_xyk_airpoint_command_t, LINE_LENGTH) }, \
{ "AIRLINE_LENGTH", NULL, MAVLINK_TYPE_UINT16_T, 0, 14, offsetof(mavlink_xyk_airpoint_command_t, AIRLINE_LENGTH) }, \
{ "current", NULL, MAVLINK_TYPE_UINT8_T, 0, 19, offsetof(mavlink_xyk_airpoint_command_t, current) }, \
{ "SWITCH_MOD", NULL, MAVLINK_TYPE_UINT8_T, 0, 20, offsetof(mavlink_xyk_airpoint_command_t, SWITCH_MOD) }, \
{ "LOITER_MOD", NULL, MAVLINK_TYPE_UINT8_T, 0, 21, offsetof(mavlink_xyk_airpoint_command_t, LOITER_MOD) }, \
@@ -82,9 +82,9 @@ typedef struct __mavlink_xyk_airpoint_command_t {
*
* @param PLANE_ID System which should execute the command
* @param confirmation 0: First transmission of this command. 1-255: Confirmation transmissions (e.g. for kill command)
* @param LINE_ID SEE XYK_AIRLINE_TYPE.
* @param AIRPOINT_ID Sequence1-800
* @param LINE_LENGTH LENGTH,points contained in the aireline
* @param AIRLINE_ID SEE XYK_AIRLINE_TYPE.
* @param AIRPOINT_ID Sequence1-800,65535 for abnormal airpoint
* @param AIRLINE_LENGTH LENGTH,points contained in the aireline
* @param current false:0, true:1.
* @param SWITCH_MOD defallt Autocontinue to next waypoint.
* @param LOITER_MOD defallt arrive at next waypoint with an auto climb rate .
@@ -97,7 +97,7 @@ typedef struct __mavlink_xyk_airpoint_command_t {
* @return length of the message in bytes (excluding serial stream start sign)
*/
static inline uint16_t mavlink_msg_xyk_airpoint_command_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
uint8_t PLANE_ID, uint8_t confirmation, uint8_t LINE_ID, uint16_t AIRPOINT_ID, uint16_t LINE_LENGTH, uint8_t current, uint8_t SWITCH_MOD, uint8_t LOITER_MOD, uint8_t ACTION, uint8_t MISSION_GRAP, uint8_t POINT_SPEED, int32_t latitude, int32_t longitude, int32_t altitude)
uint8_t PLANE_ID, uint8_t confirmation, uint8_t AIRLINE_ID, uint16_t AIRPOINT_ID, uint16_t AIRLINE_LENGTH, uint8_t current, uint8_t SWITCH_MOD, uint8_t LOITER_MOD, uint8_t ACTION, uint8_t MISSION_GRAP, uint8_t POINT_SPEED, int32_t latitude, int32_t longitude, int32_t altitude)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
char buf[MAVLINK_MSG_ID_XYK_AIRPOINT_COMMAND_LEN];
@@ -105,10 +105,10 @@ static inline uint16_t mavlink_msg_xyk_airpoint_command_pack(uint8_t system_id,
_mav_put_int32_t(buf, 4, longitude);
_mav_put_int32_t(buf, 8, altitude);
_mav_put_uint16_t(buf, 12, AIRPOINT_ID);
_mav_put_uint16_t(buf, 14, LINE_LENGTH);
_mav_put_uint16_t(buf, 14, AIRLINE_LENGTH);
_mav_put_uint8_t(buf, 16, PLANE_ID);
_mav_put_uint8_t(buf, 17, confirmation);
_mav_put_uint8_t(buf, 18, LINE_ID);
_mav_put_uint8_t(buf, 18, AIRLINE_ID);
_mav_put_uint8_t(buf, 19, current);
_mav_put_uint8_t(buf, 20, SWITCH_MOD);
_mav_put_uint8_t(buf, 21, LOITER_MOD);
@@ -123,10 +123,10 @@ static inline uint16_t mavlink_msg_xyk_airpoint_command_pack(uint8_t system_id,
packet.longitude = longitude;
packet.altitude = altitude;
packet.AIRPOINT_ID = AIRPOINT_ID;
packet.LINE_LENGTH = LINE_LENGTH;
packet.AIRLINE_LENGTH = AIRLINE_LENGTH;
packet.PLANE_ID = PLANE_ID;
packet.confirmation = confirmation;
packet.LINE_ID = LINE_ID;
packet.AIRLINE_ID = AIRLINE_ID;
packet.current = current;
packet.SWITCH_MOD = SWITCH_MOD;
packet.LOITER_MOD = LOITER_MOD;
@@ -149,9 +149,9 @@ static inline uint16_t mavlink_msg_xyk_airpoint_command_pack(uint8_t system_id,
* @param msg The MAVLink message to compress the data into
* @param PLANE_ID System which should execute the command
* @param confirmation 0: First transmission of this command. 1-255: Confirmation transmissions (e.g. for kill command)
* @param LINE_ID SEE XYK_AIRLINE_TYPE.
* @param AIRPOINT_ID Sequence1-800
* @param LINE_LENGTH LENGTH,points contained in the aireline
* @param AIRLINE_ID SEE XYK_AIRLINE_TYPE.
* @param AIRPOINT_ID Sequence1-800,65535 for abnormal airpoint
* @param AIRLINE_LENGTH LENGTH,points contained in the aireline
* @param current false:0, true:1.
* @param SWITCH_MOD defallt Autocontinue to next waypoint.
* @param LOITER_MOD defallt arrive at next waypoint with an auto climb rate .
@@ -165,7 +165,7 @@ static inline uint16_t mavlink_msg_xyk_airpoint_command_pack(uint8_t system_id,
*/
static inline uint16_t mavlink_msg_xyk_airpoint_command_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
mavlink_message_t* msg,
uint8_t PLANE_ID,uint8_t confirmation,uint8_t LINE_ID,uint16_t AIRPOINT_ID,uint16_t LINE_LENGTH,uint8_t current,uint8_t SWITCH_MOD,uint8_t LOITER_MOD,uint8_t ACTION,uint8_t MISSION_GRAP,uint8_t POINT_SPEED,int32_t latitude,int32_t longitude,int32_t altitude)
uint8_t PLANE_ID,uint8_t confirmation,uint8_t AIRLINE_ID,uint16_t AIRPOINT_ID,uint16_t AIRLINE_LENGTH,uint8_t current,uint8_t SWITCH_MOD,uint8_t LOITER_MOD,uint8_t ACTION,uint8_t MISSION_GRAP,uint8_t POINT_SPEED,int32_t latitude,int32_t longitude,int32_t altitude)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
char buf[MAVLINK_MSG_ID_XYK_AIRPOINT_COMMAND_LEN];
@@ -173,10 +173,10 @@ static inline uint16_t mavlink_msg_xyk_airpoint_command_pack_chan(uint8_t system
_mav_put_int32_t(buf, 4, longitude);
_mav_put_int32_t(buf, 8, altitude);
_mav_put_uint16_t(buf, 12, AIRPOINT_ID);
_mav_put_uint16_t(buf, 14, LINE_LENGTH);
_mav_put_uint16_t(buf, 14, AIRLINE_LENGTH);
_mav_put_uint8_t(buf, 16, PLANE_ID);
_mav_put_uint8_t(buf, 17, confirmation);
_mav_put_uint8_t(buf, 18, LINE_ID);
_mav_put_uint8_t(buf, 18, AIRLINE_ID);
_mav_put_uint8_t(buf, 19, current);
_mav_put_uint8_t(buf, 20, SWITCH_MOD);
_mav_put_uint8_t(buf, 21, LOITER_MOD);
@@ -191,10 +191,10 @@ static inline uint16_t mavlink_msg_xyk_airpoint_command_pack_chan(uint8_t system
packet.longitude = longitude;
packet.altitude = altitude;
packet.AIRPOINT_ID = AIRPOINT_ID;
packet.LINE_LENGTH = LINE_LENGTH;
packet.AIRLINE_LENGTH = AIRLINE_LENGTH;
packet.PLANE_ID = PLANE_ID;
packet.confirmation = confirmation;
packet.LINE_ID = LINE_ID;
packet.AIRLINE_ID = AIRLINE_ID;
packet.current = current;
packet.SWITCH_MOD = SWITCH_MOD;
packet.LOITER_MOD = LOITER_MOD;
@@ -219,7 +219,7 @@ static inline uint16_t mavlink_msg_xyk_airpoint_command_pack_chan(uint8_t system
*/
static inline uint16_t mavlink_msg_xyk_airpoint_command_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg, const mavlink_xyk_airpoint_command_t* xyk_airpoint_command)
{
return mavlink_msg_xyk_airpoint_command_pack(system_id, component_id, msg, xyk_airpoint_command->PLANE_ID, xyk_airpoint_command->confirmation, xyk_airpoint_command->LINE_ID, xyk_airpoint_command->AIRPOINT_ID, xyk_airpoint_command->LINE_LENGTH, xyk_airpoint_command->current, xyk_airpoint_command->SWITCH_MOD, xyk_airpoint_command->LOITER_MOD, xyk_airpoint_command->ACTION, xyk_airpoint_command->MISSION_GRAP, xyk_airpoint_command->POINT_SPEED, xyk_airpoint_command->latitude, xyk_airpoint_command->longitude, xyk_airpoint_command->altitude);
return mavlink_msg_xyk_airpoint_command_pack(system_id, component_id, msg, xyk_airpoint_command->PLANE_ID, xyk_airpoint_command->confirmation, xyk_airpoint_command->AIRLINE_ID, xyk_airpoint_command->AIRPOINT_ID, xyk_airpoint_command->AIRLINE_LENGTH, xyk_airpoint_command->current, xyk_airpoint_command->SWITCH_MOD, xyk_airpoint_command->LOITER_MOD, xyk_airpoint_command->ACTION, xyk_airpoint_command->MISSION_GRAP, xyk_airpoint_command->POINT_SPEED, xyk_airpoint_command->latitude, xyk_airpoint_command->longitude, xyk_airpoint_command->altitude);
}
/**
@@ -233,7 +233,7 @@ static inline uint16_t mavlink_msg_xyk_airpoint_command_encode(uint8_t system_id
*/
static inline uint16_t mavlink_msg_xyk_airpoint_command_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg, const mavlink_xyk_airpoint_command_t* xyk_airpoint_command)
{
return mavlink_msg_xyk_airpoint_command_pack_chan(system_id, component_id, chan, msg, xyk_airpoint_command->PLANE_ID, xyk_airpoint_command->confirmation, xyk_airpoint_command->LINE_ID, xyk_airpoint_command->AIRPOINT_ID, xyk_airpoint_command->LINE_LENGTH, xyk_airpoint_command->current, xyk_airpoint_command->SWITCH_MOD, xyk_airpoint_command->LOITER_MOD, xyk_airpoint_command->ACTION, xyk_airpoint_command->MISSION_GRAP, xyk_airpoint_command->POINT_SPEED, xyk_airpoint_command->latitude, xyk_airpoint_command->longitude, xyk_airpoint_command->altitude);
return mavlink_msg_xyk_airpoint_command_pack_chan(system_id, component_id, chan, msg, xyk_airpoint_command->PLANE_ID, xyk_airpoint_command->confirmation, xyk_airpoint_command->AIRLINE_ID, xyk_airpoint_command->AIRPOINT_ID, xyk_airpoint_command->AIRLINE_LENGTH, xyk_airpoint_command->current, xyk_airpoint_command->SWITCH_MOD, xyk_airpoint_command->LOITER_MOD, xyk_airpoint_command->ACTION, xyk_airpoint_command->MISSION_GRAP, xyk_airpoint_command->POINT_SPEED, xyk_airpoint_command->latitude, xyk_airpoint_command->longitude, xyk_airpoint_command->altitude);
}
/**
@@ -242,9 +242,9 @@ static inline uint16_t mavlink_msg_xyk_airpoint_command_encode_chan(uint8_t syst
*
* @param PLANE_ID System which should execute the command
* @param confirmation 0: First transmission of this command. 1-255: Confirmation transmissions (e.g. for kill command)
* @param LINE_ID SEE XYK_AIRLINE_TYPE.
* @param AIRPOINT_ID Sequence1-800
* @param LINE_LENGTH LENGTH,points contained in the aireline
* @param AIRLINE_ID SEE XYK_AIRLINE_TYPE.
* @param AIRPOINT_ID Sequence1-800,65535 for abnormal airpoint
* @param AIRLINE_LENGTH LENGTH,points contained in the aireline
* @param current false:0, true:1.
* @param SWITCH_MOD defallt Autocontinue to next waypoint.
* @param LOITER_MOD defallt arrive at next waypoint with an auto climb rate .
@@ -257,7 +257,7 @@ static inline uint16_t mavlink_msg_xyk_airpoint_command_encode_chan(uint8_t syst
*/
#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
static inline void mavlink_msg_xyk_airpoint_command_send(mavlink_channel_t chan, uint8_t PLANE_ID, uint8_t confirmation, uint8_t LINE_ID, uint16_t AIRPOINT_ID, uint16_t LINE_LENGTH, uint8_t current, uint8_t SWITCH_MOD, uint8_t LOITER_MOD, uint8_t ACTION, uint8_t MISSION_GRAP, uint8_t POINT_SPEED, int32_t latitude, int32_t longitude, int32_t altitude)
static inline void mavlink_msg_xyk_airpoint_command_send(mavlink_channel_t chan, uint8_t PLANE_ID, uint8_t confirmation, uint8_t AIRLINE_ID, uint16_t AIRPOINT_ID, uint16_t AIRLINE_LENGTH, uint8_t current, uint8_t SWITCH_MOD, uint8_t LOITER_MOD, uint8_t ACTION, uint8_t MISSION_GRAP, uint8_t POINT_SPEED, int32_t latitude, int32_t longitude, int32_t altitude)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
char buf[MAVLINK_MSG_ID_XYK_AIRPOINT_COMMAND_LEN];
@@ -265,10 +265,10 @@ static inline void mavlink_msg_xyk_airpoint_command_send(mavlink_channel_t chan,
_mav_put_int32_t(buf, 4, longitude);
_mav_put_int32_t(buf, 8, altitude);
_mav_put_uint16_t(buf, 12, AIRPOINT_ID);
_mav_put_uint16_t(buf, 14, LINE_LENGTH);
_mav_put_uint16_t(buf, 14, AIRLINE_LENGTH);
_mav_put_uint8_t(buf, 16, PLANE_ID);
_mav_put_uint8_t(buf, 17, confirmation);
_mav_put_uint8_t(buf, 18, LINE_ID);
_mav_put_uint8_t(buf, 18, AIRLINE_ID);
_mav_put_uint8_t(buf, 19, current);
_mav_put_uint8_t(buf, 20, SWITCH_MOD);
_mav_put_uint8_t(buf, 21, LOITER_MOD);
@@ -283,10 +283,10 @@ static inline void mavlink_msg_xyk_airpoint_command_send(mavlink_channel_t chan,
packet.longitude = longitude;
packet.altitude = altitude;
packet.AIRPOINT_ID = AIRPOINT_ID;
packet.LINE_LENGTH = LINE_LENGTH;
packet.AIRLINE_LENGTH = AIRLINE_LENGTH;
packet.PLANE_ID = PLANE_ID;
packet.confirmation = confirmation;
packet.LINE_ID = LINE_ID;
packet.AIRLINE_ID = AIRLINE_ID;
packet.current = current;
packet.SWITCH_MOD = SWITCH_MOD;
packet.LOITER_MOD = LOITER_MOD;
@@ -306,7 +306,7 @@ static inline void mavlink_msg_xyk_airpoint_command_send(mavlink_channel_t chan,
static inline void mavlink_msg_xyk_airpoint_command_send_struct(mavlink_channel_t chan, const mavlink_xyk_airpoint_command_t* xyk_airpoint_command)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
mavlink_msg_xyk_airpoint_command_send(chan, xyk_airpoint_command->PLANE_ID, xyk_airpoint_command->confirmation, xyk_airpoint_command->LINE_ID, xyk_airpoint_command->AIRPOINT_ID, xyk_airpoint_command->LINE_LENGTH, xyk_airpoint_command->current, xyk_airpoint_command->SWITCH_MOD, xyk_airpoint_command->LOITER_MOD, xyk_airpoint_command->ACTION, xyk_airpoint_command->MISSION_GRAP, xyk_airpoint_command->POINT_SPEED, xyk_airpoint_command->latitude, xyk_airpoint_command->longitude, xyk_airpoint_command->altitude);
mavlink_msg_xyk_airpoint_command_send(chan, xyk_airpoint_command->PLANE_ID, xyk_airpoint_command->confirmation, xyk_airpoint_command->AIRLINE_ID, xyk_airpoint_command->AIRPOINT_ID, xyk_airpoint_command->AIRLINE_LENGTH, xyk_airpoint_command->current, xyk_airpoint_command->SWITCH_MOD, xyk_airpoint_command->LOITER_MOD, xyk_airpoint_command->ACTION, xyk_airpoint_command->MISSION_GRAP, xyk_airpoint_command->POINT_SPEED, xyk_airpoint_command->latitude, xyk_airpoint_command->longitude, xyk_airpoint_command->altitude);
#else
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_XYK_AIRPOINT_COMMAND, (const char *)xyk_airpoint_command, MAVLINK_MSG_ID_XYK_AIRPOINT_COMMAND_MIN_LEN, MAVLINK_MSG_ID_XYK_AIRPOINT_COMMAND_LEN, MAVLINK_MSG_ID_XYK_AIRPOINT_COMMAND_CRC);
#endif
@@ -320,7 +320,7 @@ static inline void mavlink_msg_xyk_airpoint_command_send_struct(mavlink_channel_
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_xyk_airpoint_command_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint8_t PLANE_ID, uint8_t confirmation, uint8_t LINE_ID, uint16_t AIRPOINT_ID, uint16_t LINE_LENGTH, uint8_t current, uint8_t SWITCH_MOD, uint8_t LOITER_MOD, uint8_t ACTION, uint8_t MISSION_GRAP, uint8_t POINT_SPEED, int32_t latitude, int32_t longitude, int32_t altitude)
static inline void mavlink_msg_xyk_airpoint_command_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint8_t PLANE_ID, uint8_t confirmation, uint8_t AIRLINE_ID, uint16_t AIRPOINT_ID, uint16_t AIRLINE_LENGTH, uint8_t current, uint8_t SWITCH_MOD, uint8_t LOITER_MOD, uint8_t ACTION, uint8_t MISSION_GRAP, uint8_t POINT_SPEED, int32_t latitude, int32_t longitude, int32_t altitude)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
char *buf = (char *)msgbuf;
@@ -328,10 +328,10 @@ static inline void mavlink_msg_xyk_airpoint_command_send_buf(mavlink_message_t *
_mav_put_int32_t(buf, 4, longitude);
_mav_put_int32_t(buf, 8, altitude);
_mav_put_uint16_t(buf, 12, AIRPOINT_ID);
_mav_put_uint16_t(buf, 14, LINE_LENGTH);
_mav_put_uint16_t(buf, 14, AIRLINE_LENGTH);
_mav_put_uint8_t(buf, 16, PLANE_ID);
_mav_put_uint8_t(buf, 17, confirmation);
_mav_put_uint8_t(buf, 18, LINE_ID);
_mav_put_uint8_t(buf, 18, AIRLINE_ID);
_mav_put_uint8_t(buf, 19, current);
_mav_put_uint8_t(buf, 20, SWITCH_MOD);
_mav_put_uint8_t(buf, 21, LOITER_MOD);
@@ -346,10 +346,10 @@ static inline void mavlink_msg_xyk_airpoint_command_send_buf(mavlink_message_t *
packet->longitude = longitude;
packet->altitude = altitude;
packet->AIRPOINT_ID = AIRPOINT_ID;
packet->LINE_LENGTH = LINE_LENGTH;
packet->AIRLINE_LENGTH = AIRLINE_LENGTH;
packet->PLANE_ID = PLANE_ID;
packet->confirmation = confirmation;
packet->LINE_ID = LINE_ID;
packet->AIRLINE_ID = AIRLINE_ID;
packet->current = current;
packet->SWITCH_MOD = SWITCH_MOD;
packet->LOITER_MOD = LOITER_MOD;
@@ -388,11 +388,11 @@ static inline uint8_t mavlink_msg_xyk_airpoint_command_get_confirmation(const ma
}
/**
* @brief Get field LINE_ID from xyk_airpoint_command message
* @brief Get field AIRLINE_ID from xyk_airpoint_command message
*
* @return SEE XYK_AIRLINE_TYPE.
*/
static inline uint8_t mavlink_msg_xyk_airpoint_command_get_LINE_ID(const mavlink_message_t* msg)
static inline uint8_t mavlink_msg_xyk_airpoint_command_get_AIRLINE_ID(const mavlink_message_t* msg)
{
return _MAV_RETURN_uint8_t(msg, 18);
}
@@ -400,7 +400,7 @@ static inline uint8_t mavlink_msg_xyk_airpoint_command_get_LINE_ID(const mavlink
/**
* @brief Get field AIRPOINT_ID from xyk_airpoint_command message
*
* @return Sequence1-800
* @return Sequence1-800,65535 for abnormal airpoint
*/
static inline uint16_t mavlink_msg_xyk_airpoint_command_get_AIRPOINT_ID(const mavlink_message_t* msg)
{
@@ -408,11 +408,11 @@ static inline uint16_t mavlink_msg_xyk_airpoint_command_get_AIRPOINT_ID(const ma
}
/**
* @brief Get field LINE_LENGTH from xyk_airpoint_command message
* @brief Get field AIRLINE_LENGTH from xyk_airpoint_command message
*
* @return LENGTH,points contained in the aireline
*/
static inline uint16_t mavlink_msg_xyk_airpoint_command_get_LINE_LENGTH(const mavlink_message_t* msg)
static inline uint16_t mavlink_msg_xyk_airpoint_command_get_AIRLINE_LENGTH(const mavlink_message_t* msg)
{
return _MAV_RETURN_uint16_t(msg, 14);
}
@@ -520,10 +520,10 @@ static inline void mavlink_msg_xyk_airpoint_command_decode(const mavlink_message
xyk_airpoint_command->longitude = mavlink_msg_xyk_airpoint_command_get_longitude(msg);
xyk_airpoint_command->altitude = mavlink_msg_xyk_airpoint_command_get_altitude(msg);
xyk_airpoint_command->AIRPOINT_ID = mavlink_msg_xyk_airpoint_command_get_AIRPOINT_ID(msg);
xyk_airpoint_command->LINE_LENGTH = mavlink_msg_xyk_airpoint_command_get_LINE_LENGTH(msg);
xyk_airpoint_command->AIRLINE_LENGTH = mavlink_msg_xyk_airpoint_command_get_AIRLINE_LENGTH(msg);
xyk_airpoint_command->PLANE_ID = mavlink_msg_xyk_airpoint_command_get_PLANE_ID(msg);
xyk_airpoint_command->confirmation = mavlink_msg_xyk_airpoint_command_get_confirmation(msg);
xyk_airpoint_command->LINE_ID = mavlink_msg_xyk_airpoint_command_get_LINE_ID(msg);
xyk_airpoint_command->AIRLINE_ID = mavlink_msg_xyk_airpoint_command_get_AIRLINE_ID(msg);
xyk_airpoint_command->current = mavlink_msg_xyk_airpoint_command_get_current(msg);
xyk_airpoint_command->SWITCH_MOD = mavlink_msg_xyk_airpoint_command_get_SWITCH_MOD(msg);
xyk_airpoint_command->LOITER_MOD = mavlink_msg_xyk_airpoint_command_get_LOITER_MOD(msg);