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) }, \ 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 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 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);
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 323 return _MAV_RETURN_uint32_t(msg, 0);
343 return _MAV_RETURN_uint16_t(msg, 4);
353 return _MAV_RETURN_uint16_t(msg, 6);
363 return _MAV_RETURN_uint16_t(msg, 8);
373 return _MAV_RETURN_uint16_t(msg, 10);
383 return _MAV_RETURN_uint16_t(msg, 12);
393 return _MAV_RETURN_uint16_t(msg, 14);
403 return _MAV_RETURN_uint16_t(msg, 16);
413 return _MAV_RETURN_uint16_t(msg, 18);
434 #if MAVLINK_NEED_BYTE_SWAP static uint16_t mavlink_msg_rc_channels_raw_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, 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)
Pack a rc_channels_raw message on a channel.
struct __mavlink_rc_channels_raw_t mavlink_rc_channels_raw_t
static uint16_t mavlink_msg_rc_channels_raw_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, 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)
Pack a rc_channels_raw message.
static uint16_t mavlink_msg_rc_channels_raw_get_chan8_raw(const mavlink_message_t *msg)
Get field chan8_raw from rc_channels_raw message.
#define MAVLINK_MSG_ID_RC_CHANNELS_RAW
static uint16_t mavlink_msg_rc_channels_raw_get_chan2_raw(const mavlink_message_t *msg)
Get field chan2_raw from rc_channels_raw message.
#define _MAV_RETURN_uint8_t(msg, wire_offset)
static uint8_t mavlink_msg_rc_channels_raw_get_port(const mavlink_message_t *msg)
Get field port from rc_channels_raw message.
static uint16_t mavlink_msg_rc_channels_raw_get_chan3_raw(const mavlink_message_t *msg)
Get field chan3_raw from rc_channels_raw message.
static uint16_t mavlink_msg_rc_channels_raw_get_chan4_raw(const mavlink_message_t *msg)
Get field chan4_raw from rc_channels_raw message.
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)
#define _MAV_PAYLOAD_NON_CONST(msg)
static uint32_t mavlink_msg_rc_channels_raw_get_time_boot_ms(const mavlink_message_t *msg)
Send a rc_channels_raw message.
#define _MAV_PAYLOAD(msg)
static 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)
Encode a rc_channels_raw struct.
static uint16_t mavlink_msg_rc_channels_raw_get_chan7_raw(const mavlink_message_t *msg)
Get field chan7_raw from rc_channels_raw message.
static 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)
Encode a rc_channels_raw struct on a channel.
static uint16_t mavlink_msg_rc_channels_raw_get_chan5_raw(const mavlink_message_t *msg)
Get field chan5_raw from rc_channels_raw message.
#define MAVLINK_MSG_ID_RC_CHANNELS_RAW_CRC
static uint8_t mavlink_msg_rc_channels_raw_get_rssi(const mavlink_message_t *msg)
Get field rssi from rc_channels_raw message.
#define MAVLINK_MSG_ID_RC_CHANNELS_RAW_LEN
static uint16_t mavlink_msg_rc_channels_raw_get_chan1_raw(const mavlink_message_t *msg)
Get field chan1_raw from rc_channels_raw message.
static void mavlink_msg_rc_channels_raw_decode(const mavlink_message_t *msg, mavlink_rc_channels_raw_t *rc_channels_raw)
Decode a rc_channels_raw message into a struct.
#define _mav_put_uint16_t(buf, wire_offset, b)
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 uint16_t mavlink_msg_rc_channels_raw_get_chan6_raw(const mavlink_message_t *msg)
Get field chan6_raw from rc_channels_raw message.
#define _mav_put_uint32_t(buf, wire_offset, b)