3 #define MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE 70
19 #define MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_LEN 18
20 #define MAVLINK_MSG_ID_70_LEN 18
22 #define MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_CRC 124
23 #define MAVLINK_MSG_ID_70_CRC 124
27 #define MAVLINK_MESSAGE_INFO_RC_CHANNELS_OVERRIDE { \
28 "RC_CHANNELS_OVERRIDE", \
30 { { "chan1_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 0, offsetof(mavlink_rc_channels_override_t, chan1_raw) }, \
31 { "chan2_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 2, offsetof(mavlink_rc_channels_override_t, chan2_raw) }, \
32 { "chan3_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 4, offsetof(mavlink_rc_channels_override_t, chan3_raw) }, \
33 { "chan4_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 6, offsetof(mavlink_rc_channels_override_t, chan4_raw) }, \
34 { "chan5_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 8, offsetof(mavlink_rc_channels_override_t, chan5_raw) }, \
35 { "chan6_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 10, offsetof(mavlink_rc_channels_override_t, chan6_raw) }, \
36 { "chan7_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 12, offsetof(mavlink_rc_channels_override_t, chan7_raw) }, \
37 { "chan8_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 14, offsetof(mavlink_rc_channels_override_t, chan8_raw) }, \
38 { "target_system", NULL, MAVLINK_TYPE_UINT8_T, 0, 16, offsetof(mavlink_rc_channels_override_t, target_system) }, \
39 { "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0, 17, offsetof(mavlink_rc_channels_override_t, target_component) }, \
62 static inline uint16_t mavlink_msg_rc_channels_override_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
63 uint8_t target_system, uint8_t target_component, 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)
65 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
121 static inline uint16_t mavlink_msg_rc_channels_override_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
122 mavlink_message_t* msg,
123 uint8_t target_system,uint8_t target_component,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)
125 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
156 #if MAVLINK_CRC_EXTRA
171 static inline uint16_t mavlink_msg_rc_channels_override_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_rc_channels_override_t* rc_channels_override)
173 return mavlink_msg_rc_channels_override_pack(system_id, component_id, msg, rc_channels_override->
target_system, rc_channels_override->
target_component, rc_channels_override->
chan1_raw, rc_channels_override->
chan2_raw, rc_channels_override->
chan3_raw, rc_channels_override->
chan4_raw, rc_channels_override->
chan5_raw, rc_channels_override->
chan6_raw, rc_channels_override->
chan7_raw, rc_channels_override->
chan8_raw);
185 static inline uint16_t mavlink_msg_rc_channels_override_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_rc_channels_override_t* rc_channels_override)
187 return mavlink_msg_rc_channels_override_pack_chan(system_id, component_id, chan, msg, rc_channels_override->
target_system, rc_channels_override->
target_component, rc_channels_override->
chan1_raw, rc_channels_override->
chan2_raw, rc_channels_override->
chan3_raw, rc_channels_override->
chan4_raw, rc_channels_override->
chan5_raw, rc_channels_override->
chan6_raw, rc_channels_override->
chan7_raw, rc_channels_override->
chan8_raw);
205 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
207 static inline void mavlink_msg_rc_channels_override_send(
mavlink_channel_t chan, uint8_t target_system, uint8_t target_component, 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)
209 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
222 #if MAVLINK_CRC_EXTRA
240 #if MAVLINK_CRC_EXTRA
248 #if MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_LEN <= MAVLINK_MAX_PAYLOAD_LEN
256 static inline void mavlink_msg_rc_channels_override_send_buf(mavlink_message_t *msgbuf,
mavlink_channel_t chan, uint8_t target_system, uint8_t target_component, 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)
258 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
259 char *buf = (
char *)msgbuf;
271 #if MAVLINK_CRC_EXTRA
289 #if MAVLINK_CRC_EXTRA
308 static inline uint8_t mavlink_msg_rc_channels_override_get_target_system(
const mavlink_message_t* msg)
318 static inline uint8_t mavlink_msg_rc_channels_override_get_target_component(
const mavlink_message_t* msg)
328 static inline uint16_t mavlink_msg_rc_channels_override_get_chan1_raw(
const mavlink_message_t* msg)
330 return _MAV_RETURN_uint16_t(msg, 0);
338 static inline uint16_t mavlink_msg_rc_channels_override_get_chan2_raw(
const mavlink_message_t* msg)
340 return _MAV_RETURN_uint16_t(msg, 2);
348 static inline uint16_t mavlink_msg_rc_channels_override_get_chan3_raw(
const mavlink_message_t* msg)
350 return _MAV_RETURN_uint16_t(msg, 4);
358 static inline uint16_t mavlink_msg_rc_channels_override_get_chan4_raw(
const mavlink_message_t* msg)
360 return _MAV_RETURN_uint16_t(msg, 6);
368 static inline uint16_t mavlink_msg_rc_channels_override_get_chan5_raw(
const mavlink_message_t* msg)
370 return _MAV_RETURN_uint16_t(msg, 8);
378 static inline uint16_t mavlink_msg_rc_channels_override_get_chan6_raw(
const mavlink_message_t* msg)
380 return _MAV_RETURN_uint16_t(msg, 10);
388 static inline uint16_t mavlink_msg_rc_channels_override_get_chan7_raw(
const mavlink_message_t* msg)
390 return _MAV_RETURN_uint16_t(msg, 12);
398 static inline uint16_t mavlink_msg_rc_channels_override_get_chan8_raw(
const mavlink_message_t* msg)
400 return _MAV_RETURN_uint16_t(msg, 14);
411 #if MAVLINK_NEED_BYTE_SWAP
412 rc_channels_override->
chan1_raw = mavlink_msg_rc_channels_override_get_chan1_raw(msg);
413 rc_channels_override->
chan2_raw = mavlink_msg_rc_channels_override_get_chan2_raw(msg);
414 rc_channels_override->
chan3_raw = mavlink_msg_rc_channels_override_get_chan3_raw(msg);
415 rc_channels_override->
chan4_raw = mavlink_msg_rc_channels_override_get_chan4_raw(msg);
416 rc_channels_override->
chan5_raw = mavlink_msg_rc_channels_override_get_chan5_raw(msg);
417 rc_channels_override->
chan6_raw = mavlink_msg_rc_channels_override_get_chan6_raw(msg);
418 rc_channels_override->
chan7_raw = mavlink_msg_rc_channels_override_get_chan7_raw(msg);
419 rc_channels_override->
chan8_raw = mavlink_msg_rc_channels_override_get_chan8_raw(msg);
420 rc_channels_override->
target_system = mavlink_msg_rc_channels_override_get_target_system(msg);
421 rc_channels_override->
target_component = mavlink_msg_rc_channels_override_get_target_component(msg);
#define MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_CRC
Definition: mavlink_msg_rc_channels_override.h:22
#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 means to ignore this field.
Definition: mavlink_msg_rc_channels_override.h:14
#define MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_LEN
Definition: mavlink_msg_rc_channels_override.h:19
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
uint8_t target_system
System ID.
Definition: mavlink_msg_rc_channels_override.h:15
uint16_t chan2_raw
RC channel 2 value, in microseconds. A value of UINT16_MAX means to ignore this field.
Definition: mavlink_msg_rc_channels_override.h:8
mavlink_channel_t
Definition: mavlink_types.h:178
uint16_t chan1_raw
RC channel 1 value, in microseconds. A value of UINT16_MAX means to ignore this field.
Definition: mavlink_msg_rc_channels_override.h:7
#define _MAV_PAYLOAD(msg)
Definition: mavlink_types.h:171
uint16_t chan7_raw
RC channel 7 value, in microseconds. A value of UINT16_MAX means to ignore this field.
Definition: mavlink_msg_rc_channels_override.h:13
uint16_t chan6_raw
RC channel 6 value, in microseconds. A value of UINT16_MAX means to ignore this field.
Definition: mavlink_msg_rc_channels_override.h:12
uint16_t chan3_raw
RC channel 3 value, in microseconds. A value of UINT16_MAX means to ignore this field.
Definition: mavlink_msg_rc_channels_override.h:9
uint16_t chan4_raw
RC channel 4 value, in microseconds. A value of UINT16_MAX means to ignore this field.
Definition: mavlink_msg_rc_channels_override.h:10
struct __mavlink_rc_channels_override_t mavlink_rc_channels_override_t
uint16_t chan5_raw
RC channel 5 value, in microseconds. A value of UINT16_MAX means to ignore this field.
Definition: mavlink_msg_rc_channels_override.h:11
uint8_t target_component
Component ID.
Definition: mavlink_msg_rc_channels_override.h:16
Definition: mavlink_msg_rc_channels_override.h:5
#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 MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE
Definition: mavlink_msg_rc_channels_override.h:3