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
66 char buf[MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_LEN];
67 _mav_put_uint16_t(buf, 0, chan1_raw);
68 _mav_put_uint16_t(buf, 2, chan2_raw);
69 _mav_put_uint16_t(buf, 4, chan3_raw);
70 _mav_put_uint16_t(buf, 6, chan4_raw);
71 _mav_put_uint16_t(buf, 8, chan5_raw);
72 _mav_put_uint16_t(buf, 10, chan6_raw);
73 _mav_put_uint16_t(buf, 12, chan7_raw);
74 _mav_put_uint16_t(buf, 14, chan8_raw);
75 _mav_put_uint8_t(buf, 16, target_system);
76 _mav_put_uint8_t(buf, 17, target_component);
78 memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_LEN);
92 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_LEN);
95 msg->msgid = MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE;
97 return mavlink_finalize_message(msg, system_id, component_id, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_LEN, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_CRC);
99 return mavlink_finalize_message(msg, system_id, component_id, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_LEN);
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
126 char buf[MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_LEN];
127 _mav_put_uint16_t(buf, 0, chan1_raw);
128 _mav_put_uint16_t(buf, 2, chan2_raw);
129 _mav_put_uint16_t(buf, 4, chan3_raw);
130 _mav_put_uint16_t(buf, 6, chan4_raw);
131 _mav_put_uint16_t(buf, 8, chan5_raw);
132 _mav_put_uint16_t(buf, 10, chan6_raw);
133 _mav_put_uint16_t(buf, 12, chan7_raw);
134 _mav_put_uint16_t(buf, 14, chan8_raw);
135 _mav_put_uint8_t(buf, 16, target_system);
136 _mav_put_uint8_t(buf, 17, target_component);
138 memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_LEN);
152 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_LEN);
155 msg->msgid = MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE;
156 #if MAVLINK_CRC_EXTRA
157 return mavlink_finalize_message_chan(msg, system_id, component_id, chan, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_LEN, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_CRC);
159 return mavlink_finalize_message_chan(msg, system_id, component_id, chan, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_LEN);
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
210 char buf[MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_LEN];
211 _mav_put_uint16_t(buf, 0, chan1_raw);
212 _mav_put_uint16_t(buf, 2, chan2_raw);
213 _mav_put_uint16_t(buf, 4, chan3_raw);
214 _mav_put_uint16_t(buf, 6, chan4_raw);
215 _mav_put_uint16_t(buf, 8, chan5_raw);
216 _mav_put_uint16_t(buf, 10, chan6_raw);
217 _mav_put_uint16_t(buf, 12, chan7_raw);
218 _mav_put_uint16_t(buf, 14, chan8_raw);
219 _mav_put_uint8_t(buf, 16, target_system);
220 _mav_put_uint8_t(buf, 17, target_component);
222 #if MAVLINK_CRC_EXTRA
223 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE, buf, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_LEN, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_CRC);
225 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE, buf, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_LEN);
240 #if MAVLINK_CRC_EXTRA
241 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE, (
const char *)&packet, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_LEN, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_CRC);
243 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE, (
const char *)&packet, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_LEN);
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;
260 _mav_put_uint16_t(buf, 0, chan1_raw);
261 _mav_put_uint16_t(buf, 2, chan2_raw);
262 _mav_put_uint16_t(buf, 4, chan3_raw);
263 _mav_put_uint16_t(buf, 6, chan4_raw);
264 _mav_put_uint16_t(buf, 8, chan5_raw);
265 _mav_put_uint16_t(buf, 10, chan6_raw);
266 _mav_put_uint16_t(buf, 12, chan7_raw);
267 _mav_put_uint16_t(buf, 14, chan8_raw);
268 _mav_put_uint8_t(buf, 16, target_system);
269 _mav_put_uint8_t(buf, 17, target_component);
271 #if MAVLINK_CRC_EXTRA
272 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE, buf, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_LEN, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_CRC);
274 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE, buf, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_LEN);
289 #if MAVLINK_CRC_EXTRA
290 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE, (
const char *)packet, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_LEN, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_CRC);
292 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE, (
const char *)packet, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_LEN);
308 static inline uint8_t mavlink_msg_rc_channels_override_get_target_system(
const mavlink_message_t* msg)
310 return _MAV_RETURN_uint8_t(msg, 16);
318 static inline uint8_t mavlink_msg_rc_channels_override_get_target_component(
const mavlink_message_t* msg)
320 return _MAV_RETURN_uint8_t(msg, 17);
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);
423 memcpy(rc_channels_override, _MAV_PAYLOAD(msg), MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_LEN);
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
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
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
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
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