autogenerated headers for rev https://github.com/mavlink/mavlink/tree/6484834917efebc03f7f0326474fc235c2f5e000
This commit is contained in:
+163
-163
@@ -33,10 +33,10 @@ typedef struct __mavlink_mission_item_t {
|
||||
|
||||
#if MAVLINK_COMMAND_24BIT
|
||||
#define MAVLINK_MESSAGE_INFO_MISSION_ITEM { \
|
||||
39, \
|
||||
"MISSION_ITEM", \
|
||||
14, \
|
||||
{ { "param1", NULL, MAVLINK_TYPE_FLOAT, 0, 0, offsetof(mavlink_mission_item_t, param1) }, \
|
||||
39, \
|
||||
"MISSION_ITEM", \
|
||||
14, \
|
||||
{ { "param1", NULL, MAVLINK_TYPE_FLOAT, 0, 0, offsetof(mavlink_mission_item_t, param1) }, \
|
||||
{ "param2", NULL, MAVLINK_TYPE_FLOAT, 0, 4, offsetof(mavlink_mission_item_t, param2) }, \
|
||||
{ "param3", NULL, MAVLINK_TYPE_FLOAT, 0, 8, offsetof(mavlink_mission_item_t, param3) }, \
|
||||
{ "param4", NULL, MAVLINK_TYPE_FLOAT, 0, 12, offsetof(mavlink_mission_item_t, param4) }, \
|
||||
@@ -54,9 +54,9 @@ typedef struct __mavlink_mission_item_t {
|
||||
}
|
||||
#else
|
||||
#define MAVLINK_MESSAGE_INFO_MISSION_ITEM { \
|
||||
"MISSION_ITEM", \
|
||||
14, \
|
||||
{ { "param1", NULL, MAVLINK_TYPE_FLOAT, 0, 0, offsetof(mavlink_mission_item_t, param1) }, \
|
||||
"MISSION_ITEM", \
|
||||
14, \
|
||||
{ { "param1", NULL, MAVLINK_TYPE_FLOAT, 0, 0, offsetof(mavlink_mission_item_t, param1) }, \
|
||||
{ "param2", NULL, MAVLINK_TYPE_FLOAT, 0, 4, offsetof(mavlink_mission_item_t, param2) }, \
|
||||
{ "param3", NULL, MAVLINK_TYPE_FLOAT, 0, 8, offsetof(mavlink_mission_item_t, param3) }, \
|
||||
{ "param4", NULL, MAVLINK_TYPE_FLOAT, 0, 12, offsetof(mavlink_mission_item_t, param4) }, \
|
||||
@@ -97,47 +97,47 @@ typedef struct __mavlink_mission_item_t {
|
||||
* @return length of the message in bytes (excluding serial stream start sign)
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_mission_item_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
|
||||
uint8_t target_system, uint8_t target_component, uint16_t seq, uint8_t frame, uint16_t command, uint8_t current, uint8_t autocontinue, float param1, float param2, float param3, float param4, float x, float y, float z)
|
||||
uint8_t target_system, uint8_t target_component, uint16_t seq, uint8_t frame, uint16_t command, uint8_t current, uint8_t autocontinue, float param1, float param2, float param3, float param4, float x, float y, float z)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_MISSION_ITEM_LEN];
|
||||
_mav_put_float(buf, 0, param1);
|
||||
_mav_put_float(buf, 4, param2);
|
||||
_mav_put_float(buf, 8, param3);
|
||||
_mav_put_float(buf, 12, param4);
|
||||
_mav_put_float(buf, 16, x);
|
||||
_mav_put_float(buf, 20, y);
|
||||
_mav_put_float(buf, 24, z);
|
||||
_mav_put_uint16_t(buf, 28, seq);
|
||||
_mav_put_uint16_t(buf, 30, command);
|
||||
_mav_put_uint8_t(buf, 32, target_system);
|
||||
_mav_put_uint8_t(buf, 33, target_component);
|
||||
_mav_put_uint8_t(buf, 34, frame);
|
||||
_mav_put_uint8_t(buf, 35, current);
|
||||
_mav_put_uint8_t(buf, 36, autocontinue);
|
||||
char buf[MAVLINK_MSG_ID_MISSION_ITEM_LEN];
|
||||
_mav_put_float(buf, 0, param1);
|
||||
_mav_put_float(buf, 4, param2);
|
||||
_mav_put_float(buf, 8, param3);
|
||||
_mav_put_float(buf, 12, param4);
|
||||
_mav_put_float(buf, 16, x);
|
||||
_mav_put_float(buf, 20, y);
|
||||
_mav_put_float(buf, 24, z);
|
||||
_mav_put_uint16_t(buf, 28, seq);
|
||||
_mav_put_uint16_t(buf, 30, command);
|
||||
_mav_put_uint8_t(buf, 32, target_system);
|
||||
_mav_put_uint8_t(buf, 33, target_component);
|
||||
_mav_put_uint8_t(buf, 34, frame);
|
||||
_mav_put_uint8_t(buf, 35, current);
|
||||
_mav_put_uint8_t(buf, 36, autocontinue);
|
||||
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_MISSION_ITEM_LEN);
|
||||
#else
|
||||
mavlink_mission_item_t packet;
|
||||
packet.param1 = param1;
|
||||
packet.param2 = param2;
|
||||
packet.param3 = param3;
|
||||
packet.param4 = param4;
|
||||
packet.x = x;
|
||||
packet.y = y;
|
||||
packet.z = z;
|
||||
packet.seq = seq;
|
||||
packet.command = command;
|
||||
packet.target_system = target_system;
|
||||
packet.target_component = target_component;
|
||||
packet.frame = frame;
|
||||
packet.current = current;
|
||||
packet.autocontinue = autocontinue;
|
||||
mavlink_mission_item_t packet;
|
||||
packet.param1 = param1;
|
||||
packet.param2 = param2;
|
||||
packet.param3 = param3;
|
||||
packet.param4 = param4;
|
||||
packet.x = x;
|
||||
packet.y = y;
|
||||
packet.z = z;
|
||||
packet.seq = seq;
|
||||
packet.command = command;
|
||||
packet.target_system = target_system;
|
||||
packet.target_component = target_component;
|
||||
packet.frame = frame;
|
||||
packet.current = current;
|
||||
packet.autocontinue = autocontinue;
|
||||
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_MISSION_ITEM_LEN);
|
||||
#endif
|
||||
|
||||
msg->msgid = MAVLINK_MSG_ID_MISSION_ITEM;
|
||||
msg->msgid = MAVLINK_MSG_ID_MISSION_ITEM;
|
||||
return mavlink_finalize_message(msg, system_id, component_id, MAVLINK_MSG_ID_MISSION_ITEM_MIN_LEN, MAVLINK_MSG_ID_MISSION_ITEM_LEN, MAVLINK_MSG_ID_MISSION_ITEM_CRC);
|
||||
}
|
||||
|
||||
@@ -164,48 +164,48 @@ static inline uint16_t mavlink_msg_mission_item_pack(uint8_t system_id, uint8_t
|
||||
* @return length of the message in bytes (excluding serial stream start sign)
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_mission_item_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
|
||||
mavlink_message_t* msg,
|
||||
uint8_t target_system,uint8_t target_component,uint16_t seq,uint8_t frame,uint16_t command,uint8_t current,uint8_t autocontinue,float param1,float param2,float param3,float param4,float x,float y,float z)
|
||||
mavlink_message_t* msg,
|
||||
uint8_t target_system,uint8_t target_component,uint16_t seq,uint8_t frame,uint16_t command,uint8_t current,uint8_t autocontinue,float param1,float param2,float param3,float param4,float x,float y,float z)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_MISSION_ITEM_LEN];
|
||||
_mav_put_float(buf, 0, param1);
|
||||
_mav_put_float(buf, 4, param2);
|
||||
_mav_put_float(buf, 8, param3);
|
||||
_mav_put_float(buf, 12, param4);
|
||||
_mav_put_float(buf, 16, x);
|
||||
_mav_put_float(buf, 20, y);
|
||||
_mav_put_float(buf, 24, z);
|
||||
_mav_put_uint16_t(buf, 28, seq);
|
||||
_mav_put_uint16_t(buf, 30, command);
|
||||
_mav_put_uint8_t(buf, 32, target_system);
|
||||
_mav_put_uint8_t(buf, 33, target_component);
|
||||
_mav_put_uint8_t(buf, 34, frame);
|
||||
_mav_put_uint8_t(buf, 35, current);
|
||||
_mav_put_uint8_t(buf, 36, autocontinue);
|
||||
char buf[MAVLINK_MSG_ID_MISSION_ITEM_LEN];
|
||||
_mav_put_float(buf, 0, param1);
|
||||
_mav_put_float(buf, 4, param2);
|
||||
_mav_put_float(buf, 8, param3);
|
||||
_mav_put_float(buf, 12, param4);
|
||||
_mav_put_float(buf, 16, x);
|
||||
_mav_put_float(buf, 20, y);
|
||||
_mav_put_float(buf, 24, z);
|
||||
_mav_put_uint16_t(buf, 28, seq);
|
||||
_mav_put_uint16_t(buf, 30, command);
|
||||
_mav_put_uint8_t(buf, 32, target_system);
|
||||
_mav_put_uint8_t(buf, 33, target_component);
|
||||
_mav_put_uint8_t(buf, 34, frame);
|
||||
_mav_put_uint8_t(buf, 35, current);
|
||||
_mav_put_uint8_t(buf, 36, autocontinue);
|
||||
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_MISSION_ITEM_LEN);
|
||||
#else
|
||||
mavlink_mission_item_t packet;
|
||||
packet.param1 = param1;
|
||||
packet.param2 = param2;
|
||||
packet.param3 = param3;
|
||||
packet.param4 = param4;
|
||||
packet.x = x;
|
||||
packet.y = y;
|
||||
packet.z = z;
|
||||
packet.seq = seq;
|
||||
packet.command = command;
|
||||
packet.target_system = target_system;
|
||||
packet.target_component = target_component;
|
||||
packet.frame = frame;
|
||||
packet.current = current;
|
||||
packet.autocontinue = autocontinue;
|
||||
mavlink_mission_item_t packet;
|
||||
packet.param1 = param1;
|
||||
packet.param2 = param2;
|
||||
packet.param3 = param3;
|
||||
packet.param4 = param4;
|
||||
packet.x = x;
|
||||
packet.y = y;
|
||||
packet.z = z;
|
||||
packet.seq = seq;
|
||||
packet.command = command;
|
||||
packet.target_system = target_system;
|
||||
packet.target_component = target_component;
|
||||
packet.frame = frame;
|
||||
packet.current = current;
|
||||
packet.autocontinue = autocontinue;
|
||||
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_MISSION_ITEM_LEN);
|
||||
#endif
|
||||
|
||||
msg->msgid = MAVLINK_MSG_ID_MISSION_ITEM;
|
||||
msg->msgid = MAVLINK_MSG_ID_MISSION_ITEM;
|
||||
return mavlink_finalize_message_chan(msg, system_id, component_id, chan, MAVLINK_MSG_ID_MISSION_ITEM_MIN_LEN, MAVLINK_MSG_ID_MISSION_ITEM_LEN, MAVLINK_MSG_ID_MISSION_ITEM_CRC);
|
||||
}
|
||||
|
||||
@@ -219,7 +219,7 @@ static inline uint16_t mavlink_msg_mission_item_pack_chan(uint8_t system_id, uin
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_mission_item_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg, const mavlink_mission_item_t* mission_item)
|
||||
{
|
||||
return mavlink_msg_mission_item_pack(system_id, component_id, msg, mission_item->target_system, mission_item->target_component, mission_item->seq, mission_item->frame, mission_item->command, mission_item->current, mission_item->autocontinue, mission_item->param1, mission_item->param2, mission_item->param3, mission_item->param4, mission_item->x, mission_item->y, mission_item->z);
|
||||
return mavlink_msg_mission_item_pack(system_id, component_id, msg, mission_item->target_system, mission_item->target_component, mission_item->seq, mission_item->frame, mission_item->command, mission_item->current, mission_item->autocontinue, mission_item->param1, mission_item->param2, mission_item->param3, mission_item->param4, mission_item->x, mission_item->y, mission_item->z);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -233,7 +233,7 @@ static inline uint16_t mavlink_msg_mission_item_encode(uint8_t system_id, uint8_
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_mission_item_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg, const mavlink_mission_item_t* mission_item)
|
||||
{
|
||||
return mavlink_msg_mission_item_pack_chan(system_id, component_id, chan, msg, mission_item->target_system, mission_item->target_component, mission_item->seq, mission_item->frame, mission_item->command, mission_item->current, mission_item->autocontinue, mission_item->param1, mission_item->param2, mission_item->param3, mission_item->param4, mission_item->x, mission_item->y, mission_item->z);
|
||||
return mavlink_msg_mission_item_pack_chan(system_id, component_id, chan, msg, mission_item->target_system, mission_item->target_component, mission_item->seq, mission_item->frame, mission_item->command, mission_item->current, mission_item->autocontinue, mission_item->param1, mission_item->param2, mission_item->param3, mission_item->param4, mission_item->x, mission_item->y, mission_item->z);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -260,39 +260,39 @@ static inline uint16_t mavlink_msg_mission_item_encode_chan(uint8_t system_id, u
|
||||
static inline void mavlink_msg_mission_item_send(mavlink_channel_t chan, uint8_t target_system, uint8_t target_component, uint16_t seq, uint8_t frame, uint16_t command, uint8_t current, uint8_t autocontinue, float param1, float param2, float param3, float param4, float x, float y, float z)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_MISSION_ITEM_LEN];
|
||||
_mav_put_float(buf, 0, param1);
|
||||
_mav_put_float(buf, 4, param2);
|
||||
_mav_put_float(buf, 8, param3);
|
||||
_mav_put_float(buf, 12, param4);
|
||||
_mav_put_float(buf, 16, x);
|
||||
_mav_put_float(buf, 20, y);
|
||||
_mav_put_float(buf, 24, z);
|
||||
_mav_put_uint16_t(buf, 28, seq);
|
||||
_mav_put_uint16_t(buf, 30, command);
|
||||
_mav_put_uint8_t(buf, 32, target_system);
|
||||
_mav_put_uint8_t(buf, 33, target_component);
|
||||
_mav_put_uint8_t(buf, 34, frame);
|
||||
_mav_put_uint8_t(buf, 35, current);
|
||||
_mav_put_uint8_t(buf, 36, autocontinue);
|
||||
char buf[MAVLINK_MSG_ID_MISSION_ITEM_LEN];
|
||||
_mav_put_float(buf, 0, param1);
|
||||
_mav_put_float(buf, 4, param2);
|
||||
_mav_put_float(buf, 8, param3);
|
||||
_mav_put_float(buf, 12, param4);
|
||||
_mav_put_float(buf, 16, x);
|
||||
_mav_put_float(buf, 20, y);
|
||||
_mav_put_float(buf, 24, z);
|
||||
_mav_put_uint16_t(buf, 28, seq);
|
||||
_mav_put_uint16_t(buf, 30, command);
|
||||
_mav_put_uint8_t(buf, 32, target_system);
|
||||
_mav_put_uint8_t(buf, 33, target_component);
|
||||
_mav_put_uint8_t(buf, 34, frame);
|
||||
_mav_put_uint8_t(buf, 35, current);
|
||||
_mav_put_uint8_t(buf, 36, autocontinue);
|
||||
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_MISSION_ITEM, buf, MAVLINK_MSG_ID_MISSION_ITEM_MIN_LEN, MAVLINK_MSG_ID_MISSION_ITEM_LEN, MAVLINK_MSG_ID_MISSION_ITEM_CRC);
|
||||
#else
|
||||
mavlink_mission_item_t packet;
|
||||
packet.param1 = param1;
|
||||
packet.param2 = param2;
|
||||
packet.param3 = param3;
|
||||
packet.param4 = param4;
|
||||
packet.x = x;
|
||||
packet.y = y;
|
||||
packet.z = z;
|
||||
packet.seq = seq;
|
||||
packet.command = command;
|
||||
packet.target_system = target_system;
|
||||
packet.target_component = target_component;
|
||||
packet.frame = frame;
|
||||
packet.current = current;
|
||||
packet.autocontinue = autocontinue;
|
||||
mavlink_mission_item_t packet;
|
||||
packet.param1 = param1;
|
||||
packet.param2 = param2;
|
||||
packet.param3 = param3;
|
||||
packet.param4 = param4;
|
||||
packet.x = x;
|
||||
packet.y = y;
|
||||
packet.z = z;
|
||||
packet.seq = seq;
|
||||
packet.command = command;
|
||||
packet.target_system = target_system;
|
||||
packet.target_component = target_component;
|
||||
packet.frame = frame;
|
||||
packet.current = current;
|
||||
packet.autocontinue = autocontinue;
|
||||
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_MISSION_ITEM, (const char *)&packet, MAVLINK_MSG_ID_MISSION_ITEM_MIN_LEN, MAVLINK_MSG_ID_MISSION_ITEM_LEN, MAVLINK_MSG_ID_MISSION_ITEM_CRC);
|
||||
#endif
|
||||
@@ -323,39 +323,39 @@ static inline void mavlink_msg_mission_item_send_struct(mavlink_channel_t chan,
|
||||
static inline void mavlink_msg_mission_item_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint8_t target_system, uint8_t target_component, uint16_t seq, uint8_t frame, uint16_t command, uint8_t current, uint8_t autocontinue, float param1, float param2, float param3, float param4, float x, float y, float z)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char *buf = (char *)msgbuf;
|
||||
_mav_put_float(buf, 0, param1);
|
||||
_mav_put_float(buf, 4, param2);
|
||||
_mav_put_float(buf, 8, param3);
|
||||
_mav_put_float(buf, 12, param4);
|
||||
_mav_put_float(buf, 16, x);
|
||||
_mav_put_float(buf, 20, y);
|
||||
_mav_put_float(buf, 24, z);
|
||||
_mav_put_uint16_t(buf, 28, seq);
|
||||
_mav_put_uint16_t(buf, 30, command);
|
||||
_mav_put_uint8_t(buf, 32, target_system);
|
||||
_mav_put_uint8_t(buf, 33, target_component);
|
||||
_mav_put_uint8_t(buf, 34, frame);
|
||||
_mav_put_uint8_t(buf, 35, current);
|
||||
_mav_put_uint8_t(buf, 36, autocontinue);
|
||||
char *buf = (char *)msgbuf;
|
||||
_mav_put_float(buf, 0, param1);
|
||||
_mav_put_float(buf, 4, param2);
|
||||
_mav_put_float(buf, 8, param3);
|
||||
_mav_put_float(buf, 12, param4);
|
||||
_mav_put_float(buf, 16, x);
|
||||
_mav_put_float(buf, 20, y);
|
||||
_mav_put_float(buf, 24, z);
|
||||
_mav_put_uint16_t(buf, 28, seq);
|
||||
_mav_put_uint16_t(buf, 30, command);
|
||||
_mav_put_uint8_t(buf, 32, target_system);
|
||||
_mav_put_uint8_t(buf, 33, target_component);
|
||||
_mav_put_uint8_t(buf, 34, frame);
|
||||
_mav_put_uint8_t(buf, 35, current);
|
||||
_mav_put_uint8_t(buf, 36, autocontinue);
|
||||
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_MISSION_ITEM, buf, MAVLINK_MSG_ID_MISSION_ITEM_MIN_LEN, MAVLINK_MSG_ID_MISSION_ITEM_LEN, MAVLINK_MSG_ID_MISSION_ITEM_CRC);
|
||||
#else
|
||||
mavlink_mission_item_t *packet = (mavlink_mission_item_t *)msgbuf;
|
||||
packet->param1 = param1;
|
||||
packet->param2 = param2;
|
||||
packet->param3 = param3;
|
||||
packet->param4 = param4;
|
||||
packet->x = x;
|
||||
packet->y = y;
|
||||
packet->z = z;
|
||||
packet->seq = seq;
|
||||
packet->command = command;
|
||||
packet->target_system = target_system;
|
||||
packet->target_component = target_component;
|
||||
packet->frame = frame;
|
||||
packet->current = current;
|
||||
packet->autocontinue = autocontinue;
|
||||
mavlink_mission_item_t *packet = (mavlink_mission_item_t *)msgbuf;
|
||||
packet->param1 = param1;
|
||||
packet->param2 = param2;
|
||||
packet->param3 = param3;
|
||||
packet->param4 = param4;
|
||||
packet->x = x;
|
||||
packet->y = y;
|
||||
packet->z = z;
|
||||
packet->seq = seq;
|
||||
packet->command = command;
|
||||
packet->target_system = target_system;
|
||||
packet->target_component = target_component;
|
||||
packet->frame = frame;
|
||||
packet->current = current;
|
||||
packet->autocontinue = autocontinue;
|
||||
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_MISSION_ITEM, (const char *)packet, MAVLINK_MSG_ID_MISSION_ITEM_MIN_LEN, MAVLINK_MSG_ID_MISSION_ITEM_LEN, MAVLINK_MSG_ID_MISSION_ITEM_CRC);
|
||||
#endif
|
||||
@@ -374,7 +374,7 @@ static inline void mavlink_msg_mission_item_send_buf(mavlink_message_t *msgbuf,
|
||||
*/
|
||||
static inline uint8_t mavlink_msg_mission_item_get_target_system(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint8_t(msg, 32);
|
||||
return _MAV_RETURN_uint8_t(msg, 32);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -384,7 +384,7 @@ static inline uint8_t mavlink_msg_mission_item_get_target_system(const mavlink_m
|
||||
*/
|
||||
static inline uint8_t mavlink_msg_mission_item_get_target_component(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint8_t(msg, 33);
|
||||
return _MAV_RETURN_uint8_t(msg, 33);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -394,7 +394,7 @@ static inline uint8_t mavlink_msg_mission_item_get_target_component(const mavlin
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_mission_item_get_seq(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint16_t(msg, 28);
|
||||
return _MAV_RETURN_uint16_t(msg, 28);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -404,7 +404,7 @@ static inline uint16_t mavlink_msg_mission_item_get_seq(const mavlink_message_t*
|
||||
*/
|
||||
static inline uint8_t mavlink_msg_mission_item_get_frame(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint8_t(msg, 34);
|
||||
return _MAV_RETURN_uint8_t(msg, 34);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -414,7 +414,7 @@ static inline uint8_t mavlink_msg_mission_item_get_frame(const mavlink_message_t
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_mission_item_get_command(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint16_t(msg, 30);
|
||||
return _MAV_RETURN_uint16_t(msg, 30);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -424,7 +424,7 @@ static inline uint16_t mavlink_msg_mission_item_get_command(const mavlink_messag
|
||||
*/
|
||||
static inline uint8_t mavlink_msg_mission_item_get_current(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint8_t(msg, 35);
|
||||
return _MAV_RETURN_uint8_t(msg, 35);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -434,7 +434,7 @@ static inline uint8_t mavlink_msg_mission_item_get_current(const mavlink_message
|
||||
*/
|
||||
static inline uint8_t mavlink_msg_mission_item_get_autocontinue(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint8_t(msg, 36);
|
||||
return _MAV_RETURN_uint8_t(msg, 36);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -444,7 +444,7 @@ static inline uint8_t mavlink_msg_mission_item_get_autocontinue(const mavlink_me
|
||||
*/
|
||||
static inline float mavlink_msg_mission_item_get_param1(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_float(msg, 0);
|
||||
return _MAV_RETURN_float(msg, 0);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -454,7 +454,7 @@ static inline float mavlink_msg_mission_item_get_param1(const mavlink_message_t*
|
||||
*/
|
||||
static inline float mavlink_msg_mission_item_get_param2(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_float(msg, 4);
|
||||
return _MAV_RETURN_float(msg, 4);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -464,7 +464,7 @@ static inline float mavlink_msg_mission_item_get_param2(const mavlink_message_t*
|
||||
*/
|
||||
static inline float mavlink_msg_mission_item_get_param3(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_float(msg, 8);
|
||||
return _MAV_RETURN_float(msg, 8);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -474,7 +474,7 @@ static inline float mavlink_msg_mission_item_get_param3(const mavlink_message_t*
|
||||
*/
|
||||
static inline float mavlink_msg_mission_item_get_param4(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_float(msg, 12);
|
||||
return _MAV_RETURN_float(msg, 12);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -484,7 +484,7 @@ static inline float mavlink_msg_mission_item_get_param4(const mavlink_message_t*
|
||||
*/
|
||||
static inline float mavlink_msg_mission_item_get_x(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_float(msg, 16);
|
||||
return _MAV_RETURN_float(msg, 16);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -494,7 +494,7 @@ static inline float mavlink_msg_mission_item_get_x(const mavlink_message_t* msg)
|
||||
*/
|
||||
static inline float mavlink_msg_mission_item_get_y(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_float(msg, 20);
|
||||
return _MAV_RETURN_float(msg, 20);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -504,7 +504,7 @@ static inline float mavlink_msg_mission_item_get_y(const mavlink_message_t* msg)
|
||||
*/
|
||||
static inline float mavlink_msg_mission_item_get_z(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_float(msg, 24);
|
||||
return _MAV_RETURN_float(msg, 24);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -516,23 +516,23 @@ static inline float mavlink_msg_mission_item_get_z(const mavlink_message_t* msg)
|
||||
static inline void mavlink_msg_mission_item_decode(const mavlink_message_t* msg, mavlink_mission_item_t* mission_item)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
mission_item->param1 = mavlink_msg_mission_item_get_param1(msg);
|
||||
mission_item->param2 = mavlink_msg_mission_item_get_param2(msg);
|
||||
mission_item->param3 = mavlink_msg_mission_item_get_param3(msg);
|
||||
mission_item->param4 = mavlink_msg_mission_item_get_param4(msg);
|
||||
mission_item->x = mavlink_msg_mission_item_get_x(msg);
|
||||
mission_item->y = mavlink_msg_mission_item_get_y(msg);
|
||||
mission_item->z = mavlink_msg_mission_item_get_z(msg);
|
||||
mission_item->seq = mavlink_msg_mission_item_get_seq(msg);
|
||||
mission_item->command = mavlink_msg_mission_item_get_command(msg);
|
||||
mission_item->target_system = mavlink_msg_mission_item_get_target_system(msg);
|
||||
mission_item->target_component = mavlink_msg_mission_item_get_target_component(msg);
|
||||
mission_item->frame = mavlink_msg_mission_item_get_frame(msg);
|
||||
mission_item->current = mavlink_msg_mission_item_get_current(msg);
|
||||
mission_item->autocontinue = mavlink_msg_mission_item_get_autocontinue(msg);
|
||||
mission_item->param1 = mavlink_msg_mission_item_get_param1(msg);
|
||||
mission_item->param2 = mavlink_msg_mission_item_get_param2(msg);
|
||||
mission_item->param3 = mavlink_msg_mission_item_get_param3(msg);
|
||||
mission_item->param4 = mavlink_msg_mission_item_get_param4(msg);
|
||||
mission_item->x = mavlink_msg_mission_item_get_x(msg);
|
||||
mission_item->y = mavlink_msg_mission_item_get_y(msg);
|
||||
mission_item->z = mavlink_msg_mission_item_get_z(msg);
|
||||
mission_item->seq = mavlink_msg_mission_item_get_seq(msg);
|
||||
mission_item->command = mavlink_msg_mission_item_get_command(msg);
|
||||
mission_item->target_system = mavlink_msg_mission_item_get_target_system(msg);
|
||||
mission_item->target_component = mavlink_msg_mission_item_get_target_component(msg);
|
||||
mission_item->frame = mavlink_msg_mission_item_get_frame(msg);
|
||||
mission_item->current = mavlink_msg_mission_item_get_current(msg);
|
||||
mission_item->autocontinue = mavlink_msg_mission_item_get_autocontinue(msg);
|
||||
#else
|
||||
uint8_t len = msg->len < MAVLINK_MSG_ID_MISSION_ITEM_LEN? msg->len : MAVLINK_MSG_ID_MISSION_ITEM_LEN;
|
||||
memset(mission_item, 0, MAVLINK_MSG_ID_MISSION_ITEM_LEN);
|
||||
memcpy(mission_item, _MAV_PAYLOAD(msg), len);
|
||||
memcpy(mission_item, _MAV_PAYLOAD(msg), len);
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user