3 #define MAVLINK_MSG_ID_HIL_RC_INPUTS_RAW 92
23 #define MAVLINK_MSG_ID_HIL_RC_INPUTS_RAW_LEN 33
24 #define MAVLINK_MSG_ID_92_LEN 33
26 #define MAVLINK_MSG_ID_HIL_RC_INPUTS_RAW_CRC 54
27 #define MAVLINK_MSG_ID_92_CRC 54
31 #define MAVLINK_MESSAGE_INFO_HIL_RC_INPUTS_RAW { \
32 "HIL_RC_INPUTS_RAW", \
34 { { "time_usec", NULL, MAVLINK_TYPE_UINT64_T, 0, 0, offsetof(mavlink_hil_rc_inputs_raw_t, time_usec) }, \
35 { "chan1_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 8, offsetof(mavlink_hil_rc_inputs_raw_t, chan1_raw) }, \
36 { "chan2_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 10, offsetof(mavlink_hil_rc_inputs_raw_t, chan2_raw) }, \
37 { "chan3_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 12, offsetof(mavlink_hil_rc_inputs_raw_t, chan3_raw) }, \
38 { "chan4_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 14, offsetof(mavlink_hil_rc_inputs_raw_t, chan4_raw) }, \
39 { "chan5_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 16, offsetof(mavlink_hil_rc_inputs_raw_t, chan5_raw) }, \
40 { "chan6_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 18, offsetof(mavlink_hil_rc_inputs_raw_t, chan6_raw) }, \
41 { "chan7_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 20, offsetof(mavlink_hil_rc_inputs_raw_t, chan7_raw) }, \
42 { "chan8_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 22, offsetof(mavlink_hil_rc_inputs_raw_t, chan8_raw) }, \
43 { "chan9_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 24, offsetof(mavlink_hil_rc_inputs_raw_t, chan9_raw) }, \
44 { "chan10_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 26, offsetof(mavlink_hil_rc_inputs_raw_t, chan10_raw) }, \
45 { "chan11_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 28, offsetof(mavlink_hil_rc_inputs_raw_t, chan11_raw) }, \
46 { "chan12_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 30, offsetof(mavlink_hil_rc_inputs_raw_t, chan12_raw) }, \
47 { "rssi", NULL, MAVLINK_TYPE_UINT8_T, 0, 32, offsetof(mavlink_hil_rc_inputs_raw_t, rssi) }, \
74 static inline uint16_t mavlink_msg_hil_rc_inputs_raw_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
75 uint64_t time_usec, 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, uint8_t rssi)
77 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
116 #if MAVLINK_CRC_EXTRA
145 static inline uint16_t mavlink_msg_hil_rc_inputs_raw_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
146 mavlink_message_t* msg,
147 uint64_t time_usec,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,uint8_t rssi)
149 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
188 #if MAVLINK_CRC_EXTRA
203 static inline uint16_t mavlink_msg_hil_rc_inputs_raw_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_hil_rc_inputs_raw_t* hil_rc_inputs_raw)
205 return mavlink_msg_hil_rc_inputs_raw_pack(system_id, component_id, msg, hil_rc_inputs_raw->
time_usec, hil_rc_inputs_raw->
chan1_raw, hil_rc_inputs_raw->
chan2_raw, hil_rc_inputs_raw->
chan3_raw, hil_rc_inputs_raw->
chan4_raw, hil_rc_inputs_raw->
chan5_raw, hil_rc_inputs_raw->
chan6_raw, hil_rc_inputs_raw->
chan7_raw, hil_rc_inputs_raw->
chan8_raw, hil_rc_inputs_raw->
chan9_raw, hil_rc_inputs_raw->
chan10_raw, hil_rc_inputs_raw->
chan11_raw, hil_rc_inputs_raw->
chan12_raw, hil_rc_inputs_raw->
rssi);
217 static inline uint16_t mavlink_msg_hil_rc_inputs_raw_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_hil_rc_inputs_raw_t* hil_rc_inputs_raw)
219 return mavlink_msg_hil_rc_inputs_raw_pack_chan(system_id, component_id, chan, msg, hil_rc_inputs_raw->
time_usec, hil_rc_inputs_raw->
chan1_raw, hil_rc_inputs_raw->
chan2_raw, hil_rc_inputs_raw->
chan3_raw, hil_rc_inputs_raw->
chan4_raw, hil_rc_inputs_raw->
chan5_raw, hil_rc_inputs_raw->
chan6_raw, hil_rc_inputs_raw->
chan7_raw, hil_rc_inputs_raw->
chan8_raw, hil_rc_inputs_raw->
chan9_raw, hil_rc_inputs_raw->
chan10_raw, hil_rc_inputs_raw->
chan11_raw, hil_rc_inputs_raw->
chan12_raw, hil_rc_inputs_raw->
rssi);
241 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
243 static inline void mavlink_msg_hil_rc_inputs_raw_send(
mavlink_channel_t chan, uint64_t time_usec, 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, uint8_t rssi)
245 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
262 #if MAVLINK_CRC_EXTRA
284 #if MAVLINK_CRC_EXTRA
292 #if MAVLINK_MSG_ID_HIL_RC_INPUTS_RAW_LEN <= MAVLINK_MAX_PAYLOAD_LEN
300 static inline void mavlink_msg_hil_rc_inputs_raw_send_buf(mavlink_message_t *msgbuf,
mavlink_channel_t chan, uint64_t time_usec, 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, uint8_t rssi)
302 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
303 char *buf = (
char *)msgbuf;
319 #if MAVLINK_CRC_EXTRA
341 #if MAVLINK_CRC_EXTRA
360 static inline uint64_t mavlink_msg_hil_rc_inputs_raw_get_time_usec(
const mavlink_message_t* msg)
362 return _MAV_RETURN_uint64_t(msg, 0);
370 static inline uint16_t mavlink_msg_hil_rc_inputs_raw_get_chan1_raw(
const mavlink_message_t* msg)
372 return _MAV_RETURN_uint16_t(msg, 8);
380 static inline uint16_t mavlink_msg_hil_rc_inputs_raw_get_chan2_raw(
const mavlink_message_t* msg)
382 return _MAV_RETURN_uint16_t(msg, 10);
390 static inline uint16_t mavlink_msg_hil_rc_inputs_raw_get_chan3_raw(
const mavlink_message_t* msg)
392 return _MAV_RETURN_uint16_t(msg, 12);
400 static inline uint16_t mavlink_msg_hil_rc_inputs_raw_get_chan4_raw(
const mavlink_message_t* msg)
402 return _MAV_RETURN_uint16_t(msg, 14);
410 static inline uint16_t mavlink_msg_hil_rc_inputs_raw_get_chan5_raw(
const mavlink_message_t* msg)
412 return _MAV_RETURN_uint16_t(msg, 16);
420 static inline uint16_t mavlink_msg_hil_rc_inputs_raw_get_chan6_raw(
const mavlink_message_t* msg)
422 return _MAV_RETURN_uint16_t(msg, 18);
430 static inline uint16_t mavlink_msg_hil_rc_inputs_raw_get_chan7_raw(
const mavlink_message_t* msg)
432 return _MAV_RETURN_uint16_t(msg, 20);
440 static inline uint16_t mavlink_msg_hil_rc_inputs_raw_get_chan8_raw(
const mavlink_message_t* msg)
442 return _MAV_RETURN_uint16_t(msg, 22);
450 static inline uint16_t mavlink_msg_hil_rc_inputs_raw_get_chan9_raw(
const mavlink_message_t* msg)
452 return _MAV_RETURN_uint16_t(msg, 24);
460 static inline uint16_t mavlink_msg_hil_rc_inputs_raw_get_chan10_raw(
const mavlink_message_t* msg)
462 return _MAV_RETURN_uint16_t(msg, 26);
470 static inline uint16_t mavlink_msg_hil_rc_inputs_raw_get_chan11_raw(
const mavlink_message_t* msg)
472 return _MAV_RETURN_uint16_t(msg, 28);
480 static inline uint16_t mavlink_msg_hil_rc_inputs_raw_get_chan12_raw(
const mavlink_message_t* msg)
482 return _MAV_RETURN_uint16_t(msg, 30);
490 static inline uint8_t mavlink_msg_hil_rc_inputs_raw_get_rssi(
const mavlink_message_t* msg)
501 static inline void mavlink_msg_hil_rc_inputs_raw_decode(
const mavlink_message_t* msg,
mavlink_hil_rc_inputs_raw_t* hil_rc_inputs_raw)
503 #if MAVLINK_NEED_BYTE_SWAP
504 hil_rc_inputs_raw->
time_usec = mavlink_msg_hil_rc_inputs_raw_get_time_usec(msg);
505 hil_rc_inputs_raw->
chan1_raw = mavlink_msg_hil_rc_inputs_raw_get_chan1_raw(msg);
506 hil_rc_inputs_raw->
chan2_raw = mavlink_msg_hil_rc_inputs_raw_get_chan2_raw(msg);
507 hil_rc_inputs_raw->
chan3_raw = mavlink_msg_hil_rc_inputs_raw_get_chan3_raw(msg);
508 hil_rc_inputs_raw->
chan4_raw = mavlink_msg_hil_rc_inputs_raw_get_chan4_raw(msg);
509 hil_rc_inputs_raw->
chan5_raw = mavlink_msg_hil_rc_inputs_raw_get_chan5_raw(msg);
510 hil_rc_inputs_raw->
chan6_raw = mavlink_msg_hil_rc_inputs_raw_get_chan6_raw(msg);
511 hil_rc_inputs_raw->
chan7_raw = mavlink_msg_hil_rc_inputs_raw_get_chan7_raw(msg);
512 hil_rc_inputs_raw->
chan8_raw = mavlink_msg_hil_rc_inputs_raw_get_chan8_raw(msg);
513 hil_rc_inputs_raw->
chan9_raw = mavlink_msg_hil_rc_inputs_raw_get_chan9_raw(msg);
514 hil_rc_inputs_raw->
chan10_raw = mavlink_msg_hil_rc_inputs_raw_get_chan10_raw(msg);
515 hil_rc_inputs_raw->
chan11_raw = mavlink_msg_hil_rc_inputs_raw_get_chan11_raw(msg);
516 hil_rc_inputs_raw->
chan12_raw = mavlink_msg_hil_rc_inputs_raw_get_chan12_raw(msg);
517 hil_rc_inputs_raw->
rssi = mavlink_msg_hil_rc_inputs_raw_get_rssi(msg);
#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
#define _mav_put_uint64_t(buf, wire_offset, b)
Definition: protocol.h:143
#define _MAV_PAYLOAD_NON_CONST(msg)
Definition: mavlink_types.h:172
mavlink_channel_t
Definition: mavlink_types.h:178
#define _MAV_PAYLOAD(msg)
Definition: mavlink_types.h:171
#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