3 #define MAVLINK_MSG_ID_RC_CHANNELS_RAW 35
20 #define MAVLINK_MSG_ID_RC_CHANNELS_RAW_LEN 22
21 #define MAVLINK_MSG_ID_35_LEN 22
23 #define MAVLINK_MSG_ID_RC_CHANNELS_RAW_CRC 244
24 #define MAVLINK_MSG_ID_35_CRC 244
28 #define MAVLINK_MESSAGE_INFO_RC_CHANNELS_RAW { \
31 { { "time_boot_ms", NULL, MAVLINK_TYPE_UINT32_T, 0, 0, offsetof(mavlink_rc_channels_raw_t, time_boot_ms) }, \
32 { "chan1_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 4, offsetof(mavlink_rc_channels_raw_t, chan1_raw) }, \
33 { "chan2_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 6, offsetof(mavlink_rc_channels_raw_t, chan2_raw) }, \
34 { "chan3_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 8, offsetof(mavlink_rc_channels_raw_t, chan3_raw) }, \
35 { "chan4_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 10, offsetof(mavlink_rc_channels_raw_t, chan4_raw) }, \
36 { "chan5_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 12, offsetof(mavlink_rc_channels_raw_t, chan5_raw) }, \
37 { "chan6_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 14, offsetof(mavlink_rc_channels_raw_t, chan6_raw) }, \
38 { "chan7_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 16, offsetof(mavlink_rc_channels_raw_t, chan7_raw) }, \
39 { "chan8_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 18, offsetof(mavlink_rc_channels_raw_t, chan8_raw) }, \
40 { "port", NULL, MAVLINK_TYPE_UINT8_T, 0, 20, offsetof(mavlink_rc_channels_raw_t, port) }, \
41 { "rssi", NULL, MAVLINK_TYPE_UINT8_T, 0, 21, offsetof(mavlink_rc_channels_raw_t, rssi) }, \
65 static inline uint16_t mavlink_msg_rc_channels_raw_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
66 uint32_t time_boot_ms, uint8_t port, 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, uint8_t rssi)
68 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
101 #if MAVLINK_CRC_EXTRA
127 static inline uint16_t mavlink_msg_rc_channels_raw_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
128 mavlink_message_t* msg,
129 uint32_t time_boot_ms,uint8_t port,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,uint8_t rssi)
131 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
164 #if MAVLINK_CRC_EXTRA
179 static inline uint16_t mavlink_msg_rc_channels_raw_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_rc_channels_raw_t* rc_channels_raw)
181 return mavlink_msg_rc_channels_raw_pack(system_id, component_id, msg, rc_channels_raw->
time_boot_ms, rc_channels_raw->
port, rc_channels_raw->
chan1_raw, rc_channels_raw->
chan2_raw, rc_channels_raw->
chan3_raw, rc_channels_raw->
chan4_raw, rc_channels_raw->
chan5_raw, rc_channels_raw->
chan6_raw, rc_channels_raw->
chan7_raw, rc_channels_raw->
chan8_raw, rc_channels_raw->
rssi);
193 static inline uint16_t mavlink_msg_rc_channels_raw_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_rc_channels_raw_t* rc_channels_raw)
195 return mavlink_msg_rc_channels_raw_pack_chan(system_id, component_id, chan, msg, rc_channels_raw->
time_boot_ms, rc_channels_raw->
port, rc_channels_raw->
chan1_raw, rc_channels_raw->
chan2_raw, rc_channels_raw->
chan3_raw, rc_channels_raw->
chan4_raw, rc_channels_raw->
chan5_raw, rc_channels_raw->
chan6_raw, rc_channels_raw->
chan7_raw, rc_channels_raw->
chan8_raw, rc_channels_raw->
rssi);
214 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
216 static inline void mavlink_msg_rc_channels_raw_send(
mavlink_channel_t chan, uint32_t time_boot_ms, uint8_t port, 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, uint8_t rssi)
218 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
232 #if MAVLINK_CRC_EXTRA
251 #if MAVLINK_CRC_EXTRA
259 #if MAVLINK_MSG_ID_RC_CHANNELS_RAW_LEN <= MAVLINK_MAX_PAYLOAD_LEN
267 static inline void mavlink_msg_rc_channels_raw_send_buf(mavlink_message_t *msgbuf,
mavlink_channel_t chan, uint32_t time_boot_ms, uint8_t port, 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, uint8_t rssi)
269 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
270 char *buf = (
char *)msgbuf;
283 #if MAVLINK_CRC_EXTRA
302 #if MAVLINK_CRC_EXTRA
321 static inline uint32_t mavlink_msg_rc_channels_raw_get_time_boot_ms(
const mavlink_message_t* msg)
323 return _MAV_RETURN_uint32_t(msg, 0);
331 static inline uint8_t mavlink_msg_rc_channels_raw_get_port(
const mavlink_message_t* msg)
341 static inline uint16_t mavlink_msg_rc_channels_raw_get_chan1_raw(
const mavlink_message_t* msg)
343 return _MAV_RETURN_uint16_t(msg, 4);
351 static inline uint16_t mavlink_msg_rc_channels_raw_get_chan2_raw(
const mavlink_message_t* msg)
353 return _MAV_RETURN_uint16_t(msg, 6);
361 static inline uint16_t mavlink_msg_rc_channels_raw_get_chan3_raw(
const mavlink_message_t* msg)
363 return _MAV_RETURN_uint16_t(msg, 8);
371 static inline uint16_t mavlink_msg_rc_channels_raw_get_chan4_raw(
const mavlink_message_t* msg)
373 return _MAV_RETURN_uint16_t(msg, 10);
381 static inline uint16_t mavlink_msg_rc_channels_raw_get_chan5_raw(
const mavlink_message_t* msg)
383 return _MAV_RETURN_uint16_t(msg, 12);
391 static inline uint16_t mavlink_msg_rc_channels_raw_get_chan6_raw(
const mavlink_message_t* msg)
393 return _MAV_RETURN_uint16_t(msg, 14);
401 static inline uint16_t mavlink_msg_rc_channels_raw_get_chan7_raw(
const mavlink_message_t* msg)
403 return _MAV_RETURN_uint16_t(msg, 16);
411 static inline uint16_t mavlink_msg_rc_channels_raw_get_chan8_raw(
const mavlink_message_t* msg)
413 return _MAV_RETURN_uint16_t(msg, 18);
421 static inline uint8_t mavlink_msg_rc_channels_raw_get_rssi(
const mavlink_message_t* msg)
432 static inline void mavlink_msg_rc_channels_raw_decode(
const mavlink_message_t* msg,
mavlink_rc_channels_raw_t* rc_channels_raw)
434 #if MAVLINK_NEED_BYTE_SWAP
435 rc_channels_raw->
time_boot_ms = mavlink_msg_rc_channels_raw_get_time_boot_ms(msg);
436 rc_channels_raw->
chan1_raw = mavlink_msg_rc_channels_raw_get_chan1_raw(msg);
437 rc_channels_raw->
chan2_raw = mavlink_msg_rc_channels_raw_get_chan2_raw(msg);
438 rc_channels_raw->
chan3_raw = mavlink_msg_rc_channels_raw_get_chan3_raw(msg);
439 rc_channels_raw->
chan4_raw = mavlink_msg_rc_channels_raw_get_chan4_raw(msg);
440 rc_channels_raw->
chan5_raw = mavlink_msg_rc_channels_raw_get_chan5_raw(msg);
441 rc_channels_raw->
chan6_raw = mavlink_msg_rc_channels_raw_get_chan6_raw(msg);
442 rc_channels_raw->
chan7_raw = mavlink_msg_rc_channels_raw_get_chan7_raw(msg);
443 rc_channels_raw->
chan8_raw = mavlink_msg_rc_channels_raw_get_chan8_raw(msg);
444 rc_channels_raw->
port = mavlink_msg_rc_channels_raw_get_port(msg);
445 rc_channels_raw->
rssi = mavlink_msg_rc_channels_raw_get_rssi(msg);
struct __mavlink_rc_channels_raw_t mavlink_rc_channels_raw_t
#define MAVLINK_MSG_ID_RC_CHANNELS_RAW
Definition: mavlink_msg_rc_channels_raw.h:3
uint32_t time_boot_ms
Timestamp (milliseconds since system boot)
Definition: mavlink_msg_rc_channels_raw.h:7
uint8_t rssi
Receive signal strength indicator, 0: 0%, 100: 100%, 255: invalid/unknown.
Definition: mavlink_msg_rc_channels_raw.h:17
#define _MAV_RETURN_uint8_t(msg, wire_offset)
Definition: protocol.h:238
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
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_raw.h:10
#define _MAV_PAYLOAD_NON_CONST(msg)
Definition: mavlink_types.h:172
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_raw.h:8
Definition: mavlink_msg_rc_channels_raw.h:5
mavlink_channel_t
Definition: mavlink_types.h:178
#define _MAV_PAYLOAD(msg)
Definition: mavlink_types.h:171
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_raw.h:12
#define MAVLINK_MSG_ID_RC_CHANNELS_RAW_CRC
Definition: mavlink_msg_rc_channels_raw.h:23
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_raw.h:11
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_raw.h:9
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_raw.h:15
#define MAVLINK_MSG_ID_RC_CHANNELS_RAW_LEN
Definition: mavlink_msg_rc_channels_raw.h:20
uint8_t port
Servo output port (set of 8 outputs = 1 port). Most MAVs will just use one, but this allows for more ...
Definition: mavlink_msg_rc_channels_raw.h:16
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_raw.h:13
#define _mav_put_uint16_t(buf, wire_offset, b)
Definition: protocol.h:139
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 _mav_put_uint32_t(buf, wire_offset, b)
Definition: protocol.h:141
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_raw.h:14