RflySimSDK v3.08
RflySimSDK说明文档
载入中...
搜索中...
未找到
mavlink_msg_uavionix_adsb_out_cfg.h
1#pragma once
2// MESSAGE UAVIONIX_ADSB_OUT_CFG PACKING
3
4#define MAVLINK_MSG_ID_UAVIONIX_ADSB_OUT_CFG 10001
5
6MAVPACKED(
7typedef struct __mavlink_uavionix_adsb_out_cfg_t {
8 uint32_t ICAO; /*< Vehicle address (24 bit)*/
9 uint16_t stallSpeed; /*< Aircraft stall speed in cm/s*/
10 char callsign[9]; /*< Vehicle identifier (8 characters, null terminated, valid characters are A-Z, 0-9, " " only)*/
11 uint8_t emitterType; /*< Transmitting vehicle type. See ADSB_EMITTER_TYPE enum*/
12 uint8_t aircraftSize; /*< Aircraft length and width encoding (table 2-35 of DO-282B)*/
13 uint8_t gpsOffsetLat; /*< GPS antenna lateral offset (table 2-36 of DO-282B)*/
14 uint8_t gpsOffsetLon; /*< GPS antenna longitudinal offset from nose [if non-zero, take position (in meters) divide by 2 and add one] (table 2-37 DO-282B)*/
15 uint8_t rfSelect; /*< ADS-B transponder reciever and transmit enable flags*/
16}) mavlink_uavionix_adsb_out_cfg_t;
17
18#define MAVLINK_MSG_ID_UAVIONIX_ADSB_OUT_CFG_LEN 20
19#define MAVLINK_MSG_ID_UAVIONIX_ADSB_OUT_CFG_MIN_LEN 20
20#define MAVLINK_MSG_ID_10001_LEN 20
21#define MAVLINK_MSG_ID_10001_MIN_LEN 20
22
23#define MAVLINK_MSG_ID_UAVIONIX_ADSB_OUT_CFG_CRC 209
24#define MAVLINK_MSG_ID_10001_CRC 209
25
26#define MAVLINK_MSG_UAVIONIX_ADSB_OUT_CFG_FIELD_CALLSIGN_LEN 9
27
28#if MAVLINK_COMMAND_24BIT
29#define MAVLINK_MESSAGE_INFO_UAVIONIX_ADSB_OUT_CFG { \
30 10001, \
31 "UAVIONIX_ADSB_OUT_CFG", \
32 8, \
33 { { "ICAO", NULL, MAVLINK_TYPE_UINT32_T, 0, 0, offsetof(mavlink_uavionix_adsb_out_cfg_t, ICAO) }, \
34 { "callsign", NULL, MAVLINK_TYPE_CHAR, 9, 6, offsetof(mavlink_uavionix_adsb_out_cfg_t, callsign) }, \
35 { "emitterType", NULL, MAVLINK_TYPE_UINT8_T, 0, 15, offsetof(mavlink_uavionix_adsb_out_cfg_t, emitterType) }, \
36 { "aircraftSize", NULL, MAVLINK_TYPE_UINT8_T, 0, 16, offsetof(mavlink_uavionix_adsb_out_cfg_t, aircraftSize) }, \
37 { "gpsOffsetLat", NULL, MAVLINK_TYPE_UINT8_T, 0, 17, offsetof(mavlink_uavionix_adsb_out_cfg_t, gpsOffsetLat) }, \
38 { "gpsOffsetLon", NULL, MAVLINK_TYPE_UINT8_T, 0, 18, offsetof(mavlink_uavionix_adsb_out_cfg_t, gpsOffsetLon) }, \
39 { "stallSpeed", NULL, MAVLINK_TYPE_UINT16_T, 0, 4, offsetof(mavlink_uavionix_adsb_out_cfg_t, stallSpeed) }, \
40 { "rfSelect", NULL, MAVLINK_TYPE_UINT8_T, 0, 19, offsetof(mavlink_uavionix_adsb_out_cfg_t, rfSelect) }, \
41 } \
42}
43#else
44#define MAVLINK_MESSAGE_INFO_UAVIONIX_ADSB_OUT_CFG { \
45 "UAVIONIX_ADSB_OUT_CFG", \
46 8, \
47 { { "ICAO", NULL, MAVLINK_TYPE_UINT32_T, 0, 0, offsetof(mavlink_uavionix_adsb_out_cfg_t, ICAO) }, \
48 { "callsign", NULL, MAVLINK_TYPE_CHAR, 9, 6, offsetof(mavlink_uavionix_adsb_out_cfg_t, callsign) }, \
49 { "emitterType", NULL, MAVLINK_TYPE_UINT8_T, 0, 15, offsetof(mavlink_uavionix_adsb_out_cfg_t, emitterType) }, \
50 { "aircraftSize", NULL, MAVLINK_TYPE_UINT8_T, 0, 16, offsetof(mavlink_uavionix_adsb_out_cfg_t, aircraftSize) }, \
51 { "gpsOffsetLat", NULL, MAVLINK_TYPE_UINT8_T, 0, 17, offsetof(mavlink_uavionix_adsb_out_cfg_t, gpsOffsetLat) }, \
52 { "gpsOffsetLon", NULL, MAVLINK_TYPE_UINT8_T, 0, 18, offsetof(mavlink_uavionix_adsb_out_cfg_t, gpsOffsetLon) }, \
53 { "stallSpeed", NULL, MAVLINK_TYPE_UINT16_T, 0, 4, offsetof(mavlink_uavionix_adsb_out_cfg_t, stallSpeed) }, \
54 { "rfSelect", NULL, MAVLINK_TYPE_UINT8_T, 0, 19, offsetof(mavlink_uavionix_adsb_out_cfg_t, rfSelect) }, \
55 } \
56}
57#endif
58
59/**
60 * @brief Pack a uavionix_adsb_out_cfg message
61 * @param system_id ID of this system
62 * @param component_id ID of this component (e.g. 200 for IMU)
63 * @param msg The MAVLink message to compress the data into
64 *
65 * @param ICAO Vehicle address (24 bit)
66 * @param callsign Vehicle identifier (8 characters, null terminated, valid characters are A-Z, 0-9, " " only)
67 * @param emitterType Transmitting vehicle type. See ADSB_EMITTER_TYPE enum
68 * @param aircraftSize Aircraft length and width encoding (table 2-35 of DO-282B)
69 * @param gpsOffsetLat GPS antenna lateral offset (table 2-36 of DO-282B)
70 * @param gpsOffsetLon GPS antenna longitudinal offset from nose [if non-zero, take position (in meters) divide by 2 and add one] (table 2-37 DO-282B)
71 * @param stallSpeed Aircraft stall speed in cm/s
72 * @param rfSelect ADS-B transponder reciever and transmit enable flags
73 * @return length of the message in bytes (excluding serial stream start sign)
74 */
75static inline uint16_t mavlink_msg_uavionix_adsb_out_cfg_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
76 uint32_t ICAO, const char *callsign, uint8_t emitterType, uint8_t aircraftSize, uint8_t gpsOffsetLat, uint8_t gpsOffsetLon, uint16_t stallSpeed, uint8_t rfSelect)
77{
78#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
79 char buf[MAVLINK_MSG_ID_UAVIONIX_ADSB_OUT_CFG_LEN];
80 _mav_put_uint32_t(buf, 0, ICAO);
81 _mav_put_uint16_t(buf, 4, stallSpeed);
82 _mav_put_uint8_t(buf, 15, emitterType);
83 _mav_put_uint8_t(buf, 16, aircraftSize);
84 _mav_put_uint8_t(buf, 17, gpsOffsetLat);
85 _mav_put_uint8_t(buf, 18, gpsOffsetLon);
86 _mav_put_uint8_t(buf, 19, rfSelect);
87 _mav_put_char_array(buf, 6, callsign, 9);
88 memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_UAVIONIX_ADSB_OUT_CFG_LEN);
89#else
90 mavlink_uavionix_adsb_out_cfg_t packet;
91 packet.ICAO = ICAO;
92 packet.stallSpeed = stallSpeed;
93 packet.emitterType = emitterType;
94 packet.aircraftSize = aircraftSize;
95 packet.gpsOffsetLat = gpsOffsetLat;
96 packet.gpsOffsetLon = gpsOffsetLon;
97 packet.rfSelect = rfSelect;
98 mav_array_memcpy(packet.callsign, callsign, sizeof(char)*9);
99 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_UAVIONIX_ADSB_OUT_CFG_LEN);
100#endif
101
102 msg->msgid = MAVLINK_MSG_ID_UAVIONIX_ADSB_OUT_CFG;
103 return mavlink_finalize_message(msg, system_id, component_id, MAVLINK_MSG_ID_UAVIONIX_ADSB_OUT_CFG_MIN_LEN, MAVLINK_MSG_ID_UAVIONIX_ADSB_OUT_CFG_LEN, MAVLINK_MSG_ID_UAVIONIX_ADSB_OUT_CFG_CRC);
104}
105
106/**
107 * @brief Pack a uavionix_adsb_out_cfg message on a channel
108 * @param system_id ID of this system
109 * @param component_id ID of this component (e.g. 200 for IMU)
110 * @param chan The MAVLink channel this message will be sent over
111 * @param msg The MAVLink message to compress the data into
112 * @param ICAO Vehicle address (24 bit)
113 * @param callsign Vehicle identifier (8 characters, null terminated, valid characters are A-Z, 0-9, " " only)
114 * @param emitterType Transmitting vehicle type. See ADSB_EMITTER_TYPE enum
115 * @param aircraftSize Aircraft length and width encoding (table 2-35 of DO-282B)
116 * @param gpsOffsetLat GPS antenna lateral offset (table 2-36 of DO-282B)
117 * @param gpsOffsetLon GPS antenna longitudinal offset from nose [if non-zero, take position (in meters) divide by 2 and add one] (table 2-37 DO-282B)
118 * @param stallSpeed Aircraft stall speed in cm/s
119 * @param rfSelect ADS-B transponder reciever and transmit enable flags
120 * @return length of the message in bytes (excluding serial stream start sign)
121 */
122static inline uint16_t mavlink_msg_uavionix_adsb_out_cfg_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
123 mavlink_message_t* msg,
124 uint32_t ICAO,const char *callsign,uint8_t emitterType,uint8_t aircraftSize,uint8_t gpsOffsetLat,uint8_t gpsOffsetLon,uint16_t stallSpeed,uint8_t rfSelect)
125{
126#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
127 char buf[MAVLINK_MSG_ID_UAVIONIX_ADSB_OUT_CFG_LEN];
128 _mav_put_uint32_t(buf, 0, ICAO);
129 _mav_put_uint16_t(buf, 4, stallSpeed);
130 _mav_put_uint8_t(buf, 15, emitterType);
131 _mav_put_uint8_t(buf, 16, aircraftSize);
132 _mav_put_uint8_t(buf, 17, gpsOffsetLat);
133 _mav_put_uint8_t(buf, 18, gpsOffsetLon);
134 _mav_put_uint8_t(buf, 19, rfSelect);
135 _mav_put_char_array(buf, 6, callsign, 9);
136 memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_UAVIONIX_ADSB_OUT_CFG_LEN);
137#else
138 mavlink_uavionix_adsb_out_cfg_t packet;
139 packet.ICAO = ICAO;
140 packet.stallSpeed = stallSpeed;
141 packet.emitterType = emitterType;
142 packet.aircraftSize = aircraftSize;
143 packet.gpsOffsetLat = gpsOffsetLat;
144 packet.gpsOffsetLon = gpsOffsetLon;
145 packet.rfSelect = rfSelect;
146 mav_array_memcpy(packet.callsign, callsign, sizeof(char)*9);
147 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_UAVIONIX_ADSB_OUT_CFG_LEN);
148#endif
149
150 msg->msgid = MAVLINK_MSG_ID_UAVIONIX_ADSB_OUT_CFG;
151 return mavlink_finalize_message_chan(msg, system_id, component_id, chan, MAVLINK_MSG_ID_UAVIONIX_ADSB_OUT_CFG_MIN_LEN, MAVLINK_MSG_ID_UAVIONIX_ADSB_OUT_CFG_LEN, MAVLINK_MSG_ID_UAVIONIX_ADSB_OUT_CFG_CRC);
152}
153
154/**
155 * @brief Encode a uavionix_adsb_out_cfg struct
156 *
157 * @param system_id ID of this system
158 * @param component_id ID of this component (e.g. 200 for IMU)
159 * @param msg The MAVLink message to compress the data into
160 * @param uavionix_adsb_out_cfg C-struct to read the message contents from
161 */
162static inline uint16_t mavlink_msg_uavionix_adsb_out_cfg_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg, const mavlink_uavionix_adsb_out_cfg_t* uavionix_adsb_out_cfg)
163{
164 return mavlink_msg_uavionix_adsb_out_cfg_pack(system_id, component_id, msg, uavionix_adsb_out_cfg->ICAO, uavionix_adsb_out_cfg->callsign, uavionix_adsb_out_cfg->emitterType, uavionix_adsb_out_cfg->aircraftSize, uavionix_adsb_out_cfg->gpsOffsetLat, uavionix_adsb_out_cfg->gpsOffsetLon, uavionix_adsb_out_cfg->stallSpeed, uavionix_adsb_out_cfg->rfSelect);
165}
166
167/**
168 * @brief Encode a uavionix_adsb_out_cfg struct on a channel
169 *
170 * @param system_id ID of this system
171 * @param component_id ID of this component (e.g. 200 for IMU)
172 * @param chan The MAVLink channel this message will be sent over
173 * @param msg The MAVLink message to compress the data into
174 * @param uavionix_adsb_out_cfg C-struct to read the message contents from
175 */
176static inline uint16_t mavlink_msg_uavionix_adsb_out_cfg_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg, const mavlink_uavionix_adsb_out_cfg_t* uavionix_adsb_out_cfg)
177{
178 return mavlink_msg_uavionix_adsb_out_cfg_pack_chan(system_id, component_id, chan, msg, uavionix_adsb_out_cfg->ICAO, uavionix_adsb_out_cfg->callsign, uavionix_adsb_out_cfg->emitterType, uavionix_adsb_out_cfg->aircraftSize, uavionix_adsb_out_cfg->gpsOffsetLat, uavionix_adsb_out_cfg->gpsOffsetLon, uavionix_adsb_out_cfg->stallSpeed, uavionix_adsb_out_cfg->rfSelect);
179}
180
181/**
182 * @brief Send a uavionix_adsb_out_cfg message
183 * @param chan MAVLink channel to send the message
184 *
185 * @param ICAO Vehicle address (24 bit)
186 * @param callsign Vehicle identifier (8 characters, null terminated, valid characters are A-Z, 0-9, " " only)
187 * @param emitterType Transmitting vehicle type. See ADSB_EMITTER_TYPE enum
188 * @param aircraftSize Aircraft length and width encoding (table 2-35 of DO-282B)
189 * @param gpsOffsetLat GPS antenna lateral offset (table 2-36 of DO-282B)
190 * @param gpsOffsetLon GPS antenna longitudinal offset from nose [if non-zero, take position (in meters) divide by 2 and add one] (table 2-37 DO-282B)
191 * @param stallSpeed Aircraft stall speed in cm/s
192 * @param rfSelect ADS-B transponder reciever and transmit enable flags
193 */
194#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
195
196static inline void mavlink_msg_uavionix_adsb_out_cfg_send(mavlink_channel_t chan, uint32_t ICAO, const char *callsign, uint8_t emitterType, uint8_t aircraftSize, uint8_t gpsOffsetLat, uint8_t gpsOffsetLon, uint16_t stallSpeed, uint8_t rfSelect)
197{
198#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
199 char buf[MAVLINK_MSG_ID_UAVIONIX_ADSB_OUT_CFG_LEN];
200 _mav_put_uint32_t(buf, 0, ICAO);
201 _mav_put_uint16_t(buf, 4, stallSpeed);
202 _mav_put_uint8_t(buf, 15, emitterType);
203 _mav_put_uint8_t(buf, 16, aircraftSize);
204 _mav_put_uint8_t(buf, 17, gpsOffsetLat);
205 _mav_put_uint8_t(buf, 18, gpsOffsetLon);
206 _mav_put_uint8_t(buf, 19, rfSelect);
207 _mav_put_char_array(buf, 6, callsign, 9);
208 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_UAVIONIX_ADSB_OUT_CFG, buf, MAVLINK_MSG_ID_UAVIONIX_ADSB_OUT_CFG_MIN_LEN, MAVLINK_MSG_ID_UAVIONIX_ADSB_OUT_CFG_LEN, MAVLINK_MSG_ID_UAVIONIX_ADSB_OUT_CFG_CRC);
209#else
210 mavlink_uavionix_adsb_out_cfg_t packet;
211 packet.ICAO = ICAO;
212 packet.stallSpeed = stallSpeed;
213 packet.emitterType = emitterType;
214 packet.aircraftSize = aircraftSize;
215 packet.gpsOffsetLat = gpsOffsetLat;
216 packet.gpsOffsetLon = gpsOffsetLon;
217 packet.rfSelect = rfSelect;
218 mav_array_memcpy(packet.callsign, callsign, sizeof(char)*9);
219 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_UAVIONIX_ADSB_OUT_CFG, (const char *)&packet, MAVLINK_MSG_ID_UAVIONIX_ADSB_OUT_CFG_MIN_LEN, MAVLINK_MSG_ID_UAVIONIX_ADSB_OUT_CFG_LEN, MAVLINK_MSG_ID_UAVIONIX_ADSB_OUT_CFG_CRC);
220#endif
221}
222
223/**
224 * @brief Send a uavionix_adsb_out_cfg message
225 * @param chan MAVLink channel to send the message
226 * @param struct The MAVLink struct to serialize
227 */
228static inline void mavlink_msg_uavionix_adsb_out_cfg_send_struct(mavlink_channel_t chan, const mavlink_uavionix_adsb_out_cfg_t* uavionix_adsb_out_cfg)
229{
230#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
231 mavlink_msg_uavionix_adsb_out_cfg_send(chan, uavionix_adsb_out_cfg->ICAO, uavionix_adsb_out_cfg->callsign, uavionix_adsb_out_cfg->emitterType, uavionix_adsb_out_cfg->aircraftSize, uavionix_adsb_out_cfg->gpsOffsetLat, uavionix_adsb_out_cfg->gpsOffsetLon, uavionix_adsb_out_cfg->stallSpeed, uavionix_adsb_out_cfg->rfSelect);
232#else
233 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_UAVIONIX_ADSB_OUT_CFG, (const char *)uavionix_adsb_out_cfg, MAVLINK_MSG_ID_UAVIONIX_ADSB_OUT_CFG_MIN_LEN, MAVLINK_MSG_ID_UAVIONIX_ADSB_OUT_CFG_LEN, MAVLINK_MSG_ID_UAVIONIX_ADSB_OUT_CFG_CRC);
234#endif
235}
236
237#if MAVLINK_MSG_ID_UAVIONIX_ADSB_OUT_CFG_LEN <= MAVLINK_MAX_PAYLOAD_LEN
238/*
239 This varient of _send() can be used to save stack space by re-using
240 memory from the receive buffer. The caller provides a
241 mavlink_message_t which is the size of a full mavlink message. This
242 is usually the receive buffer for the channel, and allows a reply to an
243 incoming message with minimum stack space usage.
244 */
245static inline void mavlink_msg_uavionix_adsb_out_cfg_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint32_t ICAO, const char *callsign, uint8_t emitterType, uint8_t aircraftSize, uint8_t gpsOffsetLat, uint8_t gpsOffsetLon, uint16_t stallSpeed, uint8_t rfSelect)
246{
247#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
248 char *buf = (char *)msgbuf;
249 _mav_put_uint32_t(buf, 0, ICAO);
250 _mav_put_uint16_t(buf, 4, stallSpeed);
251 _mav_put_uint8_t(buf, 15, emitterType);
252 _mav_put_uint8_t(buf, 16, aircraftSize);
253 _mav_put_uint8_t(buf, 17, gpsOffsetLat);
254 _mav_put_uint8_t(buf, 18, gpsOffsetLon);
255 _mav_put_uint8_t(buf, 19, rfSelect);
256 _mav_put_char_array(buf, 6, callsign, 9);
257 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_UAVIONIX_ADSB_OUT_CFG, buf, MAVLINK_MSG_ID_UAVIONIX_ADSB_OUT_CFG_MIN_LEN, MAVLINK_MSG_ID_UAVIONIX_ADSB_OUT_CFG_LEN, MAVLINK_MSG_ID_UAVIONIX_ADSB_OUT_CFG_CRC);
258#else
259 mavlink_uavionix_adsb_out_cfg_t *packet = (mavlink_uavionix_adsb_out_cfg_t *)msgbuf;
260 packet->ICAO = ICAO;
261 packet->stallSpeed = stallSpeed;
262 packet->emitterType = emitterType;
263 packet->aircraftSize = aircraftSize;
264 packet->gpsOffsetLat = gpsOffsetLat;
265 packet->gpsOffsetLon = gpsOffsetLon;
266 packet->rfSelect = rfSelect;
267 mav_array_memcpy(packet->callsign, callsign, sizeof(char)*9);
268 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_UAVIONIX_ADSB_OUT_CFG, (const char *)packet, MAVLINK_MSG_ID_UAVIONIX_ADSB_OUT_CFG_MIN_LEN, MAVLINK_MSG_ID_UAVIONIX_ADSB_OUT_CFG_LEN, MAVLINK_MSG_ID_UAVIONIX_ADSB_OUT_CFG_CRC);
269#endif
270}
271#endif
272
273#endif
274
275// MESSAGE UAVIONIX_ADSB_OUT_CFG UNPACKING
276
277
278/**
279 * @brief Get field ICAO from uavionix_adsb_out_cfg message
280 *
281 * @return Vehicle address (24 bit)
282 */
283static inline uint32_t mavlink_msg_uavionix_adsb_out_cfg_get_ICAO(const mavlink_message_t* msg)
284{
285 return _MAV_RETURN_uint32_t(msg, 0);
286}
287
288/**
289 * @brief Get field callsign from uavionix_adsb_out_cfg message
290 *
291 * @return Vehicle identifier (8 characters, null terminated, valid characters are A-Z, 0-9, " " only)
292 */
293static inline uint16_t mavlink_msg_uavionix_adsb_out_cfg_get_callsign(const mavlink_message_t* msg, char *callsign)
294{
295 return _MAV_RETURN_char_array(msg, callsign, 9, 6);
296}
297
298/**
299 * @brief Get field emitterType from uavionix_adsb_out_cfg message
300 *
301 * @return Transmitting vehicle type. See ADSB_EMITTER_TYPE enum
302 */
303static inline uint8_t mavlink_msg_uavionix_adsb_out_cfg_get_emitterType(const mavlink_message_t* msg)
304{
305 return _MAV_RETURN_uint8_t(msg, 15);
306}
307
308/**
309 * @brief Get field aircraftSize from uavionix_adsb_out_cfg message
310 *
311 * @return Aircraft length and width encoding (table 2-35 of DO-282B)
312 */
313static inline uint8_t mavlink_msg_uavionix_adsb_out_cfg_get_aircraftSize(const mavlink_message_t* msg)
314{
315 return _MAV_RETURN_uint8_t(msg, 16);
316}
317
318/**
319 * @brief Get field gpsOffsetLat from uavionix_adsb_out_cfg message
320 *
321 * @return GPS antenna lateral offset (table 2-36 of DO-282B)
322 */
323static inline uint8_t mavlink_msg_uavionix_adsb_out_cfg_get_gpsOffsetLat(const mavlink_message_t* msg)
324{
325 return _MAV_RETURN_uint8_t(msg, 17);
326}
327
328/**
329 * @brief Get field gpsOffsetLon from uavionix_adsb_out_cfg message
330 *
331 * @return GPS antenna longitudinal offset from nose [if non-zero, take position (in meters) divide by 2 and add one] (table 2-37 DO-282B)
332 */
333static inline uint8_t mavlink_msg_uavionix_adsb_out_cfg_get_gpsOffsetLon(const mavlink_message_t* msg)
334{
335 return _MAV_RETURN_uint8_t(msg, 18);
336}
337
338/**
339 * @brief Get field stallSpeed from uavionix_adsb_out_cfg message
340 *
341 * @return Aircraft stall speed in cm/s
342 */
343static inline uint16_t mavlink_msg_uavionix_adsb_out_cfg_get_stallSpeed(const mavlink_message_t* msg)
344{
345 return _MAV_RETURN_uint16_t(msg, 4);
346}
347
348/**
349 * @brief Get field rfSelect from uavionix_adsb_out_cfg message
350 *
351 * @return ADS-B transponder reciever and transmit enable flags
352 */
353static inline uint8_t mavlink_msg_uavionix_adsb_out_cfg_get_rfSelect(const mavlink_message_t* msg)
354{
355 return _MAV_RETURN_uint8_t(msg, 19);
356}
357
358/**
359 * @brief Decode a uavionix_adsb_out_cfg message into a struct
360 *
361 * @param msg The message to decode
362 * @param uavionix_adsb_out_cfg C-struct to decode the message contents into
363 */
364static inline void mavlink_msg_uavionix_adsb_out_cfg_decode(const mavlink_message_t* msg, mavlink_uavionix_adsb_out_cfg_t* uavionix_adsb_out_cfg)
365{
366#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
367 uavionix_adsb_out_cfg->ICAO = mavlink_msg_uavionix_adsb_out_cfg_get_ICAO(msg);
368 uavionix_adsb_out_cfg->stallSpeed = mavlink_msg_uavionix_adsb_out_cfg_get_stallSpeed(msg);
369 mavlink_msg_uavionix_adsb_out_cfg_get_callsign(msg, uavionix_adsb_out_cfg->callsign);
370 uavionix_adsb_out_cfg->emitterType = mavlink_msg_uavionix_adsb_out_cfg_get_emitterType(msg);
371 uavionix_adsb_out_cfg->aircraftSize = mavlink_msg_uavionix_adsb_out_cfg_get_aircraftSize(msg);
372 uavionix_adsb_out_cfg->gpsOffsetLat = mavlink_msg_uavionix_adsb_out_cfg_get_gpsOffsetLat(msg);
373 uavionix_adsb_out_cfg->gpsOffsetLon = mavlink_msg_uavionix_adsb_out_cfg_get_gpsOffsetLon(msg);
374 uavionix_adsb_out_cfg->rfSelect = mavlink_msg_uavionix_adsb_out_cfg_get_rfSelect(msg);
375#else
376 uint8_t len = msg->len < MAVLINK_MSG_ID_UAVIONIX_ADSB_OUT_CFG_LEN? msg->len : MAVLINK_MSG_ID_UAVIONIX_ADSB_OUT_CFG_LEN;
377 memset(uavionix_adsb_out_cfg, 0, MAVLINK_MSG_ID_UAVIONIX_ADSB_OUT_CFG_LEN);
378 memcpy(uavionix_adsb_out_cfg, _MAV_PAYLOAD(msg), len);
379#endif
380}