2 // MESSAGE RC_CHANNELS_OVERRIDE PACKING
4 #define MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE 70
7 typedef struct __mavlink_rc_channels_override_t
{
8 uint16_t chan1_raw
; /*< [us] RC channel 1 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.*/
9 uint16_t chan2_raw
; /*< [us] RC channel 2 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.*/
10 uint16_t chan3_raw
; /*< [us] RC channel 3 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.*/
11 uint16_t chan4_raw
; /*< [us] RC channel 4 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.*/
12 uint16_t chan5_raw
; /*< [us] RC channel 5 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.*/
13 uint16_t chan6_raw
; /*< [us] RC channel 6 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.*/
14 uint16_t chan7_raw
; /*< [us] RC channel 7 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.*/
15 uint16_t chan8_raw
; /*< [us] RC channel 8 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.*/
16 uint8_t target_system
; /*< System ID*/
17 uint8_t target_component
; /*< Component ID*/
18 uint16_t chan9_raw
; /*< [us] RC channel 9 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.*/
19 uint16_t chan10_raw
; /*< [us] RC channel 10 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.*/
20 uint16_t chan11_raw
; /*< [us] RC channel 11 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.*/
21 uint16_t chan12_raw
; /*< [us] RC channel 12 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.*/
22 uint16_t chan13_raw
; /*< [us] RC channel 13 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.*/
23 uint16_t chan14_raw
; /*< [us] RC channel 14 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.*/
24 uint16_t chan15_raw
; /*< [us] RC channel 15 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.*/
25 uint16_t chan16_raw
; /*< [us] RC channel 16 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.*/
26 uint16_t chan17_raw
; /*< [us] RC channel 17 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.*/
27 uint16_t chan18_raw
; /*< [us] RC channel 18 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.*/
28 } mavlink_rc_channels_override_t
;
30 #define MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_LEN 38
31 #define MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_MIN_LEN 18
32 #define MAVLINK_MSG_ID_70_LEN 38
33 #define MAVLINK_MSG_ID_70_MIN_LEN 18
35 #define MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_CRC 124
36 #define MAVLINK_MSG_ID_70_CRC 124
40 #if MAVLINK_COMMAND_24BIT
41 #define MAVLINK_MESSAGE_INFO_RC_CHANNELS_OVERRIDE { \
43 "RC_CHANNELS_OVERRIDE", \
45 { { "target_system", NULL, MAVLINK_TYPE_UINT8_T, 0, 16, offsetof(mavlink_rc_channels_override_t, target_system) }, \
46 { "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0, 17, offsetof(mavlink_rc_channels_override_t, target_component) }, \
47 { "chan1_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 0, offsetof(mavlink_rc_channels_override_t, chan1_raw) }, \
48 { "chan2_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 2, offsetof(mavlink_rc_channels_override_t, chan2_raw) }, \
49 { "chan3_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 4, offsetof(mavlink_rc_channels_override_t, chan3_raw) }, \
50 { "chan4_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 6, offsetof(mavlink_rc_channels_override_t, chan4_raw) }, \
51 { "chan5_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 8, offsetof(mavlink_rc_channels_override_t, chan5_raw) }, \
52 { "chan6_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 10, offsetof(mavlink_rc_channels_override_t, chan6_raw) }, \
53 { "chan7_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 12, offsetof(mavlink_rc_channels_override_t, chan7_raw) }, \
54 { "chan8_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 14, offsetof(mavlink_rc_channels_override_t, chan8_raw) }, \
55 { "chan9_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 18, offsetof(mavlink_rc_channels_override_t, chan9_raw) }, \
56 { "chan10_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 20, offsetof(mavlink_rc_channels_override_t, chan10_raw) }, \
57 { "chan11_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 22, offsetof(mavlink_rc_channels_override_t, chan11_raw) }, \
58 { "chan12_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 24, offsetof(mavlink_rc_channels_override_t, chan12_raw) }, \
59 { "chan13_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 26, offsetof(mavlink_rc_channels_override_t, chan13_raw) }, \
60 { "chan14_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 28, offsetof(mavlink_rc_channels_override_t, chan14_raw) }, \
61 { "chan15_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 30, offsetof(mavlink_rc_channels_override_t, chan15_raw) }, \
62 { "chan16_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 32, offsetof(mavlink_rc_channels_override_t, chan16_raw) }, \
63 { "chan17_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 34, offsetof(mavlink_rc_channels_override_t, chan17_raw) }, \
64 { "chan18_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 36, offsetof(mavlink_rc_channels_override_t, chan18_raw) }, \
68 #define MAVLINK_MESSAGE_INFO_RC_CHANNELS_OVERRIDE { \
69 "RC_CHANNELS_OVERRIDE", \
71 { { "target_system", NULL, MAVLINK_TYPE_UINT8_T, 0, 16, offsetof(mavlink_rc_channels_override_t, target_system) }, \
72 { "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0, 17, offsetof(mavlink_rc_channels_override_t, target_component) }, \
73 { "chan1_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 0, offsetof(mavlink_rc_channels_override_t, chan1_raw) }, \
74 { "chan2_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 2, offsetof(mavlink_rc_channels_override_t, chan2_raw) }, \
75 { "chan3_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 4, offsetof(mavlink_rc_channels_override_t, chan3_raw) }, \
76 { "chan4_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 6, offsetof(mavlink_rc_channels_override_t, chan4_raw) }, \
77 { "chan5_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 8, offsetof(mavlink_rc_channels_override_t, chan5_raw) }, \
78 { "chan6_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 10, offsetof(mavlink_rc_channels_override_t, chan6_raw) }, \
79 { "chan7_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 12, offsetof(mavlink_rc_channels_override_t, chan7_raw) }, \
80 { "chan8_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 14, offsetof(mavlink_rc_channels_override_t, chan8_raw) }, \
81 { "chan9_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 18, offsetof(mavlink_rc_channels_override_t, chan9_raw) }, \
82 { "chan10_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 20, offsetof(mavlink_rc_channels_override_t, chan10_raw) }, \
83 { "chan11_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 22, offsetof(mavlink_rc_channels_override_t, chan11_raw) }, \
84 { "chan12_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 24, offsetof(mavlink_rc_channels_override_t, chan12_raw) }, \
85 { "chan13_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 26, offsetof(mavlink_rc_channels_override_t, chan13_raw) }, \
86 { "chan14_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 28, offsetof(mavlink_rc_channels_override_t, chan14_raw) }, \
87 { "chan15_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 30, offsetof(mavlink_rc_channels_override_t, chan15_raw) }, \
88 { "chan16_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 32, offsetof(mavlink_rc_channels_override_t, chan16_raw) }, \
89 { "chan17_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 34, offsetof(mavlink_rc_channels_override_t, chan17_raw) }, \
90 { "chan18_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 36, offsetof(mavlink_rc_channels_override_t, chan18_raw) }, \
96 * @brief Pack a rc_channels_override message
97 * @param system_id ID of this system
98 * @param component_id ID of this component (e.g. 200 for IMU)
99 * @param msg The MAVLink message to compress the data into
101 * @param target_system System ID
102 * @param target_component Component ID
103 * @param chan1_raw [us] RC channel 1 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.
104 * @param chan2_raw [us] RC channel 2 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.
105 * @param chan3_raw [us] RC channel 3 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.
106 * @param chan4_raw [us] RC channel 4 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.
107 * @param chan5_raw [us] RC channel 5 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.
108 * @param chan6_raw [us] RC channel 6 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.
109 * @param chan7_raw [us] RC channel 7 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.
110 * @param chan8_raw [us] RC channel 8 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.
111 * @param chan9_raw [us] RC channel 9 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
112 * @param chan10_raw [us] RC channel 10 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
113 * @param chan11_raw [us] RC channel 11 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
114 * @param chan12_raw [us] RC channel 12 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
115 * @param chan13_raw [us] RC channel 13 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
116 * @param chan14_raw [us] RC channel 14 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
117 * @param chan15_raw [us] RC channel 15 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
118 * @param chan16_raw [us] RC channel 16 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
119 * @param chan17_raw [us] RC channel 17 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
120 * @param chan18_raw [us] RC channel 18 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
121 * @return length of the message in bytes (excluding serial stream start sign)
123 static inline uint16_t mavlink_msg_rc_channels_override_pack(uint8_t system_id
, uint8_t component_id
, mavlink_message_t
* msg
,
124 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
, uint16_t chan9_raw
, uint16_t chan10_raw
, uint16_t chan11_raw
, uint16_t chan12_raw
, uint16_t chan13_raw
, uint16_t chan14_raw
, uint16_t chan15_raw
, uint16_t chan16_raw
, uint16_t chan17_raw
, uint16_t chan18_raw
)
126 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
127 char buf
[MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_LEN
];
128 _mav_put_uint16_t(buf
, 0, chan1_raw
);
129 _mav_put_uint16_t(buf
, 2, chan2_raw
);
130 _mav_put_uint16_t(buf
, 4, chan3_raw
);
131 _mav_put_uint16_t(buf
, 6, chan4_raw
);
132 _mav_put_uint16_t(buf
, 8, chan5_raw
);
133 _mav_put_uint16_t(buf
, 10, chan6_raw
);
134 _mav_put_uint16_t(buf
, 12, chan7_raw
);
135 _mav_put_uint16_t(buf
, 14, chan8_raw
);
136 _mav_put_uint8_t(buf
, 16, target_system
);
137 _mav_put_uint8_t(buf
, 17, target_component
);
138 _mav_put_uint16_t(buf
, 18, chan9_raw
);
139 _mav_put_uint16_t(buf
, 20, chan10_raw
);
140 _mav_put_uint16_t(buf
, 22, chan11_raw
);
141 _mav_put_uint16_t(buf
, 24, chan12_raw
);
142 _mav_put_uint16_t(buf
, 26, chan13_raw
);
143 _mav_put_uint16_t(buf
, 28, chan14_raw
);
144 _mav_put_uint16_t(buf
, 30, chan15_raw
);
145 _mav_put_uint16_t(buf
, 32, chan16_raw
);
146 _mav_put_uint16_t(buf
, 34, chan17_raw
);
147 _mav_put_uint16_t(buf
, 36, chan18_raw
);
149 memcpy(_MAV_PAYLOAD_NON_CONST(msg
), buf
, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_LEN
);
151 mavlink_rc_channels_override_t packet
;
152 packet
.chan1_raw
= chan1_raw
;
153 packet
.chan2_raw
= chan2_raw
;
154 packet
.chan3_raw
= chan3_raw
;
155 packet
.chan4_raw
= chan4_raw
;
156 packet
.chan5_raw
= chan5_raw
;
157 packet
.chan6_raw
= chan6_raw
;
158 packet
.chan7_raw
= chan7_raw
;
159 packet
.chan8_raw
= chan8_raw
;
160 packet
.target_system
= target_system
;
161 packet
.target_component
= target_component
;
162 packet
.chan9_raw
= chan9_raw
;
163 packet
.chan10_raw
= chan10_raw
;
164 packet
.chan11_raw
= chan11_raw
;
165 packet
.chan12_raw
= chan12_raw
;
166 packet
.chan13_raw
= chan13_raw
;
167 packet
.chan14_raw
= chan14_raw
;
168 packet
.chan15_raw
= chan15_raw
;
169 packet
.chan16_raw
= chan16_raw
;
170 packet
.chan17_raw
= chan17_raw
;
171 packet
.chan18_raw
= chan18_raw
;
173 memcpy(_MAV_PAYLOAD_NON_CONST(msg
), &packet
, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_LEN
);
176 msg
->msgid
= MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE
;
177 return mavlink_finalize_message(msg
, system_id
, component_id
, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_MIN_LEN
, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_LEN
, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_CRC
);
181 * @brief Pack a rc_channels_override message on a channel
182 * @param system_id ID of this system
183 * @param component_id ID of this component (e.g. 200 for IMU)
184 * @param chan The MAVLink channel this message will be sent over
185 * @param msg The MAVLink message to compress the data into
186 * @param target_system System ID
187 * @param target_component Component ID
188 * @param chan1_raw [us] RC channel 1 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.
189 * @param chan2_raw [us] RC channel 2 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.
190 * @param chan3_raw [us] RC channel 3 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.
191 * @param chan4_raw [us] RC channel 4 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.
192 * @param chan5_raw [us] RC channel 5 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.
193 * @param chan6_raw [us] RC channel 6 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.
194 * @param chan7_raw [us] RC channel 7 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.
195 * @param chan8_raw [us] RC channel 8 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.
196 * @param chan9_raw [us] RC channel 9 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
197 * @param chan10_raw [us] RC channel 10 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
198 * @param chan11_raw [us] RC channel 11 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
199 * @param chan12_raw [us] RC channel 12 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
200 * @param chan13_raw [us] RC channel 13 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
201 * @param chan14_raw [us] RC channel 14 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
202 * @param chan15_raw [us] RC channel 15 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
203 * @param chan16_raw [us] RC channel 16 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
204 * @param chan17_raw [us] RC channel 17 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
205 * @param chan18_raw [us] RC channel 18 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
206 * @return length of the message in bytes (excluding serial stream start sign)
208 static inline uint16_t mavlink_msg_rc_channels_override_pack_chan(uint8_t system_id
, uint8_t component_id
, uint8_t chan
,
209 mavlink_message_t
* msg
,
210 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
,uint16_t chan9_raw
,uint16_t chan10_raw
,uint16_t chan11_raw
,uint16_t chan12_raw
,uint16_t chan13_raw
,uint16_t chan14_raw
,uint16_t chan15_raw
,uint16_t chan16_raw
,uint16_t chan17_raw
,uint16_t chan18_raw
)
212 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
213 char buf
[MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_LEN
];
214 _mav_put_uint16_t(buf
, 0, chan1_raw
);
215 _mav_put_uint16_t(buf
, 2, chan2_raw
);
216 _mav_put_uint16_t(buf
, 4, chan3_raw
);
217 _mav_put_uint16_t(buf
, 6, chan4_raw
);
218 _mav_put_uint16_t(buf
, 8, chan5_raw
);
219 _mav_put_uint16_t(buf
, 10, chan6_raw
);
220 _mav_put_uint16_t(buf
, 12, chan7_raw
);
221 _mav_put_uint16_t(buf
, 14, chan8_raw
);
222 _mav_put_uint8_t(buf
, 16, target_system
);
223 _mav_put_uint8_t(buf
, 17, target_component
);
224 _mav_put_uint16_t(buf
, 18, chan9_raw
);
225 _mav_put_uint16_t(buf
, 20, chan10_raw
);
226 _mav_put_uint16_t(buf
, 22, chan11_raw
);
227 _mav_put_uint16_t(buf
, 24, chan12_raw
);
228 _mav_put_uint16_t(buf
, 26, chan13_raw
);
229 _mav_put_uint16_t(buf
, 28, chan14_raw
);
230 _mav_put_uint16_t(buf
, 30, chan15_raw
);
231 _mav_put_uint16_t(buf
, 32, chan16_raw
);
232 _mav_put_uint16_t(buf
, 34, chan17_raw
);
233 _mav_put_uint16_t(buf
, 36, chan18_raw
);
235 memcpy(_MAV_PAYLOAD_NON_CONST(msg
), buf
, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_LEN
);
237 mavlink_rc_channels_override_t packet
;
238 packet
.chan1_raw
= chan1_raw
;
239 packet
.chan2_raw
= chan2_raw
;
240 packet
.chan3_raw
= chan3_raw
;
241 packet
.chan4_raw
= chan4_raw
;
242 packet
.chan5_raw
= chan5_raw
;
243 packet
.chan6_raw
= chan6_raw
;
244 packet
.chan7_raw
= chan7_raw
;
245 packet
.chan8_raw
= chan8_raw
;
246 packet
.target_system
= target_system
;
247 packet
.target_component
= target_component
;
248 packet
.chan9_raw
= chan9_raw
;
249 packet
.chan10_raw
= chan10_raw
;
250 packet
.chan11_raw
= chan11_raw
;
251 packet
.chan12_raw
= chan12_raw
;
252 packet
.chan13_raw
= chan13_raw
;
253 packet
.chan14_raw
= chan14_raw
;
254 packet
.chan15_raw
= chan15_raw
;
255 packet
.chan16_raw
= chan16_raw
;
256 packet
.chan17_raw
= chan17_raw
;
257 packet
.chan18_raw
= chan18_raw
;
259 memcpy(_MAV_PAYLOAD_NON_CONST(msg
), &packet
, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_LEN
);
262 msg
->msgid
= MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE
;
263 return mavlink_finalize_message_chan(msg
, system_id
, component_id
, chan
, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_MIN_LEN
, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_LEN
, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_CRC
);
267 * @brief Encode a rc_channels_override struct
269 * @param system_id ID of this system
270 * @param component_id ID of this component (e.g. 200 for IMU)
271 * @param msg The MAVLink message to compress the data into
272 * @param rc_channels_override C-struct to read the message contents from
274 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
)
276 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
, rc_channels_override
->chan9_raw
, rc_channels_override
->chan10_raw
, rc_channels_override
->chan11_raw
, rc_channels_override
->chan12_raw
, rc_channels_override
->chan13_raw
, rc_channels_override
->chan14_raw
, rc_channels_override
->chan15_raw
, rc_channels_override
->chan16_raw
, rc_channels_override
->chan17_raw
, rc_channels_override
->chan18_raw
);
280 * @brief Encode a rc_channels_override struct on a channel
282 * @param system_id ID of this system
283 * @param component_id ID of this component (e.g. 200 for IMU)
284 * @param chan The MAVLink channel this message will be sent over
285 * @param msg The MAVLink message to compress the data into
286 * @param rc_channels_override C-struct to read the message contents from
288 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
)
290 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
, rc_channels_override
->chan9_raw
, rc_channels_override
->chan10_raw
, rc_channels_override
->chan11_raw
, rc_channels_override
->chan12_raw
, rc_channels_override
->chan13_raw
, rc_channels_override
->chan14_raw
, rc_channels_override
->chan15_raw
, rc_channels_override
->chan16_raw
, rc_channels_override
->chan17_raw
, rc_channels_override
->chan18_raw
);
294 * @brief Send a rc_channels_override message
295 * @param chan MAVLink channel to send the message
297 * @param target_system System ID
298 * @param target_component Component ID
299 * @param chan1_raw [us] RC channel 1 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.
300 * @param chan2_raw [us] RC channel 2 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.
301 * @param chan3_raw [us] RC channel 3 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.
302 * @param chan4_raw [us] RC channel 4 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.
303 * @param chan5_raw [us] RC channel 5 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.
304 * @param chan6_raw [us] RC channel 6 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.
305 * @param chan7_raw [us] RC channel 7 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.
306 * @param chan8_raw [us] RC channel 8 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.
307 * @param chan9_raw [us] RC channel 9 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
308 * @param chan10_raw [us] RC channel 10 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
309 * @param chan11_raw [us] RC channel 11 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
310 * @param chan12_raw [us] RC channel 12 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
311 * @param chan13_raw [us] RC channel 13 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
312 * @param chan14_raw [us] RC channel 14 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
313 * @param chan15_raw [us] RC channel 15 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
314 * @param chan16_raw [us] RC channel 16 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
315 * @param chan17_raw [us] RC channel 17 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
316 * @param chan18_raw [us] RC channel 18 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
318 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
320 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
, uint16_t chan9_raw
, uint16_t chan10_raw
, uint16_t chan11_raw
, uint16_t chan12_raw
, uint16_t chan13_raw
, uint16_t chan14_raw
, uint16_t chan15_raw
, uint16_t chan16_raw
, uint16_t chan17_raw
, uint16_t chan18_raw
)
322 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
323 char buf
[MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_LEN
];
324 _mav_put_uint16_t(buf
, 0, chan1_raw
);
325 _mav_put_uint16_t(buf
, 2, chan2_raw
);
326 _mav_put_uint16_t(buf
, 4, chan3_raw
);
327 _mav_put_uint16_t(buf
, 6, chan4_raw
);
328 _mav_put_uint16_t(buf
, 8, chan5_raw
);
329 _mav_put_uint16_t(buf
, 10, chan6_raw
);
330 _mav_put_uint16_t(buf
, 12, chan7_raw
);
331 _mav_put_uint16_t(buf
, 14, chan8_raw
);
332 _mav_put_uint8_t(buf
, 16, target_system
);
333 _mav_put_uint8_t(buf
, 17, target_component
);
334 _mav_put_uint16_t(buf
, 18, chan9_raw
);
335 _mav_put_uint16_t(buf
, 20, chan10_raw
);
336 _mav_put_uint16_t(buf
, 22, chan11_raw
);
337 _mav_put_uint16_t(buf
, 24, chan12_raw
);
338 _mav_put_uint16_t(buf
, 26, chan13_raw
);
339 _mav_put_uint16_t(buf
, 28, chan14_raw
);
340 _mav_put_uint16_t(buf
, 30, chan15_raw
);
341 _mav_put_uint16_t(buf
, 32, chan16_raw
);
342 _mav_put_uint16_t(buf
, 34, chan17_raw
);
343 _mav_put_uint16_t(buf
, 36, chan18_raw
);
345 _mav_finalize_message_chan_send(chan
, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE
, buf
, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_MIN_LEN
, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_LEN
, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_CRC
);
347 mavlink_rc_channels_override_t packet
;
348 packet
.chan1_raw
= chan1_raw
;
349 packet
.chan2_raw
= chan2_raw
;
350 packet
.chan3_raw
= chan3_raw
;
351 packet
.chan4_raw
= chan4_raw
;
352 packet
.chan5_raw
= chan5_raw
;
353 packet
.chan6_raw
= chan6_raw
;
354 packet
.chan7_raw
= chan7_raw
;
355 packet
.chan8_raw
= chan8_raw
;
356 packet
.target_system
= target_system
;
357 packet
.target_component
= target_component
;
358 packet
.chan9_raw
= chan9_raw
;
359 packet
.chan10_raw
= chan10_raw
;
360 packet
.chan11_raw
= chan11_raw
;
361 packet
.chan12_raw
= chan12_raw
;
362 packet
.chan13_raw
= chan13_raw
;
363 packet
.chan14_raw
= chan14_raw
;
364 packet
.chan15_raw
= chan15_raw
;
365 packet
.chan16_raw
= chan16_raw
;
366 packet
.chan17_raw
= chan17_raw
;
367 packet
.chan18_raw
= chan18_raw
;
369 _mav_finalize_message_chan_send(chan
, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE
, (const char *)&packet
, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_MIN_LEN
, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_LEN
, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_CRC
);
374 * @brief Send a rc_channels_override message
375 * @param chan MAVLink channel to send the message
376 * @param struct The MAVLink struct to serialize
378 static inline void mavlink_msg_rc_channels_override_send_struct(mavlink_channel_t chan
, const mavlink_rc_channels_override_t
* rc_channels_override
)
380 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
381 mavlink_msg_rc_channels_override_send(chan
, 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
, rc_channels_override
->chan9_raw
, rc_channels_override
->chan10_raw
, rc_channels_override
->chan11_raw
, rc_channels_override
->chan12_raw
, rc_channels_override
->chan13_raw
, rc_channels_override
->chan14_raw
, rc_channels_override
->chan15_raw
, rc_channels_override
->chan16_raw
, rc_channels_override
->chan17_raw
, rc_channels_override
->chan18_raw
);
383 _mav_finalize_message_chan_send(chan
, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE
, (const char *)rc_channels_override
, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_MIN_LEN
, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_LEN
, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_CRC
);
387 #if MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_LEN <= MAVLINK_MAX_PAYLOAD_LEN
389 This varient of _send() can be used to save stack space by re-using
390 memory from the receive buffer. The caller provides a
391 mavlink_message_t which is the size of a full mavlink message. This
392 is usually the receive buffer for the channel, and allows a reply to an
393 incoming message with minimum stack space usage.
395 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
, uint16_t chan9_raw
, uint16_t chan10_raw
, uint16_t chan11_raw
, uint16_t chan12_raw
, uint16_t chan13_raw
, uint16_t chan14_raw
, uint16_t chan15_raw
, uint16_t chan16_raw
, uint16_t chan17_raw
, uint16_t chan18_raw
)
397 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
398 char *buf
= (char *)msgbuf
;
399 _mav_put_uint16_t(buf
, 0, chan1_raw
);
400 _mav_put_uint16_t(buf
, 2, chan2_raw
);
401 _mav_put_uint16_t(buf
, 4, chan3_raw
);
402 _mav_put_uint16_t(buf
, 6, chan4_raw
);
403 _mav_put_uint16_t(buf
, 8, chan5_raw
);
404 _mav_put_uint16_t(buf
, 10, chan6_raw
);
405 _mav_put_uint16_t(buf
, 12, chan7_raw
);
406 _mav_put_uint16_t(buf
, 14, chan8_raw
);
407 _mav_put_uint8_t(buf
, 16, target_system
);
408 _mav_put_uint8_t(buf
, 17, target_component
);
409 _mav_put_uint16_t(buf
, 18, chan9_raw
);
410 _mav_put_uint16_t(buf
, 20, chan10_raw
);
411 _mav_put_uint16_t(buf
, 22, chan11_raw
);
412 _mav_put_uint16_t(buf
, 24, chan12_raw
);
413 _mav_put_uint16_t(buf
, 26, chan13_raw
);
414 _mav_put_uint16_t(buf
, 28, chan14_raw
);
415 _mav_put_uint16_t(buf
, 30, chan15_raw
);
416 _mav_put_uint16_t(buf
, 32, chan16_raw
);
417 _mav_put_uint16_t(buf
, 34, chan17_raw
);
418 _mav_put_uint16_t(buf
, 36, chan18_raw
);
420 _mav_finalize_message_chan_send(chan
, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE
, buf
, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_MIN_LEN
, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_LEN
, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_CRC
);
422 mavlink_rc_channels_override_t
*packet
= (mavlink_rc_channels_override_t
*)msgbuf
;
423 packet
->chan1_raw
= chan1_raw
;
424 packet
->chan2_raw
= chan2_raw
;
425 packet
->chan3_raw
= chan3_raw
;
426 packet
->chan4_raw
= chan4_raw
;
427 packet
->chan5_raw
= chan5_raw
;
428 packet
->chan6_raw
= chan6_raw
;
429 packet
->chan7_raw
= chan7_raw
;
430 packet
->chan8_raw
= chan8_raw
;
431 packet
->target_system
= target_system
;
432 packet
->target_component
= target_component
;
433 packet
->chan9_raw
= chan9_raw
;
434 packet
->chan10_raw
= chan10_raw
;
435 packet
->chan11_raw
= chan11_raw
;
436 packet
->chan12_raw
= chan12_raw
;
437 packet
->chan13_raw
= chan13_raw
;
438 packet
->chan14_raw
= chan14_raw
;
439 packet
->chan15_raw
= chan15_raw
;
440 packet
->chan16_raw
= chan16_raw
;
441 packet
->chan17_raw
= chan17_raw
;
442 packet
->chan18_raw
= chan18_raw
;
444 _mav_finalize_message_chan_send(chan
, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE
, (const char *)packet
, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_MIN_LEN
, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_LEN
, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_CRC
);
451 // MESSAGE RC_CHANNELS_OVERRIDE UNPACKING
455 * @brief Get field target_system from rc_channels_override message
459 static inline uint8_t mavlink_msg_rc_channels_override_get_target_system(const mavlink_message_t
* msg
)
461 return _MAV_RETURN_uint8_t(msg
, 16);
465 * @brief Get field target_component from rc_channels_override message
467 * @return Component ID
469 static inline uint8_t mavlink_msg_rc_channels_override_get_target_component(const mavlink_message_t
* msg
)
471 return _MAV_RETURN_uint8_t(msg
, 17);
475 * @brief Get field chan1_raw from rc_channels_override message
477 * @return [us] RC channel 1 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.
479 static inline uint16_t mavlink_msg_rc_channels_override_get_chan1_raw(const mavlink_message_t
* msg
)
481 return _MAV_RETURN_uint16_t(msg
, 0);
485 * @brief Get field chan2_raw from rc_channels_override message
487 * @return [us] RC channel 2 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.
489 static inline uint16_t mavlink_msg_rc_channels_override_get_chan2_raw(const mavlink_message_t
* msg
)
491 return _MAV_RETURN_uint16_t(msg
, 2);
495 * @brief Get field chan3_raw from rc_channels_override message
497 * @return [us] RC channel 3 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.
499 static inline uint16_t mavlink_msg_rc_channels_override_get_chan3_raw(const mavlink_message_t
* msg
)
501 return _MAV_RETURN_uint16_t(msg
, 4);
505 * @brief Get field chan4_raw from rc_channels_override message
507 * @return [us] RC channel 4 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.
509 static inline uint16_t mavlink_msg_rc_channels_override_get_chan4_raw(const mavlink_message_t
* msg
)
511 return _MAV_RETURN_uint16_t(msg
, 6);
515 * @brief Get field chan5_raw from rc_channels_override message
517 * @return [us] RC channel 5 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.
519 static inline uint16_t mavlink_msg_rc_channels_override_get_chan5_raw(const mavlink_message_t
* msg
)
521 return _MAV_RETURN_uint16_t(msg
, 8);
525 * @brief Get field chan6_raw from rc_channels_override message
527 * @return [us] RC channel 6 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.
529 static inline uint16_t mavlink_msg_rc_channels_override_get_chan6_raw(const mavlink_message_t
* msg
)
531 return _MAV_RETURN_uint16_t(msg
, 10);
535 * @brief Get field chan7_raw from rc_channels_override message
537 * @return [us] RC channel 7 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.
539 static inline uint16_t mavlink_msg_rc_channels_override_get_chan7_raw(const mavlink_message_t
* msg
)
541 return _MAV_RETURN_uint16_t(msg
, 12);
545 * @brief Get field chan8_raw from rc_channels_override message
547 * @return [us] RC channel 8 value. A value of UINT16_MAX means to ignore this field. A value of 0 means to release this channel back to the RC radio.
549 static inline uint16_t mavlink_msg_rc_channels_override_get_chan8_raw(const mavlink_message_t
* msg
)
551 return _MAV_RETURN_uint16_t(msg
, 14);
555 * @brief Get field chan9_raw from rc_channels_override message
557 * @return [us] RC channel 9 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
559 static inline uint16_t mavlink_msg_rc_channels_override_get_chan9_raw(const mavlink_message_t
* msg
)
561 return _MAV_RETURN_uint16_t(msg
, 18);
565 * @brief Get field chan10_raw from rc_channels_override message
567 * @return [us] RC channel 10 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
569 static inline uint16_t mavlink_msg_rc_channels_override_get_chan10_raw(const mavlink_message_t
* msg
)
571 return _MAV_RETURN_uint16_t(msg
, 20);
575 * @brief Get field chan11_raw from rc_channels_override message
577 * @return [us] RC channel 11 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
579 static inline uint16_t mavlink_msg_rc_channels_override_get_chan11_raw(const mavlink_message_t
* msg
)
581 return _MAV_RETURN_uint16_t(msg
, 22);
585 * @brief Get field chan12_raw from rc_channels_override message
587 * @return [us] RC channel 12 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
589 static inline uint16_t mavlink_msg_rc_channels_override_get_chan12_raw(const mavlink_message_t
* msg
)
591 return _MAV_RETURN_uint16_t(msg
, 24);
595 * @brief Get field chan13_raw from rc_channels_override message
597 * @return [us] RC channel 13 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
599 static inline uint16_t mavlink_msg_rc_channels_override_get_chan13_raw(const mavlink_message_t
* msg
)
601 return _MAV_RETURN_uint16_t(msg
, 26);
605 * @brief Get field chan14_raw from rc_channels_override message
607 * @return [us] RC channel 14 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
609 static inline uint16_t mavlink_msg_rc_channels_override_get_chan14_raw(const mavlink_message_t
* msg
)
611 return _MAV_RETURN_uint16_t(msg
, 28);
615 * @brief Get field chan15_raw from rc_channels_override message
617 * @return [us] RC channel 15 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
619 static inline uint16_t mavlink_msg_rc_channels_override_get_chan15_raw(const mavlink_message_t
* msg
)
621 return _MAV_RETURN_uint16_t(msg
, 30);
625 * @brief Get field chan16_raw from rc_channels_override message
627 * @return [us] RC channel 16 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
629 static inline uint16_t mavlink_msg_rc_channels_override_get_chan16_raw(const mavlink_message_t
* msg
)
631 return _MAV_RETURN_uint16_t(msg
, 32);
635 * @brief Get field chan17_raw from rc_channels_override message
637 * @return [us] RC channel 17 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
639 static inline uint16_t mavlink_msg_rc_channels_override_get_chan17_raw(const mavlink_message_t
* msg
)
641 return _MAV_RETURN_uint16_t(msg
, 34);
645 * @brief Get field chan18_raw from rc_channels_override message
647 * @return [us] RC channel 18 value. A value of 0 or UINT16_MAX means to ignore this field. A value of UINT16_MAX-1 means to release this channel back to the RC radio.
649 static inline uint16_t mavlink_msg_rc_channels_override_get_chan18_raw(const mavlink_message_t
* msg
)
651 return _MAV_RETURN_uint16_t(msg
, 36);
655 * @brief Decode a rc_channels_override message into a struct
657 * @param msg The message to decode
658 * @param rc_channels_override C-struct to decode the message contents into
660 static inline void mavlink_msg_rc_channels_override_decode(const mavlink_message_t
* msg
, mavlink_rc_channels_override_t
* rc_channels_override
)
662 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
663 rc_channels_override
->chan1_raw
= mavlink_msg_rc_channels_override_get_chan1_raw(msg
);
664 rc_channels_override
->chan2_raw
= mavlink_msg_rc_channels_override_get_chan2_raw(msg
);
665 rc_channels_override
->chan3_raw
= mavlink_msg_rc_channels_override_get_chan3_raw(msg
);
666 rc_channels_override
->chan4_raw
= mavlink_msg_rc_channels_override_get_chan4_raw(msg
);
667 rc_channels_override
->chan5_raw
= mavlink_msg_rc_channels_override_get_chan5_raw(msg
);
668 rc_channels_override
->chan6_raw
= mavlink_msg_rc_channels_override_get_chan6_raw(msg
);
669 rc_channels_override
->chan7_raw
= mavlink_msg_rc_channels_override_get_chan7_raw(msg
);
670 rc_channels_override
->chan8_raw
= mavlink_msg_rc_channels_override_get_chan8_raw(msg
);
671 rc_channels_override
->target_system
= mavlink_msg_rc_channels_override_get_target_system(msg
);
672 rc_channels_override
->target_component
= mavlink_msg_rc_channels_override_get_target_component(msg
);
673 rc_channels_override
->chan9_raw
= mavlink_msg_rc_channels_override_get_chan9_raw(msg
);
674 rc_channels_override
->chan10_raw
= mavlink_msg_rc_channels_override_get_chan10_raw(msg
);
675 rc_channels_override
->chan11_raw
= mavlink_msg_rc_channels_override_get_chan11_raw(msg
);
676 rc_channels_override
->chan12_raw
= mavlink_msg_rc_channels_override_get_chan12_raw(msg
);
677 rc_channels_override
->chan13_raw
= mavlink_msg_rc_channels_override_get_chan13_raw(msg
);
678 rc_channels_override
->chan14_raw
= mavlink_msg_rc_channels_override_get_chan14_raw(msg
);
679 rc_channels_override
->chan15_raw
= mavlink_msg_rc_channels_override_get_chan15_raw(msg
);
680 rc_channels_override
->chan16_raw
= mavlink_msg_rc_channels_override_get_chan16_raw(msg
);
681 rc_channels_override
->chan17_raw
= mavlink_msg_rc_channels_override_get_chan17_raw(msg
);
682 rc_channels_override
->chan18_raw
= mavlink_msg_rc_channels_override_get_chan18_raw(msg
);
684 uint8_t len
= msg
->len
< MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_LEN
? msg
->len
: MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_LEN
;
685 memset(rc_channels_override
, 0, MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE_LEN
);
686 memcpy(rc_channels_override
, _MAV_PAYLOAD(msg
), len
);