3 #define MAVLINK_MSG_ID_SAFETY_SET_ALLOWED_AREA 54 18 #define MAVLINK_MSG_ID_SAFETY_SET_ALLOWED_AREA_LEN 27 19 #define MAVLINK_MSG_ID_54_LEN 27 21 #define MAVLINK_MSG_ID_SAFETY_SET_ALLOWED_AREA_CRC 15 22 #define MAVLINK_MSG_ID_54_CRC 15 26 #define MAVLINK_MESSAGE_INFO_SAFETY_SET_ALLOWED_AREA { \ 27 "SAFETY_SET_ALLOWED_AREA", \ 29 { { "p1x", NULL, MAVLINK_TYPE_FLOAT, 0, 0, offsetof(mavlink_safety_set_allowed_area_t, p1x) }, \ 30 { "p1y", NULL, MAVLINK_TYPE_FLOAT, 0, 4, offsetof(mavlink_safety_set_allowed_area_t, p1y) }, \ 31 { "p1z", NULL, MAVLINK_TYPE_FLOAT, 0, 8, offsetof(mavlink_safety_set_allowed_area_t, p1z) }, \ 32 { "p2x", NULL, MAVLINK_TYPE_FLOAT, 0, 12, offsetof(mavlink_safety_set_allowed_area_t, p2x) }, \ 33 { "p2y", NULL, MAVLINK_TYPE_FLOAT, 0, 16, offsetof(mavlink_safety_set_allowed_area_t, p2y) }, \ 34 { "p2z", NULL, MAVLINK_TYPE_FLOAT, 0, 20, offsetof(mavlink_safety_set_allowed_area_t, p2z) }, \ 35 { "target_system", NULL, MAVLINK_TYPE_UINT8_T, 0, 24, offsetof(mavlink_safety_set_allowed_area_t, target_system) }, \ 36 { "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0, 25, offsetof(mavlink_safety_set_allowed_area_t, target_component) }, \ 37 { "frame", NULL, MAVLINK_TYPE_UINT8_T, 0, 26, offsetof(mavlink_safety_set_allowed_area_t, frame) }, \ 62 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 116 mavlink_message_t* msg,
119 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 148 #if MAVLINK_CRC_EXTRA 165 return mavlink_msg_safety_set_allowed_area_pack(system_id, component_id, msg, safety_set_allowed_area->
target_system, safety_set_allowed_area->
target_component, safety_set_allowed_area->
frame, safety_set_allowed_area->
p1x, safety_set_allowed_area->
p1y, safety_set_allowed_area->
p1z, safety_set_allowed_area->
p2x, safety_set_allowed_area->
p2y, safety_set_allowed_area->
p2z);
179 return mavlink_msg_safety_set_allowed_area_pack_chan(system_id, component_id, chan, msg, safety_set_allowed_area->
target_system, safety_set_allowed_area->
target_component, safety_set_allowed_area->
frame, safety_set_allowed_area->
p1x, safety_set_allowed_area->
p1y, safety_set_allowed_area->
p1z, safety_set_allowed_area->
p2x, safety_set_allowed_area->
p2y, safety_set_allowed_area->
p2z);
196 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS 200 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 212 #if MAVLINK_CRC_EXTRA 229 #if MAVLINK_CRC_EXTRA 237 #if MAVLINK_MSG_ID_SAFETY_SET_ALLOWED_AREA_LEN <= MAVLINK_MAX_PAYLOAD_LEN 245 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)
247 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 248 char *buf = (
char *)msgbuf;
259 #if MAVLINK_CRC_EXTRA 276 #if MAVLINK_CRC_EXTRA 327 return _MAV_RETURN_float(msg, 0);
337 return _MAV_RETURN_float(msg, 4);
347 return _MAV_RETURN_float(msg, 8);
357 return _MAV_RETURN_float(msg, 12);
367 return _MAV_RETURN_float(msg, 16);
377 return _MAV_RETURN_float(msg, 20);
388 #if MAVLINK_NEED_BYTE_SWAP static float mavlink_msg_safety_set_allowed_area_get_p2z(const mavlink_message_t *msg)
Get field p2z from safety_set_allowed_area message.
#define _mav_put_float(buf, wire_offset, b)
struct __mavlink_safety_set_allowed_area_t mavlink_safety_set_allowed_area_t
static uint8_t mavlink_msg_safety_set_allowed_area_get_target_system(const mavlink_message_t *msg)
Send a safety_set_allowed_area message.
#define _MAV_RETURN_uint8_t(msg, wire_offset)
static void mavlink_msg_safety_set_allowed_area_decode(const mavlink_message_t *msg, mavlink_safety_set_allowed_area_t *safety_set_allowed_area)
Decode a safety_set_allowed_area message into a struct.
static uint16_t mavlink_msg_safety_set_allowed_area_pack(uint8_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)
Pack a safety_set_allowed_area message.
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.
static uint16_t mavlink_msg_safety_set_allowed_area_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const mavlink_safety_set_allowed_area_t *safety_set_allowed_area)
Encode a safety_set_allowed_area struct.
static uint8_t mavlink_msg_safety_set_allowed_area_get_frame(const mavlink_message_t *msg)
Get field frame from safety_set_allowed_area message.
#define _mav_put_uint8_t(buf, wire_offset, b)
#define _MAV_PAYLOAD_NON_CONST(msg)
static uint16_t mavlink_msg_safety_set_allowed_area_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, uint8_t frame, float p1x, float p1y, float p1z, float p2x, float p2y, float p2z)
Pack a safety_set_allowed_area message on a channel.
#define MAVLINK_MSG_ID_SAFETY_SET_ALLOWED_AREA
#define _MAV_PAYLOAD(msg)
#define MAVLINK_MSG_ID_SAFETY_SET_ALLOWED_AREA_CRC
static float mavlink_msg_safety_set_allowed_area_get_p2x(const mavlink_message_t *msg)
Get field p2x from safety_set_allowed_area message.
static float mavlink_msg_safety_set_allowed_area_get_p1y(const mavlink_message_t *msg)
Get field p1y from safety_set_allowed_area message.
static uint8_t mavlink_msg_safety_set_allowed_area_get_target_component(const mavlink_message_t *msg)
Get field target_component from safety_set_allowed_area message.
static float mavlink_msg_safety_set_allowed_area_get_p2y(const mavlink_message_t *msg)
Get field p2y from safety_set_allowed_area message.
static float mavlink_msg_safety_set_allowed_area_get_p1z(const mavlink_message_t *msg)
Get field p1z from safety_set_allowed_area message.
static float mavlink_msg_safety_set_allowed_area_get_p1x(const mavlink_message_t *msg)
Get field p1x from safety_set_allowed_area message.
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.
#define MAVLINK_MSG_ID_SAFETY_SET_ALLOWED_AREA_LEN
static uint16_t mavlink_msg_safety_set_allowed_area_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, const mavlink_safety_set_allowed_area_t *safety_set_allowed_area)
Encode a safety_set_allowed_area struct on a channel.