3 #define MAVLINK_MSG_ID_RADIO_STATUS 109
16 #define MAVLINK_MSG_ID_RADIO_STATUS_LEN 9
17 #define MAVLINK_MSG_ID_109_LEN 9
19 #define MAVLINK_MSG_ID_RADIO_STATUS_CRC 185
20 #define MAVLINK_MSG_ID_109_CRC 185
24 #define MAVLINK_MESSAGE_INFO_RADIO_STATUS { \
27 { { "rxerrors", NULL, MAVLINK_TYPE_UINT16_T, 0, 0, offsetof(mavlink_radio_status_t, rxerrors) }, \
28 { "fixed", NULL, MAVLINK_TYPE_UINT16_T, 0, 2, offsetof(mavlink_radio_status_t, fixed) }, \
29 { "rssi", NULL, MAVLINK_TYPE_UINT8_T, 0, 4, offsetof(mavlink_radio_status_t, rssi) }, \
30 { "remrssi", NULL, MAVLINK_TYPE_UINT8_T, 0, 5, offsetof(mavlink_radio_status_t, remrssi) }, \
31 { "txbuf", NULL, MAVLINK_TYPE_UINT8_T, 0, 6, offsetof(mavlink_radio_status_t, txbuf) }, \
32 { "noise", NULL, MAVLINK_TYPE_UINT8_T, 0, 7, offsetof(mavlink_radio_status_t, noise) }, \
33 { "remnoise", NULL, MAVLINK_TYPE_UINT8_T, 0, 8, offsetof(mavlink_radio_status_t, remnoise) }, \
53 static inline uint16_t mavlink_msg_radio_status_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
54 uint8_t rssi, uint8_t remrssi, uint8_t txbuf, uint8_t noise, uint8_t remnoise, uint16_t rxerrors, uint16_t fixed)
56 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
103 static inline uint16_t mavlink_msg_radio_status_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
104 mavlink_message_t* msg,
105 uint8_t rssi,uint8_t remrssi,uint8_t txbuf,uint8_t noise,uint8_t remnoise,uint16_t rxerrors,uint16_t fixed)
107 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
121 packet.
fixed = fixed;
124 packet.
txbuf = txbuf;
125 packet.
noise = noise;
132 #if MAVLINK_CRC_EXTRA
147 static inline uint16_t mavlink_msg_radio_status_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_radio_status_t* radio_status)
149 return mavlink_msg_radio_status_pack(system_id, component_id, msg, radio_status->
rssi, radio_status->
remrssi, radio_status->
txbuf, radio_status->
noise, radio_status->
remnoise, radio_status->
rxerrors, radio_status->
fixed);
161 static inline uint16_t mavlink_msg_radio_status_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_radio_status_t* radio_status)
163 return mavlink_msg_radio_status_pack_chan(system_id, component_id, chan, msg, radio_status->
rssi, radio_status->
remrssi, radio_status->
txbuf, radio_status->
noise, radio_status->
remnoise, radio_status->
rxerrors, radio_status->
fixed);
178 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
180 static inline void mavlink_msg_radio_status_send(
mavlink_channel_t chan, uint8_t rssi, uint8_t remrssi, uint8_t txbuf, uint8_t noise, uint8_t remnoise, uint16_t rxerrors, uint16_t fixed)
182 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
192 #if MAVLINK_CRC_EXTRA
200 packet.
fixed = fixed;
203 packet.
txbuf = txbuf;
204 packet.
noise = noise;
207 #if MAVLINK_CRC_EXTRA
215 #if MAVLINK_MSG_ID_RADIO_STATUS_LEN <= MAVLINK_MAX_PAYLOAD_LEN
223 static inline void mavlink_msg_radio_status_send_buf(mavlink_message_t *msgbuf,
mavlink_channel_t chan, uint8_t rssi, uint8_t remrssi, uint8_t txbuf, uint8_t noise, uint8_t remnoise, uint16_t rxerrors, uint16_t fixed)
225 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
226 char *buf = (
char *)msgbuf;
235 #if MAVLINK_CRC_EXTRA
243 packet->
fixed = fixed;
246 packet->
txbuf = txbuf;
247 packet->
noise = noise;
250 #if MAVLINK_CRC_EXTRA
269 static inline uint8_t mavlink_msg_radio_status_get_rssi(
const mavlink_message_t* msg)
279 static inline uint8_t mavlink_msg_radio_status_get_remrssi(
const mavlink_message_t* msg)
289 static inline uint8_t mavlink_msg_radio_status_get_txbuf(
const mavlink_message_t* msg)
299 static inline uint8_t mavlink_msg_radio_status_get_noise(
const mavlink_message_t* msg)
309 static inline uint8_t mavlink_msg_radio_status_get_remnoise(
const mavlink_message_t* msg)
319 static inline uint16_t mavlink_msg_radio_status_get_rxerrors(
const mavlink_message_t* msg)
321 return _MAV_RETURN_uint16_t(msg, 0);
329 static inline uint16_t mavlink_msg_radio_status_get_fixed(
const mavlink_message_t* msg)
331 return _MAV_RETURN_uint16_t(msg, 2);
340 static inline void mavlink_msg_radio_status_decode(
const mavlink_message_t* msg,
mavlink_radio_status_t* radio_status)
342 #if MAVLINK_NEED_BYTE_SWAP
343 radio_status->
rxerrors = mavlink_msg_radio_status_get_rxerrors(msg);
344 radio_status->
fixed = mavlink_msg_radio_status_get_fixed(msg);
345 radio_status->
rssi = mavlink_msg_radio_status_get_rssi(msg);
346 radio_status->
remrssi = mavlink_msg_radio_status_get_remrssi(msg);
347 radio_status->
txbuf = mavlink_msg_radio_status_get_txbuf(msg);
348 radio_status->
noise = mavlink_msg_radio_status_get_noise(msg);
349 radio_status->
remnoise = mavlink_msg_radio_status_get_remnoise(msg);
#define _MAV_RETURN_uint8_t(msg, wire_offset)
Definition: protocol.h:238
uint8_t txbuf
Remaining free buffer space in percent.
Definition: mavlink_msg_radio_status.h:11
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.
Definition: mavlink_helpers.h:105
#define _mav_put_uint8_t(buf, wire_offset, b)
Definition: protocol.h:134
#define _MAV_PAYLOAD_NON_CONST(msg)
Definition: mavlink_types.h:172
mavlink_channel_t
Definition: mavlink_types.h:178
Definition: mavlink_msg_radio_status.h:5
#define _MAV_PAYLOAD(msg)
Definition: mavlink_types.h:171
uint16_t fixed
Count of error corrected packets.
Definition: mavlink_msg_radio_status.h:8
uint8_t remnoise
Remote background noise level.
Definition: mavlink_msg_radio_status.h:13
uint16_t rxerrors
Receive errors.
Definition: mavlink_msg_radio_status.h:7
#define MAVLINK_MSG_ID_RADIO_STATUS_CRC
Definition: mavlink_msg_radio_status.h:19
uint8_t remrssi
Remote signal strength.
Definition: mavlink_msg_radio_status.h:10
#define _mav_put_uint16_t(buf, wire_offset, b)
Definition: protocol.h:139
uint8_t noise
Background noise level.
Definition: mavlink_msg_radio_status.h:12
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.
Definition: mavlink_helpers.h:71
#define MAVLINK_MSG_ID_RADIO_STATUS
Definition: mavlink_msg_radio_status.h:3
uint8_t rssi
Local signal strength.
Definition: mavlink_msg_radio_status.h:9
#define MAVLINK_MSG_ID_RADIO_STATUS_LEN
Definition: mavlink_msg_radio_status.h:16
struct __mavlink_radio_status_t mavlink_radio_status_t