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) }, \
95 static inline uint16_t mavlink_msg_rc_channels_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
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
187 static inline uint16_t mavlink_msg_rc_channels_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
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
259 static inline 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)
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);
273 static inline 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)
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
451 static inline uint32_t mavlink_msg_rc_channels_get_time_boot_ms(
const mavlink_message_t* msg)
453 return _MAV_RETURN_uint32_t(msg, 0);
461 static inline uint8_t mavlink_msg_rc_channels_get_chancount(
const mavlink_message_t* msg)
471 static inline uint16_t mavlink_msg_rc_channels_get_chan1_raw(
const mavlink_message_t* msg)
473 return _MAV_RETURN_uint16_t(msg, 4);
481 static inline uint16_t mavlink_msg_rc_channels_get_chan2_raw(
const mavlink_message_t* msg)
483 return _MAV_RETURN_uint16_t(msg, 6);
491 static inline uint16_t mavlink_msg_rc_channels_get_chan3_raw(
const mavlink_message_t* msg)
493 return _MAV_RETURN_uint16_t(msg, 8);
501 static inline uint16_t mavlink_msg_rc_channels_get_chan4_raw(
const mavlink_message_t* msg)
503 return _MAV_RETURN_uint16_t(msg, 10);
511 static inline uint16_t mavlink_msg_rc_channels_get_chan5_raw(
const mavlink_message_t* msg)
513 return _MAV_RETURN_uint16_t(msg, 12);
521 static inline uint16_t mavlink_msg_rc_channels_get_chan6_raw(
const mavlink_message_t* msg)
523 return _MAV_RETURN_uint16_t(msg, 14);
531 static inline uint16_t mavlink_msg_rc_channels_get_chan7_raw(
const mavlink_message_t* msg)
533 return _MAV_RETURN_uint16_t(msg, 16);
541 static inline uint16_t mavlink_msg_rc_channels_get_chan8_raw(
const mavlink_message_t* msg)
543 return _MAV_RETURN_uint16_t(msg, 18);
551 static inline uint16_t mavlink_msg_rc_channels_get_chan9_raw(
const mavlink_message_t* msg)
553 return _MAV_RETURN_uint16_t(msg, 20);
561 static inline uint16_t mavlink_msg_rc_channels_get_chan10_raw(
const mavlink_message_t* msg)
563 return _MAV_RETURN_uint16_t(msg, 22);
571 static inline uint16_t mavlink_msg_rc_channels_get_chan11_raw(
const mavlink_message_t* msg)
573 return _MAV_RETURN_uint16_t(msg, 24);
581 static inline uint16_t mavlink_msg_rc_channels_get_chan12_raw(
const mavlink_message_t* msg)
583 return _MAV_RETURN_uint16_t(msg, 26);
591 static inline uint16_t mavlink_msg_rc_channels_get_chan13_raw(
const mavlink_message_t* msg)
593 return _MAV_RETURN_uint16_t(msg, 28);
601 static inline uint16_t mavlink_msg_rc_channels_get_chan14_raw(
const mavlink_message_t* msg)
603 return _MAV_RETURN_uint16_t(msg, 30);
611 static inline uint16_t mavlink_msg_rc_channels_get_chan15_raw(
const mavlink_message_t* msg)
613 return _MAV_RETURN_uint16_t(msg, 32);
621 static inline uint16_t mavlink_msg_rc_channels_get_chan16_raw(
const mavlink_message_t* msg)
623 return _MAV_RETURN_uint16_t(msg, 34);
631 static inline uint16_t mavlink_msg_rc_channels_get_chan17_raw(
const mavlink_message_t* msg)
633 return _MAV_RETURN_uint16_t(msg, 36);
641 static inline uint16_t mavlink_msg_rc_channels_get_chan18_raw(
const mavlink_message_t* msg)
643 return _MAV_RETURN_uint16_t(msg, 38);
651 static inline uint8_t mavlink_msg_rc_channels_get_rssi(
const mavlink_message_t* msg)
662 static inline void mavlink_msg_rc_channels_decode(
const mavlink_message_t* msg,
mavlink_rc_channels_t* rc_channels)
664 #if MAVLINK_NEED_BYTE_SWAP
665 rc_channels->
time_boot_ms = mavlink_msg_rc_channels_get_time_boot_ms(msg);
666 rc_channels->
chan1_raw = mavlink_msg_rc_channels_get_chan1_raw(msg);
667 rc_channels->
chan2_raw = mavlink_msg_rc_channels_get_chan2_raw(msg);
668 rc_channels->
chan3_raw = mavlink_msg_rc_channels_get_chan3_raw(msg);
669 rc_channels->
chan4_raw = mavlink_msg_rc_channels_get_chan4_raw(msg);
670 rc_channels->
chan5_raw = mavlink_msg_rc_channels_get_chan5_raw(msg);
671 rc_channels->
chan6_raw = mavlink_msg_rc_channels_get_chan6_raw(msg);
672 rc_channels->
chan7_raw = mavlink_msg_rc_channels_get_chan7_raw(msg);
673 rc_channels->
chan8_raw = mavlink_msg_rc_channels_get_chan8_raw(msg);
674 rc_channels->
chan9_raw = mavlink_msg_rc_channels_get_chan9_raw(msg);
675 rc_channels->
chan10_raw = mavlink_msg_rc_channels_get_chan10_raw(msg);
676 rc_channels->
chan11_raw = mavlink_msg_rc_channels_get_chan11_raw(msg);
677 rc_channels->
chan12_raw = mavlink_msg_rc_channels_get_chan12_raw(msg);
678 rc_channels->
chan13_raw = mavlink_msg_rc_channels_get_chan13_raw(msg);
679 rc_channels->
chan14_raw = mavlink_msg_rc_channels_get_chan14_raw(msg);
680 rc_channels->
chan15_raw = mavlink_msg_rc_channels_get_chan15_raw(msg);
681 rc_channels->
chan16_raw = mavlink_msg_rc_channels_get_chan16_raw(msg);
682 rc_channels->
chan17_raw = mavlink_msg_rc_channels_get_chan17_raw(msg);
683 rc_channels->
chan18_raw = mavlink_msg_rc_channels_get_chan18_raw(msg);
684 rc_channels->
chancount = mavlink_msg_rc_channels_get_chancount(msg);
685 rc_channels->
rssi = mavlink_msg_rc_channels_get_rssi(msg);
uint16_t chan1_raw
RC channel 1 value, in microseconds. A value of UINT16_MAX implies the channel is unused...
Definition: mavlink_msg_rc_channels.h:8
uint16_t chan11_raw
RC channel 11 value, in microseconds. A value of UINT16_MAX implies the channel is unused...
Definition: mavlink_msg_rc_channels.h:18
uint16_t chan5_raw
RC channel 5 value, in microseconds. A value of UINT16_MAX implies the channel is unused...
Definition: mavlink_msg_rc_channels.h:12
#define MAVLINK_MSG_ID_RC_CHANNELS_CRC
Definition: mavlink_msg_rc_channels.h:33
#define _MAV_RETURN_uint8_t(msg, wire_offset)
Definition: protocol.h:238
uint16_t chan8_raw
RC channel 8 value, in microseconds. A value of UINT16_MAX implies the channel is unused...
Definition: mavlink_msg_rc_channels.h:15
uint16_t chan18_raw
RC channel 18 value, in microseconds. A value of UINT16_MAX implies the channel is unused...
Definition: mavlink_msg_rc_channels.h:25
#define MAVLINK_MSG_ID_RC_CHANNELS
Definition: mavlink_msg_rc_channels.h:3
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
uint8_t rssi
Receive signal strength indicator, 0: 0%, 100: 100%, 255: invalid/unknown.
Definition: mavlink_msg_rc_channels.h:27
uint16_t chan10_raw
RC channel 10 value, in microseconds. A value of UINT16_MAX implies the channel is unused...
Definition: mavlink_msg_rc_channels.h:17
#define _MAV_PAYLOAD(msg)
Definition: mavlink_types.h:171
uint16_t chan4_raw
RC channel 4 value, in microseconds. A value of UINT16_MAX implies the channel is unused...
Definition: mavlink_msg_rc_channels.h:11
struct __mavlink_rc_channels_t mavlink_rc_channels_t
uint16_t chan7_raw
RC channel 7 value, in microseconds. A value of UINT16_MAX implies the channel is unused...
Definition: mavlink_msg_rc_channels.h:14
uint16_t chan14_raw
RC channel 14 value, in microseconds. A value of UINT16_MAX implies the channel is unused...
Definition: mavlink_msg_rc_channels.h:21
uint16_t chan3_raw
RC channel 3 value, in microseconds. A value of UINT16_MAX implies the channel is unused...
Definition: mavlink_msg_rc_channels.h:10
uint16_t chan13_raw
RC channel 13 value, in microseconds. A value of UINT16_MAX implies the channel is unused...
Definition: mavlink_msg_rc_channels.h:20
uint16_t chan16_raw
RC channel 16 value, in microseconds. A value of UINT16_MAX implies the channel is unused...
Definition: mavlink_msg_rc_channels.h:23
uint16_t chan17_raw
RC channel 17 value, in microseconds. A value of UINT16_MAX implies the channel is unused...
Definition: mavlink_msg_rc_channels.h:24
#define MAVLINK_MSG_ID_RC_CHANNELS_LEN
Definition: mavlink_msg_rc_channels.h:30
uint32_t time_boot_ms
Timestamp (milliseconds since system boot)
Definition: mavlink_msg_rc_channels.h:7
Definition: mavlink_msg_rc_channels.h:5
uint16_t chan12_raw
RC channel 12 value, in microseconds. A value of UINT16_MAX implies the channel is unused...
Definition: mavlink_msg_rc_channels.h:19
uint16_t chan2_raw
RC channel 2 value, in microseconds. A value of UINT16_MAX implies the channel is unused...
Definition: mavlink_msg_rc_channels.h:9
uint16_t chan15_raw
RC channel 15 value, in microseconds. A value of UINT16_MAX implies the channel is unused...
Definition: mavlink_msg_rc_channels.h:22
#define _mav_put_uint16_t(buf, wire_offset, b)
Definition: protocol.h:139
uint16_t chan6_raw
RC channel 6 value, in microseconds. A value of UINT16_MAX implies the channel is unused...
Definition: mavlink_msg_rc_channels.h:13
uint8_t chancount
Total number of RC channels being received. This can be larger than 18, indicating that more channels...
Definition: mavlink_msg_rc_channels.h:26
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
uint16_t chan9_raw
RC channel 9 value, in microseconds. A value of UINT16_MAX implies the channel is unused...
Definition: mavlink_msg_rc_channels.h:16
#define _mav_put_uint32_t(buf, wire_offset, b)
Definition: protocol.h:141