Move telemetry displayport init and cms device registering
[betaflight.git] / lib / main / MAVLink / common / mavlink_msg_rc_channels_override.h
blob15d4c6f95850a620a121ac7df710b8c7857e5489
1 // MESSAGE RC_CHANNELS_OVERRIDE PACKING
3 #define MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE 70
5 typedef struct __mavlink_rc_channels_override_t
7 uint16_t chan1_raw; ///< RC channel 1 value, in microseconds. A value of UINT16_MAX means to ignore this field.
8 uint16_t chan2_raw; ///< RC channel 2 value, in microseconds. A value of UINT16_MAX means to ignore this field.
9 uint16_t chan3_raw; ///< RC channel 3 value, in microseconds. A value of UINT16_MAX means to ignore this field.
10 uint16_t chan4_raw; ///< RC channel 4 value, in microseconds. A value of UINT16_MAX means to ignore this field.
11 uint16_t chan5_raw; ///< RC channel 5 value, in microseconds. A value of UINT16_MAX means to ignore this field.
12 uint16_t chan6_raw; ///< RC channel 6 value, in microseconds. A value of UINT16_MAX means to ignore this field.
13 uint16_t chan7_raw; ///< RC channel 7 value, in microseconds. A value of UINT16_MAX means to ignore this field.
14 uint16_t chan8_raw; ///< RC channel 8 value, in microseconds. A value of UINT16_MAX means to ignore this field.
15 uint8_t target_system; ///< System ID
16 uint8_t target_component; ///< Component ID
17 } mavlink_rc_channels_override_t;
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", \
29 10, \
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) }, \
40 } \
44 /**
45 * @brief Pack a rc_channels_override message
46 * @param system_id ID of this system
47 * @param component_id ID of this component (e.g. 200 for IMU)
48 * @param msg The MAVLink message to compress the data into
50 * @param target_system System ID
51 * @param target_component Component ID
52 * @param chan1_raw RC channel 1 value, in microseconds. A value of UINT16_MAX means to ignore this field.
53 * @param chan2_raw RC channel 2 value, in microseconds. A value of UINT16_MAX means to ignore this field.
54 * @param chan3_raw RC channel 3 value, in microseconds. A value of UINT16_MAX means to ignore this field.
55 * @param chan4_raw RC channel 4 value, in microseconds. A value of UINT16_MAX means to ignore this field.
56 * @param chan5_raw RC channel 5 value, in microseconds. A value of UINT16_MAX means to ignore this field.
57 * @param chan6_raw RC channel 6 value, in microseconds. A value of UINT16_MAX means to ignore this field.
58 * @param chan7_raw RC channel 7 value, in microseconds. A value of UINT16_MAX means to ignore this field.
59 * @param chan8_raw RC channel 8 value, in microseconds. A value of UINT16_MAX means to ignore this field.
60 * @return length of the message in bytes (excluding serial stream start sign)
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);
79 #else
80 mavlink_rc_channels_override_t packet;
81 packet.chan1_raw = chan1_raw;
82 packet.chan2_raw = chan2_raw;
83 packet.chan3_raw = chan3_raw;
84 packet.chan4_raw = chan4_raw;
85 packet.chan5_raw = chan5_raw;
86 packet.chan6_raw = chan6_raw;
87 packet.chan7_raw = chan7_raw;
88 packet.chan8_raw = chan8_raw;
89 packet.target_system = target_system;
90 packet.target_component = target_component;
92 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_LEN);
93 #endif
95 msg->msgid = MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE;
96 #if MAVLINK_CRC_EXTRA
97 return mavlink_finalize_message(msg, system_id, component_id, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_LEN, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_CRC);
98 #else
99 return mavlink_finalize_message(msg, system_id, component_id, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_LEN);
100 #endif
104 * @brief Pack a rc_channels_override message on a channel
105 * @param system_id ID of this system
106 * @param component_id ID of this component (e.g. 200 for IMU)
107 * @param chan The MAVLink channel this message will be sent over
108 * @param msg The MAVLink message to compress the data into
109 * @param target_system System ID
110 * @param target_component Component ID
111 * @param chan1_raw RC channel 1 value, in microseconds. A value of UINT16_MAX means to ignore this field.
112 * @param chan2_raw RC channel 2 value, in microseconds. A value of UINT16_MAX means to ignore this field.
113 * @param chan3_raw RC channel 3 value, in microseconds. A value of UINT16_MAX means to ignore this field.
114 * @param chan4_raw RC channel 4 value, in microseconds. A value of UINT16_MAX means to ignore this field.
115 * @param chan5_raw RC channel 5 value, in microseconds. A value of UINT16_MAX means to ignore this field.
116 * @param chan6_raw RC channel 6 value, in microseconds. A value of UINT16_MAX means to ignore this field.
117 * @param chan7_raw RC channel 7 value, in microseconds. A value of UINT16_MAX means to ignore this field.
118 * @param chan8_raw RC channel 8 value, in microseconds. A value of UINT16_MAX means to ignore this field.
119 * @return length of the message in bytes (excluding serial stream start sign)
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);
139 #else
140 mavlink_rc_channels_override_t packet;
141 packet.chan1_raw = chan1_raw;
142 packet.chan2_raw = chan2_raw;
143 packet.chan3_raw = chan3_raw;
144 packet.chan4_raw = chan4_raw;
145 packet.chan5_raw = chan5_raw;
146 packet.chan6_raw = chan6_raw;
147 packet.chan7_raw = chan7_raw;
148 packet.chan8_raw = chan8_raw;
149 packet.target_system = target_system;
150 packet.target_component = target_component;
152 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_LEN);
153 #endif
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);
158 #else
159 return mavlink_finalize_message_chan(msg, system_id, component_id, chan, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_LEN);
160 #endif
164 * @brief Encode a rc_channels_override struct
166 * @param system_id ID of this system
167 * @param component_id ID of this component (e.g. 200 for IMU)
168 * @param msg The MAVLink message to compress the data into
169 * @param rc_channels_override C-struct to read the message contents from
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);
177 * @brief Encode a rc_channels_override struct on a channel
179 * @param system_id ID of this system
180 * @param component_id ID of this component (e.g. 200 for IMU)
181 * @param chan The MAVLink channel this message will be sent over
182 * @param msg The MAVLink message to compress the data into
183 * @param rc_channels_override C-struct to read the message contents from
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);
191 * @brief Send a rc_channels_override message
192 * @param chan MAVLink channel to send the message
194 * @param target_system System ID
195 * @param target_component Component ID
196 * @param chan1_raw RC channel 1 value, in microseconds. A value of UINT16_MAX means to ignore this field.
197 * @param chan2_raw RC channel 2 value, in microseconds. A value of UINT16_MAX means to ignore this field.
198 * @param chan3_raw RC channel 3 value, in microseconds. A value of UINT16_MAX means to ignore this field.
199 * @param chan4_raw RC channel 4 value, in microseconds. A value of UINT16_MAX means to ignore this field.
200 * @param chan5_raw RC channel 5 value, in microseconds. A value of UINT16_MAX means to ignore this field.
201 * @param chan6_raw RC channel 6 value, in microseconds. A value of UINT16_MAX means to ignore this field.
202 * @param chan7_raw RC channel 7 value, in microseconds. A value of UINT16_MAX means to ignore this field.
203 * @param chan8_raw RC channel 8 value, in microseconds. A value of UINT16_MAX means to ignore this field.
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);
224 #else
225 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE, buf, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_LEN);
226 #endif
227 #else
228 mavlink_rc_channels_override_t packet;
229 packet.chan1_raw = chan1_raw;
230 packet.chan2_raw = chan2_raw;
231 packet.chan3_raw = chan3_raw;
232 packet.chan4_raw = chan4_raw;
233 packet.chan5_raw = chan5_raw;
234 packet.chan6_raw = chan6_raw;
235 packet.chan7_raw = chan7_raw;
236 packet.chan8_raw = chan8_raw;
237 packet.target_system = target_system;
238 packet.target_component = target_component;
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);
242 #else
243 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE, (const char *)&packet, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_LEN);
244 #endif
245 #endif
248 #if MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_LEN <= MAVLINK_MAX_PAYLOAD_LEN
250 This varient of _send() can be used to save stack space by re-using
251 memory from the receive buffer. The caller provides a
252 mavlink_message_t which is the size of a full mavlink message. This
253 is usually the receive buffer for the channel, and allows a reply to an
254 incoming message with minimum stack space usage.
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);
273 #else
274 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE, buf, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_LEN);
275 #endif
276 #else
277 mavlink_rc_channels_override_t *packet = (mavlink_rc_channels_override_t *)msgbuf;
278 packet->chan1_raw = chan1_raw;
279 packet->chan2_raw = chan2_raw;
280 packet->chan3_raw = chan3_raw;
281 packet->chan4_raw = chan4_raw;
282 packet->chan5_raw = chan5_raw;
283 packet->chan6_raw = chan6_raw;
284 packet->chan7_raw = chan7_raw;
285 packet->chan8_raw = chan8_raw;
286 packet->target_system = target_system;
287 packet->target_component = target_component;
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);
291 #else
292 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE, (const char *)packet, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_LEN);
293 #endif
294 #endif
296 #endif
298 #endif
300 // MESSAGE RC_CHANNELS_OVERRIDE UNPACKING
304 * @brief Get field target_system from rc_channels_override message
306 * @return System ID
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);
314 * @brief Get field target_component from rc_channels_override message
316 * @return Component ID
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);
324 * @brief Get field chan1_raw from rc_channels_override message
326 * @return RC channel 1 value, in microseconds. A value of UINT16_MAX means to ignore this field.
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);
334 * @brief Get field chan2_raw from rc_channels_override message
336 * @return RC channel 2 value, in microseconds. A value of UINT16_MAX means to ignore this field.
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);
344 * @brief Get field chan3_raw from rc_channels_override message
346 * @return RC channel 3 value, in microseconds. A value of UINT16_MAX means to ignore this field.
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);
354 * @brief Get field chan4_raw from rc_channels_override message
356 * @return RC channel 4 value, in microseconds. A value of UINT16_MAX means to ignore this field.
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);
364 * @brief Get field chan5_raw from rc_channels_override message
366 * @return RC channel 5 value, in microseconds. A value of UINT16_MAX means to ignore this field.
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);
374 * @brief Get field chan6_raw from rc_channels_override message
376 * @return RC channel 6 value, in microseconds. A value of UINT16_MAX means to ignore this field.
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);
384 * @brief Get field chan7_raw from rc_channels_override message
386 * @return RC channel 7 value, in microseconds. A value of UINT16_MAX means to ignore this field.
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);
394 * @brief Get field chan8_raw from rc_channels_override message
396 * @return RC channel 8 value, in microseconds. A value of UINT16_MAX means to ignore this field.
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);
404 * @brief Decode a rc_channels_override message into a struct
406 * @param msg The message to decode
407 * @param rc_channels_override C-struct to decode the message contents into
409 static inline void mavlink_msg_rc_channels_override_decode(const mavlink_message_t* msg, mavlink_rc_channels_override_t* rc_channels_override)
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);
422 #else
423 memcpy(rc_channels_override, _MAV_PAYLOAD(msg), MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_LEN);
424 #endif