3 #define MAVLINK_MSG_ID_RC_CHANNELS 65 30 #define MAVLINK_MSG_ID_RC_CHANNELS_LEN 42 31 #define MAVLINK_MSG_ID_65_LEN 42 33 #define MAVLINK_MSG_ID_RC_CHANNELS_CRC 118 34 #define MAVLINK_MSG_ID_65_CRC 118 38 #define MAVLINK_MESSAGE_INFO_RC_CHANNELS { \ 41 { { "time_boot_ms", NULL, MAVLINK_TYPE_UINT32_T, 0, 0, offsetof(mavlink_rc_channels_t, time_boot_ms) }, \ 42 { "chan1_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 4, offsetof(mavlink_rc_channels_t, chan1_raw) }, \ 43 { "chan2_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 6, offsetof(mavlink_rc_channels_t, chan2_raw) }, \ 44 { "chan3_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 8, offsetof(mavlink_rc_channels_t, chan3_raw) }, \ 45 { "chan4_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 10, offsetof(mavlink_rc_channels_t, chan4_raw) }, \ 46 { "chan5_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 12, offsetof(mavlink_rc_channels_t, chan5_raw) }, \ 47 { "chan6_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 14, offsetof(mavlink_rc_channels_t, chan6_raw) }, \ 48 { "chan7_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 16, offsetof(mavlink_rc_channels_t, chan7_raw) }, \ 49 { "chan8_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 18, offsetof(mavlink_rc_channels_t, chan8_raw) }, \ 50 { "chan9_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 20, offsetof(mavlink_rc_channels_t, chan9_raw) }, \ 51 { "chan10_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 22, offsetof(mavlink_rc_channels_t, chan10_raw) }, \ 52 { "chan11_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 24, offsetof(mavlink_rc_channels_t, chan11_raw) }, \ 53 { "chan12_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 26, offsetof(mavlink_rc_channels_t, chan12_raw) }, \ 54 { "chan13_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 28, offsetof(mavlink_rc_channels_t, chan13_raw) }, \ 55 { "chan14_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 30, offsetof(mavlink_rc_channels_t, chan14_raw) }, \ 56 { "chan15_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 32, offsetof(mavlink_rc_channels_t, chan15_raw) }, \ 57 { "chan16_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 34, offsetof(mavlink_rc_channels_t, chan16_raw) }, \ 58 { "chan17_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 36, offsetof(mavlink_rc_channels_t, chan17_raw) }, \ 59 { "chan18_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 38, offsetof(mavlink_rc_channels_t, chan18_raw) }, \ 60 { "chancount", NULL, MAVLINK_TYPE_UINT8_T, 0, 40, offsetof(mavlink_rc_channels_t, chancount) }, \ 61 { "rssi", NULL, MAVLINK_TYPE_UINT8_T, 0, 41, offsetof(mavlink_rc_channels_t, rssi) }, \ 96 uint32_t
time_boot_ms, uint8_t
chancount, uint16_t
chan1_raw, uint16_t
chan2_raw, uint16_t
chan3_raw, uint16_t
chan4_raw, uint16_t
chan5_raw, uint16_t
chan6_raw, uint16_t
chan7_raw, uint16_t
chan8_raw, uint16_t
chan9_raw, uint16_t
chan10_raw, uint16_t
chan11_raw, uint16_t
chan12_raw, uint16_t
chan13_raw, uint16_t
chan14_raw, uint16_t
chan15_raw, uint16_t
chan16_raw, uint16_t
chan17_raw, uint16_t
chan18_raw, uint8_t
rssi)
98 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 151 #if MAVLINK_CRC_EXTRA 188 mavlink_message_t* msg,
189 uint32_t
time_boot_ms,uint8_t
chancount,uint16_t
chan1_raw,uint16_t
chan2_raw,uint16_t
chan3_raw,uint16_t
chan4_raw,uint16_t
chan5_raw,uint16_t
chan6_raw,uint16_t
chan7_raw,uint16_t
chan8_raw,uint16_t
chan9_raw,uint16_t
chan10_raw,uint16_t
chan11_raw,uint16_t
chan12_raw,uint16_t
chan13_raw,uint16_t
chan14_raw,uint16_t
chan15_raw,uint16_t
chan16_raw,uint16_t
chan17_raw,uint16_t
chan18_raw,uint8_t
rssi)
191 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 244 #if MAVLINK_CRC_EXTRA 261 return mavlink_msg_rc_channels_pack(system_id, component_id, msg, rc_channels->
time_boot_ms, rc_channels->
chancount, rc_channels->
chan1_raw, rc_channels->
chan2_raw, rc_channels->
chan3_raw, rc_channels->
chan4_raw, rc_channels->
chan5_raw, rc_channels->
chan6_raw, rc_channels->
chan7_raw, rc_channels->
chan8_raw, rc_channels->
chan9_raw, rc_channels->
chan10_raw, rc_channels->
chan11_raw, rc_channels->
chan12_raw, rc_channels->
chan13_raw, rc_channels->
chan14_raw, rc_channels->
chan15_raw, rc_channels->
chan16_raw, rc_channels->
chan17_raw, rc_channels->
chan18_raw, rc_channels->
rssi);
275 return mavlink_msg_rc_channels_pack_chan(system_id, component_id, chan, msg, rc_channels->
time_boot_ms, rc_channels->
chancount, rc_channels->
chan1_raw, rc_channels->
chan2_raw, rc_channels->
chan3_raw, rc_channels->
chan4_raw, rc_channels->
chan5_raw, rc_channels->
chan6_raw, rc_channels->
chan7_raw, rc_channels->
chan8_raw, rc_channels->
chan9_raw, rc_channels->
chan10_raw, rc_channels->
chan11_raw, rc_channels->
chan12_raw, rc_channels->
chan13_raw, rc_channels->
chan14_raw, rc_channels->
chan15_raw, rc_channels->
chan16_raw, rc_channels->
chan17_raw, rc_channels->
chan18_raw, rc_channels->
rssi);
304 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS 306 static inline void mavlink_msg_rc_channels_send(
mavlink_channel_t chan, uint32_t
time_boot_ms, uint8_t
chancount, uint16_t
chan1_raw, uint16_t
chan2_raw, uint16_t
chan3_raw, uint16_t
chan4_raw, uint16_t
chan5_raw, uint16_t
chan6_raw, uint16_t
chan7_raw, uint16_t
chan8_raw, uint16_t
chan9_raw, uint16_t
chan10_raw, uint16_t
chan11_raw, uint16_t
chan12_raw, uint16_t
chan13_raw, uint16_t
chan14_raw, uint16_t
chan15_raw, uint16_t
chan16_raw, uint16_t
chan17_raw, uint16_t
chan18_raw, uint8_t
rssi)
308 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 332 #if MAVLINK_CRC_EXTRA 361 #if MAVLINK_CRC_EXTRA 369 #if MAVLINK_MSG_ID_RC_CHANNELS_LEN <= MAVLINK_MAX_PAYLOAD_LEN 377 static inline void mavlink_msg_rc_channels_send_buf(mavlink_message_t *msgbuf,
mavlink_channel_t chan, uint32_t
time_boot_ms, uint8_t
chancount, uint16_t
chan1_raw, uint16_t
chan2_raw, uint16_t
chan3_raw, uint16_t
chan4_raw, uint16_t
chan5_raw, uint16_t
chan6_raw, uint16_t
chan7_raw, uint16_t
chan8_raw, uint16_t
chan9_raw, uint16_t
chan10_raw, uint16_t
chan11_raw, uint16_t
chan12_raw, uint16_t
chan13_raw, uint16_t
chan14_raw, uint16_t
chan15_raw, uint16_t
chan16_raw, uint16_t
chan17_raw, uint16_t
chan18_raw, uint8_t
rssi)
379 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 380 char *buf = (
char *)msgbuf;
403 #if MAVLINK_CRC_EXTRA 432 #if MAVLINK_CRC_EXTRA 453 return _MAV_RETURN_uint32_t(msg, 0);
473 return _MAV_RETURN_uint16_t(msg, 4);
483 return _MAV_RETURN_uint16_t(msg, 6);
493 return _MAV_RETURN_uint16_t(msg, 8);
503 return _MAV_RETURN_uint16_t(msg, 10);
513 return _MAV_RETURN_uint16_t(msg, 12);
523 return _MAV_RETURN_uint16_t(msg, 14);
533 return _MAV_RETURN_uint16_t(msg, 16);
543 return _MAV_RETURN_uint16_t(msg, 18);
553 return _MAV_RETURN_uint16_t(msg, 20);
563 return _MAV_RETURN_uint16_t(msg, 22);
573 return _MAV_RETURN_uint16_t(msg, 24);
583 return _MAV_RETURN_uint16_t(msg, 26);
593 return _MAV_RETURN_uint16_t(msg, 28);
603 return _MAV_RETURN_uint16_t(msg, 30);
613 return _MAV_RETURN_uint16_t(msg, 32);
623 return _MAV_RETURN_uint16_t(msg, 34);
633 return _MAV_RETURN_uint16_t(msg, 36);
643 return _MAV_RETURN_uint16_t(msg, 38);
664 #if MAVLINK_NEED_BYTE_SWAP
static uint16_t mavlink_msg_rc_channels_get_chan17_raw(const mavlink_message_t *msg)
Get field chan17_raw from rc_channels message.
static uint32_t mavlink_msg_rc_channels_get_time_boot_ms(const mavlink_message_t *msg)
Send a rc_channels message.
#define MAVLINK_MSG_ID_RC_CHANNELS_CRC
static uint16_t mavlink_msg_rc_channels_get_chan6_raw(const mavlink_message_t *msg)
Get field chan6_raw from rc_channels message.
#define _MAV_RETURN_uint8_t(msg, wire_offset)
static uint8_t mavlink_msg_rc_channels_get_chancount(const mavlink_message_t *msg)
Get field chancount from rc_channels message.
static uint16_t mavlink_msg_rc_channels_get_chan12_raw(const mavlink_message_t *msg)
Get field chan12_raw from rc_channels message.
static uint16_t mavlink_msg_rc_channels_get_chan5_raw(const mavlink_message_t *msg)
Get field chan5_raw from rc_channels message.
#define MAVLINK_MSG_ID_RC_CHANNELS
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 uint16_t mavlink_msg_rc_channels_get_chan16_raw(const mavlink_message_t *msg)
Get field chan16_raw from rc_channels message.
#define _MAV_PAYLOAD_NON_CONST(msg)
static uint16_t mavlink_msg_rc_channels_get_chan7_raw(const mavlink_message_t *msg)
Get field chan7_raw from rc_channels message.
static uint16_t mavlink_msg_rc_channels_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, uint32_t time_boot_ms, uint8_t chancount, uint16_t chan1_raw, uint16_t chan2_raw, uint16_t chan3_raw, uint16_t chan4_raw, uint16_t chan5_raw, uint16_t chan6_raw, uint16_t chan7_raw, uint16_t chan8_raw, uint16_t chan9_raw, uint16_t chan10_raw, uint16_t chan11_raw, uint16_t chan12_raw, uint16_t chan13_raw, uint16_t chan14_raw, uint16_t chan15_raw, uint16_t chan16_raw, uint16_t chan17_raw, uint16_t chan18_raw, uint8_t rssi)
Pack a rc_channels message.
static uint16_t mavlink_msg_rc_channels_get_chan14_raw(const mavlink_message_t *msg)
Get field chan14_raw from rc_channels message.
static void mavlink_msg_rc_channels_decode(const mavlink_message_t *msg, mavlink_rc_channels_t *rc_channels)
Decode a rc_channels message into a struct.
static uint16_t mavlink_msg_rc_channels_get_chan13_raw(const mavlink_message_t *msg)
Get field chan13_raw from rc_channels message.
#define _MAV_PAYLOAD(msg)
struct __mavlink_rc_channels_t mavlink_rc_channels_t
static uint16_t mavlink_msg_rc_channels_get_chan8_raw(const mavlink_message_t *msg)
Get field chan8_raw from rc_channels message.
static uint16_t mavlink_msg_rc_channels_get_chan3_raw(const mavlink_message_t *msg)
Get field chan3_raw from rc_channels message.
static uint16_t mavlink_msg_rc_channels_get_chan10_raw(const mavlink_message_t *msg)
Get field chan10_raw from rc_channels message.
static uint16_t mavlink_msg_rc_channels_get_chan1_raw(const mavlink_message_t *msg)
Get field chan1_raw from rc_channels message.
static uint16_t mavlink_msg_rc_channels_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, uint32_t time_boot_ms, uint8_t chancount, uint16_t chan1_raw, uint16_t chan2_raw, uint16_t chan3_raw, uint16_t chan4_raw, uint16_t chan5_raw, uint16_t chan6_raw, uint16_t chan7_raw, uint16_t chan8_raw, uint16_t chan9_raw, uint16_t chan10_raw, uint16_t chan11_raw, uint16_t chan12_raw, uint16_t chan13_raw, uint16_t chan14_raw, uint16_t chan15_raw, uint16_t chan16_raw, uint16_t chan17_raw, uint16_t chan18_raw, uint8_t rssi)
Pack a rc_channels message on a channel.
static uint16_t mavlink_msg_rc_channels_get_chan2_raw(const mavlink_message_t *msg)
Get field chan2_raw from rc_channels message.
#define MAVLINK_MSG_ID_RC_CHANNELS_LEN
static uint16_t mavlink_msg_rc_channels_get_chan9_raw(const mavlink_message_t *msg)
Get field chan9_raw from rc_channels message.
static uint16_t mavlink_msg_rc_channels_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const mavlink_rc_channels_t *rc_channels)
Encode a rc_channels struct.
static uint16_t mavlink_msg_rc_channels_get_chan4_raw(const mavlink_message_t *msg)
Get field chan4_raw from rc_channels message.
#define _mav_put_uint16_t(buf, wire_offset, b)
static uint16_t mavlink_msg_rc_channels_get_chan18_raw(const mavlink_message_t *msg)
Get field chan18_raw from rc_channels message.
static uint16_t mavlink_msg_rc_channels_get_chan11_raw(const mavlink_message_t *msg)
Get field chan11_raw from rc_channels 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.
static uint8_t mavlink_msg_rc_channels_get_rssi(const mavlink_message_t *msg)
Get field rssi from rc_channels message.
static uint16_t mavlink_msg_rc_channels_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, const mavlink_rc_channels_t *rc_channels)
Encode a rc_channels struct on a channel.
static uint16_t mavlink_msg_rc_channels_get_chan15_raw(const mavlink_message_t *msg)
Get field chan15_raw from rc_channels message.
#define _mav_put_uint32_t(buf, wire_offset, b)