autogenerated headers for rev https://github.com/mavlink/mavlink/tree/6484834917efebc03f7f0326474fc235c2f5e000
This commit is contained in:
@@ -26,10 +26,10 @@ typedef struct __mavlink_isr_location_t {
|
||||
|
||||
#if MAVLINK_COMMAND_24BIT
|
||||
#define MAVLINK_MESSAGE_INFO_ISR_LOCATION { \
|
||||
189, \
|
||||
"ISR_LOCATION", \
|
||||
7, \
|
||||
{ { "latitude", NULL, MAVLINK_TYPE_FLOAT, 0, 0, offsetof(mavlink_isr_location_t, latitude) }, \
|
||||
189, \
|
||||
"ISR_LOCATION", \
|
||||
7, \
|
||||
{ { "latitude", NULL, MAVLINK_TYPE_FLOAT, 0, 0, offsetof(mavlink_isr_location_t, latitude) }, \
|
||||
{ "longitude", NULL, MAVLINK_TYPE_FLOAT, 0, 4, offsetof(mavlink_isr_location_t, longitude) }, \
|
||||
{ "height", NULL, MAVLINK_TYPE_FLOAT, 0, 8, offsetof(mavlink_isr_location_t, height) }, \
|
||||
{ "target", NULL, MAVLINK_TYPE_UINT8_T, 0, 12, offsetof(mavlink_isr_location_t, target) }, \
|
||||
@@ -40,9 +40,9 @@ typedef struct __mavlink_isr_location_t {
|
||||
}
|
||||
#else
|
||||
#define MAVLINK_MESSAGE_INFO_ISR_LOCATION { \
|
||||
"ISR_LOCATION", \
|
||||
7, \
|
||||
{ { "latitude", NULL, MAVLINK_TYPE_FLOAT, 0, 0, offsetof(mavlink_isr_location_t, latitude) }, \
|
||||
"ISR_LOCATION", \
|
||||
7, \
|
||||
{ { "latitude", NULL, MAVLINK_TYPE_FLOAT, 0, 0, offsetof(mavlink_isr_location_t, latitude) }, \
|
||||
{ "longitude", NULL, MAVLINK_TYPE_FLOAT, 0, 4, offsetof(mavlink_isr_location_t, longitude) }, \
|
||||
{ "height", NULL, MAVLINK_TYPE_FLOAT, 0, 8, offsetof(mavlink_isr_location_t, height) }, \
|
||||
{ "target", NULL, MAVLINK_TYPE_UINT8_T, 0, 12, offsetof(mavlink_isr_location_t, target) }, \
|
||||
@@ -69,33 +69,33 @@ typedef struct __mavlink_isr_location_t {
|
||||
* @return length of the message in bytes (excluding serial stream start sign)
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_isr_location_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
|
||||
uint8_t target, float latitude, float longitude, float height, uint8_t option1, uint8_t option2, uint8_t option3)
|
||||
uint8_t target, float latitude, float longitude, float height, uint8_t option1, uint8_t option2, uint8_t option3)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_ISR_LOCATION_LEN];
|
||||
_mav_put_float(buf, 0, latitude);
|
||||
_mav_put_float(buf, 4, longitude);
|
||||
_mav_put_float(buf, 8, height);
|
||||
_mav_put_uint8_t(buf, 12, target);
|
||||
_mav_put_uint8_t(buf, 13, option1);
|
||||
_mav_put_uint8_t(buf, 14, option2);
|
||||
_mav_put_uint8_t(buf, 15, option3);
|
||||
char buf[MAVLINK_MSG_ID_ISR_LOCATION_LEN];
|
||||
_mav_put_float(buf, 0, latitude);
|
||||
_mav_put_float(buf, 4, longitude);
|
||||
_mav_put_float(buf, 8, height);
|
||||
_mav_put_uint8_t(buf, 12, target);
|
||||
_mav_put_uint8_t(buf, 13, option1);
|
||||
_mav_put_uint8_t(buf, 14, option2);
|
||||
_mav_put_uint8_t(buf, 15, option3);
|
||||
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_ISR_LOCATION_LEN);
|
||||
#else
|
||||
mavlink_isr_location_t packet;
|
||||
packet.latitude = latitude;
|
||||
packet.longitude = longitude;
|
||||
packet.height = height;
|
||||
packet.target = target;
|
||||
packet.option1 = option1;
|
||||
packet.option2 = option2;
|
||||
packet.option3 = option3;
|
||||
mavlink_isr_location_t packet;
|
||||
packet.latitude = latitude;
|
||||
packet.longitude = longitude;
|
||||
packet.height = height;
|
||||
packet.target = target;
|
||||
packet.option1 = option1;
|
||||
packet.option2 = option2;
|
||||
packet.option3 = option3;
|
||||
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_ISR_LOCATION_LEN);
|
||||
#endif
|
||||
|
||||
msg->msgid = MAVLINK_MSG_ID_ISR_LOCATION;
|
||||
msg->msgid = MAVLINK_MSG_ID_ISR_LOCATION;
|
||||
return mavlink_finalize_message(msg, system_id, component_id, MAVLINK_MSG_ID_ISR_LOCATION_MIN_LEN, MAVLINK_MSG_ID_ISR_LOCATION_LEN, MAVLINK_MSG_ID_ISR_LOCATION_CRC);
|
||||
}
|
||||
|
||||
@@ -115,34 +115,34 @@ static inline uint16_t mavlink_msg_isr_location_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_isr_location_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
|
||||
mavlink_message_t* msg,
|
||||
uint8_t target,float latitude,float longitude,float height,uint8_t option1,uint8_t option2,uint8_t option3)
|
||||
mavlink_message_t* msg,
|
||||
uint8_t target,float latitude,float longitude,float height,uint8_t option1,uint8_t option2,uint8_t option3)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_ISR_LOCATION_LEN];
|
||||
_mav_put_float(buf, 0, latitude);
|
||||
_mav_put_float(buf, 4, longitude);
|
||||
_mav_put_float(buf, 8, height);
|
||||
_mav_put_uint8_t(buf, 12, target);
|
||||
_mav_put_uint8_t(buf, 13, option1);
|
||||
_mav_put_uint8_t(buf, 14, option2);
|
||||
_mav_put_uint8_t(buf, 15, option3);
|
||||
char buf[MAVLINK_MSG_ID_ISR_LOCATION_LEN];
|
||||
_mav_put_float(buf, 0, latitude);
|
||||
_mav_put_float(buf, 4, longitude);
|
||||
_mav_put_float(buf, 8, height);
|
||||
_mav_put_uint8_t(buf, 12, target);
|
||||
_mav_put_uint8_t(buf, 13, option1);
|
||||
_mav_put_uint8_t(buf, 14, option2);
|
||||
_mav_put_uint8_t(buf, 15, option3);
|
||||
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_ISR_LOCATION_LEN);
|
||||
#else
|
||||
mavlink_isr_location_t packet;
|
||||
packet.latitude = latitude;
|
||||
packet.longitude = longitude;
|
||||
packet.height = height;
|
||||
packet.target = target;
|
||||
packet.option1 = option1;
|
||||
packet.option2 = option2;
|
||||
packet.option3 = option3;
|
||||
mavlink_isr_location_t packet;
|
||||
packet.latitude = latitude;
|
||||
packet.longitude = longitude;
|
||||
packet.height = height;
|
||||
packet.target = target;
|
||||
packet.option1 = option1;
|
||||
packet.option2 = option2;
|
||||
packet.option3 = option3;
|
||||
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_ISR_LOCATION_LEN);
|
||||
#endif
|
||||
|
||||
msg->msgid = MAVLINK_MSG_ID_ISR_LOCATION;
|
||||
msg->msgid = MAVLINK_MSG_ID_ISR_LOCATION;
|
||||
return mavlink_finalize_message_chan(msg, system_id, component_id, chan, MAVLINK_MSG_ID_ISR_LOCATION_MIN_LEN, MAVLINK_MSG_ID_ISR_LOCATION_LEN, MAVLINK_MSG_ID_ISR_LOCATION_CRC);
|
||||
}
|
||||
|
||||
@@ -156,7 +156,7 @@ static inline uint16_t mavlink_msg_isr_location_pack_chan(uint8_t system_id, uin
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_isr_location_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg, const mavlink_isr_location_t* isr_location)
|
||||
{
|
||||
return mavlink_msg_isr_location_pack(system_id, component_id, msg, isr_location->target, isr_location->latitude, isr_location->longitude, isr_location->height, isr_location->option1, isr_location->option2, isr_location->option3);
|
||||
return mavlink_msg_isr_location_pack(system_id, component_id, msg, isr_location->target, isr_location->latitude, isr_location->longitude, isr_location->height, isr_location->option1, isr_location->option2, isr_location->option3);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -170,7 +170,7 @@ static inline uint16_t mavlink_msg_isr_location_encode(uint8_t system_id, uint8_
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_isr_location_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg, const mavlink_isr_location_t* isr_location)
|
||||
{
|
||||
return mavlink_msg_isr_location_pack_chan(system_id, component_id, chan, msg, isr_location->target, isr_location->latitude, isr_location->longitude, isr_location->height, isr_location->option1, isr_location->option2, isr_location->option3);
|
||||
return mavlink_msg_isr_location_pack_chan(system_id, component_id, chan, msg, isr_location->target, isr_location->latitude, isr_location->longitude, isr_location->height, isr_location->option1, isr_location->option2, isr_location->option3);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -190,25 +190,25 @@ static inline uint16_t mavlink_msg_isr_location_encode_chan(uint8_t system_id, u
|
||||
static inline void mavlink_msg_isr_location_send(mavlink_channel_t chan, uint8_t target, float latitude, float longitude, float height, uint8_t option1, uint8_t option2, uint8_t option3)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_ISR_LOCATION_LEN];
|
||||
_mav_put_float(buf, 0, latitude);
|
||||
_mav_put_float(buf, 4, longitude);
|
||||
_mav_put_float(buf, 8, height);
|
||||
_mav_put_uint8_t(buf, 12, target);
|
||||
_mav_put_uint8_t(buf, 13, option1);
|
||||
_mav_put_uint8_t(buf, 14, option2);
|
||||
_mav_put_uint8_t(buf, 15, option3);
|
||||
char buf[MAVLINK_MSG_ID_ISR_LOCATION_LEN];
|
||||
_mav_put_float(buf, 0, latitude);
|
||||
_mav_put_float(buf, 4, longitude);
|
||||
_mav_put_float(buf, 8, height);
|
||||
_mav_put_uint8_t(buf, 12, target);
|
||||
_mav_put_uint8_t(buf, 13, option1);
|
||||
_mav_put_uint8_t(buf, 14, option2);
|
||||
_mav_put_uint8_t(buf, 15, option3);
|
||||
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_ISR_LOCATION, buf, MAVLINK_MSG_ID_ISR_LOCATION_MIN_LEN, MAVLINK_MSG_ID_ISR_LOCATION_LEN, MAVLINK_MSG_ID_ISR_LOCATION_CRC);
|
||||
#else
|
||||
mavlink_isr_location_t packet;
|
||||
packet.latitude = latitude;
|
||||
packet.longitude = longitude;
|
||||
packet.height = height;
|
||||
packet.target = target;
|
||||
packet.option1 = option1;
|
||||
packet.option2 = option2;
|
||||
packet.option3 = option3;
|
||||
mavlink_isr_location_t packet;
|
||||
packet.latitude = latitude;
|
||||
packet.longitude = longitude;
|
||||
packet.height = height;
|
||||
packet.target = target;
|
||||
packet.option1 = option1;
|
||||
packet.option2 = option2;
|
||||
packet.option3 = option3;
|
||||
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_ISR_LOCATION, (const char *)&packet, MAVLINK_MSG_ID_ISR_LOCATION_MIN_LEN, MAVLINK_MSG_ID_ISR_LOCATION_LEN, MAVLINK_MSG_ID_ISR_LOCATION_CRC);
|
||||
#endif
|
||||
@@ -239,25 +239,25 @@ static inline void mavlink_msg_isr_location_send_struct(mavlink_channel_t chan,
|
||||
static inline void mavlink_msg_isr_location_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint8_t target, float latitude, float longitude, float height, uint8_t option1, uint8_t option2, uint8_t option3)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char *buf = (char *)msgbuf;
|
||||
_mav_put_float(buf, 0, latitude);
|
||||
_mav_put_float(buf, 4, longitude);
|
||||
_mav_put_float(buf, 8, height);
|
||||
_mav_put_uint8_t(buf, 12, target);
|
||||
_mav_put_uint8_t(buf, 13, option1);
|
||||
_mav_put_uint8_t(buf, 14, option2);
|
||||
_mav_put_uint8_t(buf, 15, option3);
|
||||
char *buf = (char *)msgbuf;
|
||||
_mav_put_float(buf, 0, latitude);
|
||||
_mav_put_float(buf, 4, longitude);
|
||||
_mav_put_float(buf, 8, height);
|
||||
_mav_put_uint8_t(buf, 12, target);
|
||||
_mav_put_uint8_t(buf, 13, option1);
|
||||
_mav_put_uint8_t(buf, 14, option2);
|
||||
_mav_put_uint8_t(buf, 15, option3);
|
||||
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_ISR_LOCATION, buf, MAVLINK_MSG_ID_ISR_LOCATION_MIN_LEN, MAVLINK_MSG_ID_ISR_LOCATION_LEN, MAVLINK_MSG_ID_ISR_LOCATION_CRC);
|
||||
#else
|
||||
mavlink_isr_location_t *packet = (mavlink_isr_location_t *)msgbuf;
|
||||
packet->latitude = latitude;
|
||||
packet->longitude = longitude;
|
||||
packet->height = height;
|
||||
packet->target = target;
|
||||
packet->option1 = option1;
|
||||
packet->option2 = option2;
|
||||
packet->option3 = option3;
|
||||
mavlink_isr_location_t *packet = (mavlink_isr_location_t *)msgbuf;
|
||||
packet->latitude = latitude;
|
||||
packet->longitude = longitude;
|
||||
packet->height = height;
|
||||
packet->target = target;
|
||||
packet->option1 = option1;
|
||||
packet->option2 = option2;
|
||||
packet->option3 = option3;
|
||||
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_ISR_LOCATION, (const char *)packet, MAVLINK_MSG_ID_ISR_LOCATION_MIN_LEN, MAVLINK_MSG_ID_ISR_LOCATION_LEN, MAVLINK_MSG_ID_ISR_LOCATION_CRC);
|
||||
#endif
|
||||
@@ -276,7 +276,7 @@ static inline void mavlink_msg_isr_location_send_buf(mavlink_message_t *msgbuf,
|
||||
*/
|
||||
static inline uint8_t mavlink_msg_isr_location_get_target(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint8_t(msg, 12);
|
||||
return _MAV_RETURN_uint8_t(msg, 12);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -286,7 +286,7 @@ static inline uint8_t mavlink_msg_isr_location_get_target(const mavlink_message_
|
||||
*/
|
||||
static inline float mavlink_msg_isr_location_get_latitude(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_float(msg, 0);
|
||||
return _MAV_RETURN_float(msg, 0);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -296,7 +296,7 @@ static inline float mavlink_msg_isr_location_get_latitude(const mavlink_message_
|
||||
*/
|
||||
static inline float mavlink_msg_isr_location_get_longitude(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_float(msg, 4);
|
||||
return _MAV_RETURN_float(msg, 4);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -306,7 +306,7 @@ static inline float mavlink_msg_isr_location_get_longitude(const mavlink_message
|
||||
*/
|
||||
static inline float mavlink_msg_isr_location_get_height(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_float(msg, 8);
|
||||
return _MAV_RETURN_float(msg, 8);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -316,7 +316,7 @@ static inline float mavlink_msg_isr_location_get_height(const mavlink_message_t*
|
||||
*/
|
||||
static inline uint8_t mavlink_msg_isr_location_get_option1(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint8_t(msg, 13);
|
||||
return _MAV_RETURN_uint8_t(msg, 13);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -326,7 +326,7 @@ static inline uint8_t mavlink_msg_isr_location_get_option1(const mavlink_message
|
||||
*/
|
||||
static inline uint8_t mavlink_msg_isr_location_get_option2(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint8_t(msg, 14);
|
||||
return _MAV_RETURN_uint8_t(msg, 14);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -336,7 +336,7 @@ static inline uint8_t mavlink_msg_isr_location_get_option2(const mavlink_message
|
||||
*/
|
||||
static inline uint8_t mavlink_msg_isr_location_get_option3(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint8_t(msg, 15);
|
||||
return _MAV_RETURN_uint8_t(msg, 15);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -348,16 +348,16 @@ static inline uint8_t mavlink_msg_isr_location_get_option3(const mavlink_message
|
||||
static inline void mavlink_msg_isr_location_decode(const mavlink_message_t* msg, mavlink_isr_location_t* isr_location)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
isr_location->latitude = mavlink_msg_isr_location_get_latitude(msg);
|
||||
isr_location->longitude = mavlink_msg_isr_location_get_longitude(msg);
|
||||
isr_location->height = mavlink_msg_isr_location_get_height(msg);
|
||||
isr_location->target = mavlink_msg_isr_location_get_target(msg);
|
||||
isr_location->option1 = mavlink_msg_isr_location_get_option1(msg);
|
||||
isr_location->option2 = mavlink_msg_isr_location_get_option2(msg);
|
||||
isr_location->option3 = mavlink_msg_isr_location_get_option3(msg);
|
||||
isr_location->latitude = mavlink_msg_isr_location_get_latitude(msg);
|
||||
isr_location->longitude = mavlink_msg_isr_location_get_longitude(msg);
|
||||
isr_location->height = mavlink_msg_isr_location_get_height(msg);
|
||||
isr_location->target = mavlink_msg_isr_location_get_target(msg);
|
||||
isr_location->option1 = mavlink_msg_isr_location_get_option1(msg);
|
||||
isr_location->option2 = mavlink_msg_isr_location_get_option2(msg);
|
||||
isr_location->option3 = mavlink_msg_isr_location_get_option3(msg);
|
||||
#else
|
||||
uint8_t len = msg->len < MAVLINK_MSG_ID_ISR_LOCATION_LEN? msg->len : MAVLINK_MSG_ID_ISR_LOCATION_LEN;
|
||||
memset(isr_location, 0, MAVLINK_MSG_ID_ISR_LOCATION_LEN);
|
||||
memcpy(isr_location, _MAV_PAYLOAD(msg), len);
|
||||
memcpy(isr_location, _MAV_PAYLOAD(msg), len);
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user