3 #define MAVLINK_MSG_ID_SMALL_RANGE 187 13 #define MAVLINK_MSG_ID_SMALL_RANGE_LEN 13 14 #define MAVLINK_MSG_ID_187_LEN 13 16 #define MAVLINK_MSG_ID_SMALL_RANGE_CRC 60 17 #define MAVLINK_MSG_ID_187_CRC 60 21 #define MAVLINK_MESSAGE_INFO_SMALL_RANGE { \ 24 { { "range", NULL, MAVLINK_TYPE_FLOAT, 0, 0, offsetof(mavlink_small_range_t, range) }, \ 25 { "max_range", NULL, MAVLINK_TYPE_FLOAT, 0, 4, offsetof(mavlink_small_range_t, max_range) }, \ 26 { "min_range", NULL, MAVLINK_TYPE_FLOAT, 0, 8, offsetof(mavlink_small_range_t, min_range) }, \ 27 { "type", NULL, MAVLINK_TYPE_UINT8_T, 0, 12, offsetof(mavlink_small_range_t, type) }, \ 47 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 86 mavlink_message_t* msg,
89 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 108 #if MAVLINK_CRC_EXTRA 151 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS 155 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 162 #if MAVLINK_CRC_EXTRA 174 #if MAVLINK_CRC_EXTRA 182 #if MAVLINK_MSG_ID_SMALL_RANGE_LEN <= MAVLINK_MAX_PAYLOAD_LEN 192 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 193 char *buf = (
char *)msgbuf;
199 #if MAVLINK_CRC_EXTRA 211 #if MAVLINK_CRC_EXTRA 242 return _MAV_RETURN_float(msg, 0);
252 return _MAV_RETURN_float(msg, 4);
262 return _MAV_RETURN_float(msg, 8);
273 #if MAVLINK_NEED_BYTE_SWAP #define _mav_put_float(buf, wire_offset, b)
static void mavlink_msg_small_range_decode(const mavlink_message_t *msg, mavlink_small_range_t *small_range)
Decode a small_range message into a struct.
static uint16_t mavlink_msg_small_range_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, uint8_t type, float range, float max_range, float min_range)
Pack a small_range message.
#define _MAV_RETURN_uint8_t(msg, wire_offset)
struct __mavlink_small_range_t mavlink_small_range_t
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)
static float mavlink_msg_small_range_get_max_range(const mavlink_message_t *msg)
Get field max_range from small_range message.
#define _MAV_PAYLOAD_NON_CONST(msg)
#define MAVLINK_MSG_ID_SMALL_RANGE_CRC
static uint16_t mavlink_msg_small_range_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, const mavlink_small_range_t *small_range)
Encode a small_range struct on a channel.
#define MAVLINK_MSG_ID_SMALL_RANGE
#define _MAV_PAYLOAD(msg)
static uint8_t mavlink_msg_small_range_get_type(const mavlink_message_t *msg)
Send a small_range message.
static float mavlink_msg_small_range_get_range(const mavlink_message_t *msg)
Get field range from small_range message.
#define MAVLINK_MSG_ID_SMALL_RANGE_LEN
static uint16_t mavlink_msg_small_range_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, uint8_t type, float range, float max_range, float min_range)
Pack a small_range message on a channel.
static uint16_t mavlink_msg_small_range_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const mavlink_small_range_t *small_range)
Encode a small_range struct.
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_small_range_get_min_range(const mavlink_message_t *msg)
Get field min_range from small_range message.