3 #define MAVLINK_MSG_ID_SAFETY_ALLOWED_AREA 55 16 #define MAVLINK_MSG_ID_SAFETY_ALLOWED_AREA_LEN 25 17 #define MAVLINK_MSG_ID_55_LEN 25 19 #define MAVLINK_MSG_ID_SAFETY_ALLOWED_AREA_CRC 3 20 #define MAVLINK_MSG_ID_55_CRC 3 24 #define MAVLINK_MESSAGE_INFO_SAFETY_ALLOWED_AREA { \ 25 "SAFETY_ALLOWED_AREA", \ 27 { { "p1x", NULL, MAVLINK_TYPE_FLOAT, 0, 0, offsetof(mavlink_safety_allowed_area_t, p1x) }, \ 28 { "p1y", NULL, MAVLINK_TYPE_FLOAT, 0, 4, offsetof(mavlink_safety_allowed_area_t, p1y) }, \ 29 { "p1z", NULL, MAVLINK_TYPE_FLOAT, 0, 8, offsetof(mavlink_safety_allowed_area_t, p1z) }, \ 30 { "p2x", NULL, MAVLINK_TYPE_FLOAT, 0, 12, offsetof(mavlink_safety_allowed_area_t, p2x) }, \ 31 { "p2y", NULL, MAVLINK_TYPE_FLOAT, 0, 16, offsetof(mavlink_safety_allowed_area_t, p2y) }, \ 32 { "p2z", NULL, MAVLINK_TYPE_FLOAT, 0, 20, offsetof(mavlink_safety_allowed_area_t, p2z) }, \ 33 { "frame", NULL, MAVLINK_TYPE_UINT8_T, 0, 24, offsetof(mavlink_safety_allowed_area_t, frame) }, \ 56 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 104 mavlink_message_t* msg,
107 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 132 #if MAVLINK_CRC_EXTRA 163 return mavlink_msg_safety_allowed_area_pack_chan(system_id, component_id, chan, msg, safety_allowed_area->
frame, safety_allowed_area->
p1x, safety_allowed_area->
p1y, safety_allowed_area->
p1z, safety_allowed_area->
p2x, safety_allowed_area->
p2y, safety_allowed_area->
p2z);
178 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS 182 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 192 #if MAVLINK_CRC_EXTRA 207 #if MAVLINK_CRC_EXTRA 215 #if MAVLINK_MSG_ID_SAFETY_ALLOWED_AREA_LEN <= MAVLINK_MAX_PAYLOAD_LEN 225 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 226 char *buf = (
char *)msgbuf;
235 #if MAVLINK_CRC_EXTRA 250 #if MAVLINK_CRC_EXTRA 281 return _MAV_RETURN_float(msg, 0);
291 return _MAV_RETURN_float(msg, 4);
301 return _MAV_RETURN_float(msg, 8);
311 return _MAV_RETURN_float(msg, 12);
321 return _MAV_RETURN_float(msg, 16);
331 return _MAV_RETURN_float(msg, 20);
342 #if MAVLINK_NEED_BYTE_SWAP
#define _mav_put_float(buf, wire_offset, b)
static uint16_t mavlink_msg_safety_allowed_area_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, uint8_t frame, float p1x, float p1y, float p1z, float p2x, float p2y, float p2z)
Pack a safety_allowed_area message on a channel.
#define MAVLINK_MSG_ID_SAFETY_ALLOWED_AREA_LEN
static float mavlink_msg_safety_allowed_area_get_p1x(const mavlink_message_t *msg)
Get field p1x from safety_allowed_area message.
static float mavlink_msg_safety_allowed_area_get_p2z(const mavlink_message_t *msg)
Get field p2z from safety_allowed_area message.
static uint8_t mavlink_msg_safety_allowed_area_get_frame(const mavlink_message_t *msg)
Send a safety_allowed_area message.
#define _MAV_RETURN_uint8_t(msg, wire_offset)
static float mavlink_msg_safety_allowed_area_get_p1y(const mavlink_message_t *msg)
Get field p1y from safety_allowed_area message.
#define MAVLINK_MSG_ID_SAFETY_ALLOWED_AREA
MAVLINK_HELPER uint16_t mavlink_finalize_message(mavlink_message_t *msg, uint8_t system_id, uint8_t component_id, uint8_t length)
Finalize a MAVLink message with MAVLINK_COMM_0 as default channel.
#define _mav_put_uint8_t(buf, wire_offset, b)
#define _MAV_PAYLOAD_NON_CONST(msg)
static float mavlink_msg_safety_allowed_area_get_p1z(const mavlink_message_t *msg)
Get field p1z from safety_allowed_area message.
#define _MAV_PAYLOAD(msg)
static float mavlink_msg_safety_allowed_area_get_p2x(const mavlink_message_t *msg)
Get field p2x from safety_allowed_area message.
#define MAVLINK_MSG_ID_SAFETY_ALLOWED_AREA_CRC
struct __mavlink_safety_allowed_area_t mavlink_safety_allowed_area_t
static uint16_t mavlink_msg_safety_allowed_area_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, uint8_t frame, float p1x, float p1y, float p1z, float p2x, float p2y, float p2z)
Pack a safety_allowed_area message.
static uint16_t mavlink_msg_safety_allowed_area_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const mavlink_safety_allowed_area_t *safety_allowed_area)
Encode a safety_allowed_area struct.
static void mavlink_msg_safety_allowed_area_decode(const mavlink_message_t *msg, mavlink_safety_allowed_area_t *safety_allowed_area)
Decode a safety_allowed_area message into a struct.
static uint16_t mavlink_msg_safety_allowed_area_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, const mavlink_safety_allowed_area_t *safety_allowed_area)
Encode a safety_allowed_area struct on a channel.
MAVLINK_HELPER uint16_t mavlink_finalize_message_chan(mavlink_message_t *msg, uint8_t system_id, uint8_t component_id, uint8_t chan, uint8_t length)
Finalize a MAVLink message with channel assignment.
static float mavlink_msg_safety_allowed_area_get_p2y(const mavlink_message_t *msg)
Get field p2y from safety_allowed_area message.