update
This commit is contained in:
@@ -11,18 +11,18 @@ typedef struct __mavlink_safety_set_allowed_area_t {
|
||||
float p2x; /*< [m] x position 2 / Latitude 2*/
|
||||
float p2y; /*< [m] y position 2 / Longitude 2*/
|
||||
float p2z; /*< [m] z position 2 / Altitude 2*/
|
||||
uint8_t target_system; /*< System ID*/
|
||||
uint16_t target_system; /*< System ID*/
|
||||
uint8_t target_component; /*< Component ID*/
|
||||
uint8_t frame; /*< Coordinate frame. Can be either global, GPS, right-handed with Z axis up or local, right handed, Z axis down.*/
|
||||
} mavlink_safety_set_allowed_area_t;
|
||||
|
||||
#define MAVLINK_MSG_ID_SAFETY_SET_ALLOWED_AREA_LEN 27
|
||||
#define MAVLINK_MSG_ID_SAFETY_SET_ALLOWED_AREA_MIN_LEN 27
|
||||
#define MAVLINK_MSG_ID_54_LEN 27
|
||||
#define MAVLINK_MSG_ID_54_MIN_LEN 27
|
||||
#define MAVLINK_MSG_ID_SAFETY_SET_ALLOWED_AREA_LEN 28
|
||||
#define MAVLINK_MSG_ID_SAFETY_SET_ALLOWED_AREA_MIN_LEN 28
|
||||
#define MAVLINK_MSG_ID_54_LEN 28
|
||||
#define MAVLINK_MSG_ID_54_MIN_LEN 28
|
||||
|
||||
#define MAVLINK_MSG_ID_SAFETY_SET_ALLOWED_AREA_CRC 15
|
||||
#define MAVLINK_MSG_ID_54_CRC 15
|
||||
#define MAVLINK_MSG_ID_SAFETY_SET_ALLOWED_AREA_CRC 249
|
||||
#define MAVLINK_MSG_ID_54_CRC 249
|
||||
|
||||
|
||||
|
||||
@@ -31,9 +31,9 @@ typedef struct __mavlink_safety_set_allowed_area_t {
|
||||
54, \
|
||||
"SAFETY_SET_ALLOWED_AREA", \
|
||||
9, \
|
||||
{ { "target_system", NULL, MAVLINK_TYPE_UINT8_T, 0, 24, offsetof(mavlink_safety_set_allowed_area_t, target_system) }, \
|
||||
{ "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0, 25, offsetof(mavlink_safety_set_allowed_area_t, target_component) }, \
|
||||
{ "frame", NULL, MAVLINK_TYPE_UINT8_T, 0, 26, offsetof(mavlink_safety_set_allowed_area_t, frame) }, \
|
||||
{ { "target_system", NULL, MAVLINK_TYPE_UINT16_T, 0, 24, offsetof(mavlink_safety_set_allowed_area_t, target_system) }, \
|
||||
{ "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0, 26, offsetof(mavlink_safety_set_allowed_area_t, target_component) }, \
|
||||
{ "frame", NULL, MAVLINK_TYPE_UINT8_T, 0, 27, offsetof(mavlink_safety_set_allowed_area_t, frame) }, \
|
||||
{ "p1x", NULL, MAVLINK_TYPE_FLOAT, 0, 0, offsetof(mavlink_safety_set_allowed_area_t, p1x) }, \
|
||||
{ "p1y", NULL, MAVLINK_TYPE_FLOAT, 0, 4, offsetof(mavlink_safety_set_allowed_area_t, p1y) }, \
|
||||
{ "p1z", NULL, MAVLINK_TYPE_FLOAT, 0, 8, offsetof(mavlink_safety_set_allowed_area_t, p1z) }, \
|
||||
@@ -46,9 +46,9 @@ typedef struct __mavlink_safety_set_allowed_area_t {
|
||||
#define MAVLINK_MESSAGE_INFO_SAFETY_SET_ALLOWED_AREA { \
|
||||
"SAFETY_SET_ALLOWED_AREA", \
|
||||
9, \
|
||||
{ { "target_system", NULL, MAVLINK_TYPE_UINT8_T, 0, 24, offsetof(mavlink_safety_set_allowed_area_t, target_system) }, \
|
||||
{ "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0, 25, offsetof(mavlink_safety_set_allowed_area_t, target_component) }, \
|
||||
{ "frame", NULL, MAVLINK_TYPE_UINT8_T, 0, 26, offsetof(mavlink_safety_set_allowed_area_t, frame) }, \
|
||||
{ { "target_system", NULL, MAVLINK_TYPE_UINT16_T, 0, 24, offsetof(mavlink_safety_set_allowed_area_t, target_system) }, \
|
||||
{ "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0, 26, offsetof(mavlink_safety_set_allowed_area_t, target_component) }, \
|
||||
{ "frame", NULL, MAVLINK_TYPE_UINT8_T, 0, 27, offsetof(mavlink_safety_set_allowed_area_t, frame) }, \
|
||||
{ "p1x", NULL, MAVLINK_TYPE_FLOAT, 0, 0, offsetof(mavlink_safety_set_allowed_area_t, p1x) }, \
|
||||
{ "p1y", NULL, MAVLINK_TYPE_FLOAT, 0, 4, offsetof(mavlink_safety_set_allowed_area_t, p1y) }, \
|
||||
{ "p1z", NULL, MAVLINK_TYPE_FLOAT, 0, 8, offsetof(mavlink_safety_set_allowed_area_t, p1z) }, \
|
||||
@@ -77,7 +77,7 @@ typedef struct __mavlink_safety_set_allowed_area_t {
|
||||
* @return length of the message in bytes (excluding serial stream start sign)
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_safety_set_allowed_area_pack(uint16_t system_id, uint8_t component_id, mavlink_message_t* msg,
|
||||
uint8_t target_system, uint8_t target_component, uint8_t frame, float p1x, float p1y, float p1z, float p2x, float p2y, float p2z)
|
||||
uint16_t target_system, uint8_t target_component, uint8_t frame, float p1x, float p1y, float p1z, float p2x, float p2y, float p2z)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_SAFETY_SET_ALLOWED_AREA_LEN];
|
||||
@@ -87,9 +87,9 @@ static inline uint16_t mavlink_msg_safety_set_allowed_area_pack(uint16_t system_
|
||||
_mav_put_float(buf, 12, p2x);
|
||||
_mav_put_float(buf, 16, p2y);
|
||||
_mav_put_float(buf, 20, p2z);
|
||||
_mav_put_uint8_t(buf, 24, target_system);
|
||||
_mav_put_uint8_t(buf, 25, target_component);
|
||||
_mav_put_uint8_t(buf, 26, frame);
|
||||
_mav_put_uint16_t(buf, 24, target_system);
|
||||
_mav_put_uint8_t(buf, 26, target_component);
|
||||
_mav_put_uint8_t(buf, 27, frame);
|
||||
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_SAFETY_SET_ALLOWED_AREA_LEN);
|
||||
#else
|
||||
@@ -130,7 +130,7 @@ static inline uint16_t mavlink_msg_safety_set_allowed_area_pack(uint16_t system_
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_safety_set_allowed_area_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 frame,float p1x,float p1y,float p1z,float p2x,float p2y,float p2z)
|
||||
uint16_t target_system,uint8_t target_component,uint8_t frame,float p1x,float p1y,float p1z,float p2x,float p2y,float p2z)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_SAFETY_SET_ALLOWED_AREA_LEN];
|
||||
@@ -140,9 +140,9 @@ static inline uint16_t mavlink_msg_safety_set_allowed_area_pack_chan(uint16_t sy
|
||||
_mav_put_float(buf, 12, p2x);
|
||||
_mav_put_float(buf, 16, p2y);
|
||||
_mav_put_float(buf, 20, p2z);
|
||||
_mav_put_uint8_t(buf, 24, target_system);
|
||||
_mav_put_uint8_t(buf, 25, target_component);
|
||||
_mav_put_uint8_t(buf, 26, frame);
|
||||
_mav_put_uint16_t(buf, 24, target_system);
|
||||
_mav_put_uint8_t(buf, 26, target_component);
|
||||
_mav_put_uint8_t(buf, 27, frame);
|
||||
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_SAFETY_SET_ALLOWED_AREA_LEN);
|
||||
#else
|
||||
@@ -207,7 +207,7 @@ static inline uint16_t mavlink_msg_safety_set_allowed_area_encode_chan(uint16_t
|
||||
*/
|
||||
#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
|
||||
|
||||
static inline void mavlink_msg_safety_set_allowed_area_send(mavlink_channel_t chan, uint8_t target_system, uint8_t target_component, uint8_t frame, float p1x, float p1y, float p1z, float p2x, float p2y, float p2z)
|
||||
static inline void mavlink_msg_safety_set_allowed_area_send(mavlink_channel_t chan, uint16_t target_system, uint8_t target_component, uint8_t frame, float p1x, float p1y, float p1z, float p2x, float p2y, float p2z)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_SAFETY_SET_ALLOWED_AREA_LEN];
|
||||
@@ -217,9 +217,9 @@ static inline void mavlink_msg_safety_set_allowed_area_send(mavlink_channel_t ch
|
||||
_mav_put_float(buf, 12, p2x);
|
||||
_mav_put_float(buf, 16, p2y);
|
||||
_mav_put_float(buf, 20, p2z);
|
||||
_mav_put_uint8_t(buf, 24, target_system);
|
||||
_mav_put_uint8_t(buf, 25, target_component);
|
||||
_mav_put_uint8_t(buf, 26, frame);
|
||||
_mav_put_uint16_t(buf, 24, target_system);
|
||||
_mav_put_uint8_t(buf, 26, target_component);
|
||||
_mav_put_uint8_t(buf, 27, frame);
|
||||
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_SAFETY_SET_ALLOWED_AREA, buf, MAVLINK_MSG_ID_SAFETY_SET_ALLOWED_AREA_MIN_LEN, MAVLINK_MSG_ID_SAFETY_SET_ALLOWED_AREA_LEN, MAVLINK_MSG_ID_SAFETY_SET_ALLOWED_AREA_CRC);
|
||||
#else
|
||||
@@ -260,7 +260,7 @@ static inline void mavlink_msg_safety_set_allowed_area_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_safety_set_allowed_area_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint8_t target_system, uint8_t target_component, uint8_t frame, float p1x, float p1y, float p1z, float p2x, float p2y, float p2z)
|
||||
static inline void mavlink_msg_safety_set_allowed_area_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint16_t target_system, uint8_t target_component, uint8_t frame, float p1x, float p1y, float p1z, float p2x, float p2y, float p2z)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char *buf = (char *)msgbuf;
|
||||
@@ -270,9 +270,9 @@ static inline void mavlink_msg_safety_set_allowed_area_send_buf(mavlink_message_
|
||||
_mav_put_float(buf, 12, p2x);
|
||||
_mav_put_float(buf, 16, p2y);
|
||||
_mav_put_float(buf, 20, p2z);
|
||||
_mav_put_uint8_t(buf, 24, target_system);
|
||||
_mav_put_uint8_t(buf, 25, target_component);
|
||||
_mav_put_uint8_t(buf, 26, frame);
|
||||
_mav_put_uint16_t(buf, 24, target_system);
|
||||
_mav_put_uint8_t(buf, 26, target_component);
|
||||
_mav_put_uint8_t(buf, 27, frame);
|
||||
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_SAFETY_SET_ALLOWED_AREA, buf, MAVLINK_MSG_ID_SAFETY_SET_ALLOWED_AREA_MIN_LEN, MAVLINK_MSG_ID_SAFETY_SET_ALLOWED_AREA_LEN, MAVLINK_MSG_ID_SAFETY_SET_ALLOWED_AREA_CRC);
|
||||
#else
|
||||
@@ -302,9 +302,9 @@ static inline void mavlink_msg_safety_set_allowed_area_send_buf(mavlink_message_
|
||||
*
|
||||
* @return System ID
|
||||
*/
|
||||
static inline uint8_t mavlink_msg_safety_set_allowed_area_get_target_system(const mavlink_message_t* msg)
|
||||
static inline uint16_t mavlink_msg_safety_set_allowed_area_get_target_system(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint8_t(msg, 24);
|
||||
return _MAV_RETURN_uint16_t(msg, 24);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -314,7 +314,7 @@ static inline uint8_t mavlink_msg_safety_set_allowed_area_get_target_system(cons
|
||||
*/
|
||||
static inline uint8_t mavlink_msg_safety_set_allowed_area_get_target_component(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint8_t(msg, 25);
|
||||
return _MAV_RETURN_uint8_t(msg, 26);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -324,7 +324,7 @@ static inline uint8_t mavlink_msg_safety_set_allowed_area_get_target_component(c
|
||||
*/
|
||||
static inline uint8_t mavlink_msg_safety_set_allowed_area_get_frame(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint8_t(msg, 26);
|
||||
return _MAV_RETURN_uint8_t(msg, 27);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user