4#define MAVLINK_MSG_ID_ADSB_VEHICLE 246
21} mavlink_adsb_vehicle_t;
23#define MAVLINK_MSG_ID_ADSB_VEHICLE_LEN 38
24#define MAVLINK_MSG_ID_ADSB_VEHICLE_MIN_LEN 38
25#define MAVLINK_MSG_ID_246_LEN 38
26#define MAVLINK_MSG_ID_246_MIN_LEN 38
28#define MAVLINK_MSG_ID_ADSB_VEHICLE_CRC 184
29#define MAVLINK_MSG_ID_246_CRC 184
31#define MAVLINK_MSG_ADSB_VEHICLE_FIELD_CALLSIGN_LEN 9
33#if MAVLINK_COMMAND_24BIT
34#define MAVLINK_MESSAGE_INFO_ADSB_VEHICLE {
38 { { "ICAO_address", NULL, MAVLINK_TYPE_UINT32_T, 0
, 0
, offsetof(mavlink_adsb_vehicle_t, ICAO_address) },
39 { "lat", NULL, MAVLINK_TYPE_INT32_T, 0
, 4
, offsetof(mavlink_adsb_vehicle_t, lat) },
40 { "lon", NULL, MAVLINK_TYPE_INT32_T, 0
, 8
, offsetof(mavlink_adsb_vehicle_t, lon) },
41 { "altitude_type", NULL, MAVLINK_TYPE_UINT8_T, 0
, 26
, offsetof(mavlink_adsb_vehicle_t, altitude_type) },
42 { "altitude", NULL, MAVLINK_TYPE_INT32_T, 0
, 12
, offsetof(mavlink_adsb_vehicle_t, altitude) },
43 { "heading", NULL, MAVLINK_TYPE_UINT16_T, 0
, 16
, offsetof(mavlink_adsb_vehicle_t, heading) },
44 { "hor_velocity", NULL, MAVLINK_TYPE_UINT16_T, 0
, 18
, offsetof(mavlink_adsb_vehicle_t, hor_velocity) },
45 { "ver_velocity", NULL, MAVLINK_TYPE_INT16_T, 0
, 20
, offsetof(mavlink_adsb_vehicle_t, ver_velocity) },
46 { "callsign", NULL, MAVLINK_TYPE_CHAR, 9
, 27
, offsetof(mavlink_adsb_vehicle_t, callsign) },
47 { "emitter_type", NULL, MAVLINK_TYPE_UINT8_T, 0
, 36
, offsetof(mavlink_adsb_vehicle_t, emitter_type) },
48 { "tslc", NULL, MAVLINK_TYPE_UINT8_T, 0
, 37
, offsetof(mavlink_adsb_vehicle_t, tslc) },
49 { "flags", NULL, MAVLINK_TYPE_UINT16_T, 0
, 22
, offsetof(mavlink_adsb_vehicle_t, flags) },
50 { "squawk", NULL, MAVLINK_TYPE_UINT16_T, 0
, 24
, offsetof(mavlink_adsb_vehicle_t, squawk) },
52}
54#define MAVLINK_MESSAGE_INFO_ADSB_VEHICLE {
57 { { "ICAO_address", NULL, MAVLINK_TYPE_UINT32_T, 0
, 0
, offsetof(mavlink_adsb_vehicle_t, ICAO_address) },
58 { "lat", NULL, MAVLINK_TYPE_INT32_T, 0
, 4
, offsetof(mavlink_adsb_vehicle_t, lat) },
59 { "lon", NULL, MAVLINK_TYPE_INT32_T, 0
, 8
, offsetof(mavlink_adsb_vehicle_t, lon) },
60 { "altitude_type", NULL, MAVLINK_TYPE_UINT8_T, 0
, 26
, offsetof(mavlink_adsb_vehicle_t, altitude_type) },
61 { "altitude", NULL, MAVLINK_TYPE_INT32_T, 0
, 12
, offsetof(mavlink_adsb_vehicle_t, altitude) },
62 { "heading", NULL, MAVLINK_TYPE_UINT16_T, 0
, 16
, offsetof(mavlink_adsb_vehicle_t, heading) },
63 { "hor_velocity", NULL, MAVLINK_TYPE_UINT16_T, 0
, 18
, offsetof(mavlink_adsb_vehicle_t, hor_velocity) },
64 { "ver_velocity", NULL, MAVLINK_TYPE_INT16_T, 0
, 20
, offsetof(mavlink_adsb_vehicle_t, ver_velocity) },
65 { "callsign", NULL, MAVLINK_TYPE_CHAR, 9
, 27
, offsetof(mavlink_adsb_vehicle_t, callsign) },
66 { "emitter_type", NULL, MAVLINK_TYPE_UINT8_T, 0
, 36
, offsetof(mavlink_adsb_vehicle_t, emitter_type) },
67 { "tslc", NULL, MAVLINK_TYPE_UINT8_T, 0
, 37
, offsetof(mavlink_adsb_vehicle_t, tslc) },
68 { "flags", NULL, MAVLINK_TYPE_UINT16_T, 0
, 22
, offsetof(mavlink_adsb_vehicle_t, flags) },
69 { "squawk", NULL, MAVLINK_TYPE_UINT16_T, 0
, 24
, offsetof(mavlink_adsb_vehicle_t, squawk) },
71}
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95static inline uint16_t mavlink_msg_adsb_vehicle_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
96 uint32_t ICAO_address, int32_t lat, int32_t lon, uint8_t altitude_type, int32_t altitude, uint16_t heading, uint16_t hor_velocity, int16_t ver_velocity,
const char *callsign, uint8_t emitter_type, uint8_t tslc, uint16_t flags, uint16_t squawk)
98#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
100 _mav_put_uint32_t(buf, 0, ICAO_address);
101 _mav_put_int32_t(buf, 4, lat);
102 _mav_put_int32_t(buf, 8, lon);
103 _mav_put_int32_t(buf, 12, altitude);
104 _mav_put_uint16_t(buf, 16, heading);
105 _mav_put_uint16_t(buf, 18, hor_velocity);
106 _mav_put_int16_t(buf, 20, ver_velocity);
107 _mav_put_uint16_t(buf, 22, flags);
108 _mav_put_uint16_t(buf, 24, squawk);
109 _mav_put_uint8_t(buf, 26, altitude_type);
110 _mav_put_uint8_t(buf, 36, emitter_type);
111 _mav_put_uint8_t(buf, 37, tslc);
112 _mav_put_char_array(buf, 27, callsign, 9);
115 mavlink_adsb_vehicle_t packet;
116 packet.ICAO_address = ICAO_address;
119 packet.altitude = altitude;
120 packet.heading = heading;
121 packet.hor_velocity = hor_velocity;
122 packet.ver_velocity = ver_velocity;
123 packet.flags = flags;
124 packet.squawk = squawk;
125 packet.altitude_type = altitude_type;
126 packet.emitter_type = emitter_type;
128 mav_array_memcpy(packet.callsign, callsign,
sizeof(
char)*9);
129 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_ADSB_VEHICLE_LEN);
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158static inline uint16_t mavlink_msg_adsb_vehicle_pack_status(uint8_t system_id, uint8_t component_id, mavlink_status_t *_status, mavlink_message_t* msg,
159 uint32_t ICAO_address, int32_t lat, int32_t lon, uint8_t altitude_type, int32_t altitude, uint16_t heading, uint16_t hor_velocity, int16_t ver_velocity,
const char *callsign, uint8_t emitter_type, uint8_t tslc, uint16_t flags, uint16_t squawk)
161#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
163 _mav_put_uint32_t(buf, 0, ICAO_address);
164 _mav_put_int32_t(buf, 4, lat);
165 _mav_put_int32_t(buf, 8, lon);
166 _mav_put_int32_t(buf, 12, altitude);
167 _mav_put_uint16_t(buf, 16, heading);
168 _mav_put_uint16_t(buf, 18, hor_velocity);
169 _mav_put_int16_t(buf, 20, ver_velocity);
170 _mav_put_uint16_t(buf, 22, flags);
171 _mav_put_uint16_t(buf, 24, squawk);
172 _mav_put_uint8_t(buf, 26, altitude_type);
173 _mav_put_uint8_t(buf, 36, emitter_type);
174 _mav_put_uint8_t(buf, 37, tslc);
175 _mav_put_char_array(buf, 27, callsign, 9);
178 mavlink_adsb_vehicle_t packet;
179 packet.ICAO_address = ICAO_address;
182 packet.altitude = altitude;
183 packet.heading = heading;
184 packet.hor_velocity = hor_velocity;
185 packet.ver_velocity = ver_velocity;
186 packet.flags = flags;
187 packet.squawk = squawk;
188 packet.altitude_type = altitude_type;
189 packet.emitter_type = emitter_type;
191 mav_array_memcpy(packet.callsign, callsign,
sizeof(
char)*9);
192 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_ADSB_VEHICLE_LEN);
197 return mavlink_finalize_message_buffer(msg, system_id, component_id, _status, MAVLINK_MSG_ID_ADSB_VEHICLE_MIN_LEN, MAVLINK_MSG_ID_ADSB_VEHICLE_LEN, MAVLINK_MSG_ID_ADSB_VEHICLE_CRC);
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224static inline uint16_t mavlink_msg_adsb_vehicle_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
225 mavlink_message_t* msg,
226 uint32_t ICAO_address,int32_t lat,int32_t lon,uint8_t altitude_type,int32_t altitude,uint16_t heading,uint16_t hor_velocity,int16_t ver_velocity,
const char *callsign,uint8_t emitter_type,uint8_t tslc,uint16_t flags,uint16_t squawk)
228#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
230 _mav_put_uint32_t(buf, 0, ICAO_address);
231 _mav_put_int32_t(buf, 4, lat);
232 _mav_put_int32_t(buf, 8, lon);
233 _mav_put_int32_t(buf, 12, altitude);
234 _mav_put_uint16_t(buf, 16, heading);
235 _mav_put_uint16_t(buf, 18, hor_velocity);
236 _mav_put_int16_t(buf, 20, ver_velocity);
237 _mav_put_uint16_t(buf, 22, flags);
238 _mav_put_uint16_t(buf, 24, squawk);
239 _mav_put_uint8_t(buf, 26, altitude_type);
240 _mav_put_uint8_t(buf, 36, emitter_type);
241 _mav_put_uint8_t(buf, 37, tslc);
242 _mav_put_char_array(buf, 27, callsign, 9);
245 mavlink_adsb_vehicle_t packet;
246 packet.ICAO_address = ICAO_address;
249 packet.altitude = altitude;
250 packet.heading = heading;
251 packet.hor_velocity = hor_velocity;
252 packet.ver_velocity = ver_velocity;
253 packet.flags = flags;
254 packet.squawk = squawk;
255 packet.altitude_type = altitude_type;
256 packet.emitter_type = emitter_type;
258 mav_array_memcpy(packet.callsign, callsign,
sizeof(
char)*9);
259 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_ADSB_VEHICLE_LEN);
267
268
269
270
271
272
273
274static inline uint16_t mavlink_msg_adsb_vehicle_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_adsb_vehicle_t* adsb_vehicle)
276 return mavlink_msg_adsb_vehicle_pack(system_id, component_id, msg, adsb_vehicle->ICAO_address, adsb_vehicle->lat, adsb_vehicle->lon, adsb_vehicle->altitude_type, adsb_vehicle->altitude, adsb_vehicle->heading, adsb_vehicle->hor_velocity, adsb_vehicle->ver_velocity, adsb_vehicle->callsign, adsb_vehicle->emitter_type, adsb_vehicle->tslc, adsb_vehicle->flags, adsb_vehicle->squawk);
280
281
282
283
284
285
286
287
288static inline uint16_t mavlink_msg_adsb_vehicle_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_adsb_vehicle_t* adsb_vehicle)
290 return mavlink_msg_adsb_vehicle_pack_chan(system_id, component_id, chan, msg, adsb_vehicle->ICAO_address, adsb_vehicle->lat, adsb_vehicle->lon, adsb_vehicle->altitude_type, adsb_vehicle->altitude, adsb_vehicle->heading, adsb_vehicle->hor_velocity, adsb_vehicle->ver_velocity, adsb_vehicle->callsign, adsb_vehicle->emitter_type, adsb_vehicle->tslc, adsb_vehicle->flags, adsb_vehicle->squawk);
294
295
296
297
298
299
300
301
302static inline uint16_t mavlink_msg_adsb_vehicle_encode_status(uint8_t system_id, uint8_t component_id, mavlink_status_t* _status, mavlink_message_t* msg,
const mavlink_adsb_vehicle_t* adsb_vehicle)
304 return mavlink_msg_adsb_vehicle_pack_status(system_id, component_id, _status, msg, adsb_vehicle->ICAO_address, adsb_vehicle->lat, adsb_vehicle->lon, adsb_vehicle->altitude_type, adsb_vehicle->altitude, adsb_vehicle->heading, adsb_vehicle->hor_velocity, adsb_vehicle->ver_velocity, adsb_vehicle->callsign, adsb_vehicle->emitter_type, adsb_vehicle->tslc, adsb_vehicle->flags, adsb_vehicle->squawk);
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
327static inline void mavlink_msg_adsb_vehicle_send(mavlink_channel_t chan, uint32_t ICAO_address, int32_t lat, int32_t lon, uint8_t altitude_type, int32_t altitude, uint16_t heading, uint16_t hor_velocity, int16_t ver_velocity,
const char *callsign, uint8_t emitter_type, uint8_t tslc, uint16_t flags, uint16_t squawk)
329#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
330 char buf[MAVLINK_MSG_ID_ADSB_VEHICLE_LEN];
331 _mav_put_uint32_t(buf, 0, ICAO_address);
332 _mav_put_int32_t(buf, 4, lat);
333 _mav_put_int32_t(buf, 8, lon);
334 _mav_put_int32_t(buf, 12, altitude);
335 _mav_put_uint16_t(buf, 16, heading);
336 _mav_put_uint16_t(buf, 18, hor_velocity);
337 _mav_put_int16_t(buf, 20, ver_velocity);
338 _mav_put_uint16_t(buf, 22, flags);
339 _mav_put_uint16_t(buf, 24, squawk);
340 _mav_put_uint8_t(buf, 26, altitude_type);
341 _mav_put_uint8_t(buf, 36, emitter_type);
342 _mav_put_uint8_t(buf, 37, tslc);
343 _mav_put_char_array(buf, 27, callsign, 9);
344 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_ADSB_VEHICLE, buf, MAVLINK_MSG_ID_ADSB_VEHICLE_MIN_LEN, MAVLINK_MSG_ID_ADSB_VEHICLE_LEN, MAVLINK_MSG_ID_ADSB_VEHICLE_CRC);
346 mavlink_adsb_vehicle_t packet;
347 packet.ICAO_address = ICAO_address;
350 packet.altitude = altitude;
351 packet.heading = heading;
352 packet.hor_velocity = hor_velocity;
353 packet.ver_velocity = ver_velocity;
354 packet.flags = flags;
355 packet.squawk = squawk;
356 packet.altitude_type = altitude_type;
357 packet.emitter_type = emitter_type;
359 mav_array_memcpy(packet.callsign, callsign,
sizeof(
char)*9);
360 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_ADSB_VEHICLE, (
const char *)&packet, MAVLINK_MSG_ID_ADSB_VEHICLE_MIN_LEN, MAVLINK_MSG_ID_ADSB_VEHICLE_LEN, MAVLINK_MSG_ID_ADSB_VEHICLE_CRC);
365
366
367
368
369static inline void mavlink_msg_adsb_vehicle_send_struct(mavlink_channel_t chan,
const mavlink_adsb_vehicle_t* adsb_vehicle)
371#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
372 mavlink_msg_adsb_vehicle_send(chan, adsb_vehicle->ICAO_address, adsb_vehicle->lat, adsb_vehicle->lon, adsb_vehicle->altitude_type, adsb_vehicle->altitude, adsb_vehicle->heading, adsb_vehicle->hor_velocity, adsb_vehicle->ver_velocity, adsb_vehicle->callsign, adsb_vehicle->emitter_type, adsb_vehicle->tslc, adsb_vehicle->flags, adsb_vehicle->squawk);
374 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_ADSB_VEHICLE, (
const char *)adsb_vehicle, MAVLINK_MSG_ID_ADSB_VEHICLE_MIN_LEN, MAVLINK_MSG_ID_ADSB_VEHICLE_LEN, MAVLINK_MSG_ID_ADSB_VEHICLE_CRC);
378#if MAVLINK_MSG_ID_ADSB_VEHICLE_LEN <= MAVLINK_MAX_PAYLOAD_LEN
380
381
382
383
384
385
386static inline void mavlink_msg_adsb_vehicle_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint32_t ICAO_address, int32_t lat, int32_t lon, uint8_t altitude_type, int32_t altitude, uint16_t heading, uint16_t hor_velocity, int16_t ver_velocity,
const char *callsign, uint8_t emitter_type, uint8_t tslc, uint16_t flags, uint16_t squawk)
388#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
389 char *buf = (
char *)msgbuf;
390 _mav_put_uint32_t(buf, 0, ICAO_address);
391 _mav_put_int32_t(buf, 4, lat);
392 _mav_put_int32_t(buf, 8, lon);
393 _mav_put_int32_t(buf, 12, altitude);
394 _mav_put_uint16_t(buf, 16, heading);
395 _mav_put_uint16_t(buf, 18, hor_velocity);
396 _mav_put_int16_t(buf, 20, ver_velocity);
397 _mav_put_uint16_t(buf, 22, flags);
398 _mav_put_uint16_t(buf, 24, squawk);
399 _mav_put_uint8_t(buf, 26, altitude_type);
400 _mav_put_uint8_t(buf, 36, emitter_type);
401 _mav_put_uint8_t(buf, 37, tslc);
402 _mav_put_char_array(buf, 27, callsign, 9);
403 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_ADSB_VEHICLE, buf, MAVLINK_MSG_ID_ADSB_VEHICLE_MIN_LEN, MAVLINK_MSG_ID_ADSB_VEHICLE_LEN, MAVLINK_MSG_ID_ADSB_VEHICLE_CRC);
405 mavlink_adsb_vehicle_t *packet = (mavlink_adsb_vehicle_t *)msgbuf;
406 packet->ICAO_address = ICAO_address;
409 packet->altitude = altitude;
410 packet->heading = heading;
411 packet->hor_velocity = hor_velocity;
412 packet->ver_velocity = ver_velocity;
413 packet->flags = flags;
414 packet->squawk = squawk;
415 packet->altitude_type = altitude_type;
416 packet->emitter_type = emitter_type;
418 mav_array_memcpy(packet->callsign, callsign,
sizeof(
char)*9);
419 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_ADSB_VEHICLE, (
const char *)packet, MAVLINK_MSG_ID_ADSB_VEHICLE_MIN_LEN, MAVLINK_MSG_ID_ADSB_VEHICLE_LEN, MAVLINK_MSG_ID_ADSB_VEHICLE_CRC);
430
431
432
433
434static inline uint32_t mavlink_msg_adsb_vehicle_get_ICAO_address(
const mavlink_message_t* msg)
436 return _MAV_RETURN_uint32_t(msg, 0);
440
441
442
443
444static inline int32_t mavlink_msg_adsb_vehicle_get_lat(
const mavlink_message_t* msg)
446 return _MAV_RETURN_int32_t(msg, 4);
450
451
452
453
454static inline int32_t mavlink_msg_adsb_vehicle_get_lon(
const mavlink_message_t* msg)
456 return _MAV_RETURN_int32_t(msg, 8);
460
461
462
463
464static inline uint8_t mavlink_msg_adsb_vehicle_get_altitude_type(
const mavlink_message_t* msg)
466 return _MAV_RETURN_uint8_t(msg, 26);
470
471
472
473
474static inline int32_t mavlink_msg_adsb_vehicle_get_altitude(
const mavlink_message_t* msg)
476 return _MAV_RETURN_int32_t(msg, 12);
480
481
482
483
484static inline uint16_t mavlink_msg_adsb_vehicle_get_heading(
const mavlink_message_t* msg)
486 return _MAV_RETURN_uint16_t(msg, 16);
490
491
492
493
494static inline uint16_t mavlink_msg_adsb_vehicle_get_hor_velocity(
const mavlink_message_t* msg)
496 return _MAV_RETURN_uint16_t(msg, 18);
500
501
502
503
504static inline int16_t mavlink_msg_adsb_vehicle_get_ver_velocity(
const mavlink_message_t* msg)
506 return _MAV_RETURN_int16_t(msg, 20);
510
511
512
513
514static inline uint16_t mavlink_msg_adsb_vehicle_get_callsign(
const mavlink_message_t* msg,
char *callsign)
516 return _MAV_RETURN_char_array(msg, callsign, 9, 27);
520
521
522
523
524static inline uint8_t mavlink_msg_adsb_vehicle_get_emitter_type(
const mavlink_message_t* msg)
526 return _MAV_RETURN_uint8_t(msg, 36);
530
531
532
533
534static inline uint8_t mavlink_msg_adsb_vehicle_get_tslc(
const mavlink_message_t* msg)
536 return _MAV_RETURN_uint8_t(msg, 37);
540
541
542
543
544static inline uint16_t mavlink_msg_adsb_vehicle_get_flags(
const mavlink_message_t* msg)
546 return _MAV_RETURN_uint16_t(msg, 22);
550
551
552
553
554static inline uint16_t mavlink_msg_adsb_vehicle_get_squawk(
const mavlink_message_t* msg)
556 return _MAV_RETURN_uint16_t(msg, 24);
560
561
562
563
564
565static inline void mavlink_msg_adsb_vehicle_decode(
const mavlink_message_t* msg, mavlink_adsb_vehicle_t* adsb_vehicle)
567#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
568 adsb_vehicle->ICAO_address = mavlink_msg_adsb_vehicle_get_ICAO_address(msg);
569 adsb_vehicle->lat = mavlink_msg_adsb_vehicle_get_lat(msg);
570 adsb_vehicle->lon = mavlink_msg_adsb_vehicle_get_lon(msg);
571 adsb_vehicle->altitude = mavlink_msg_adsb_vehicle_get_altitude(msg);
572 adsb_vehicle->heading = mavlink_msg_adsb_vehicle_get_heading(msg);
573 adsb_vehicle->hor_velocity = mavlink_msg_adsb_vehicle_get_hor_velocity(msg);
574 adsb_vehicle->ver_velocity = mavlink_msg_adsb_vehicle_get_ver_velocity(msg);
575 adsb_vehicle->flags = mavlink_msg_adsb_vehicle_get_flags(msg);
576 adsb_vehicle->squawk = mavlink_msg_adsb_vehicle_get_squawk(msg);
577 adsb_vehicle->altitude_type = mavlink_msg_adsb_vehicle_get_altitude_type(msg);
578 mavlink_msg_adsb_vehicle_get_callsign(msg, adsb_vehicle->callsign);
579 adsb_vehicle->emitter_type = mavlink_msg_adsb_vehicle_get_emitter_type(msg);
580 adsb_vehicle->tslc = mavlink_msg_adsb_vehicle_get_tslc(msg);
582 uint8_t len = msg->len < MAVLINK_MSG_ID_ADSB_VEHICLE_LEN? msg->len : MAVLINK_MSG_ID_ADSB_VEHICLE_LEN;
583 memset(adsb_vehicle, 0, MAVLINK_MSG_ID_ADSB_VEHICLE_LEN);
584 memcpy(adsb_vehicle, _MAV_PAYLOAD(msg), len);
#define MAVLINK_MSG_ID_ADSB_VEHICLE
Definition: mavlink_msg_adsb_vehicle.h:4
#define MAVLINK_MSG_ID_ADSB_VEHICLE_MIN_LEN
Definition: mavlink_msg_adsb_vehicle.h:24
#define MAVLINK_MSG_ID_ADSB_VEHICLE_CRC
Definition: mavlink_msg_adsb_vehicle.h:28
#define MAVLINK_MSG_ID_ADSB_VEHICLE_LEN
Definition: mavlink_msg_adsb_vehicle.h:23
Definition: mavlink_msg_adsb_vehicle.h:7
int32_t lon
Definition: mavlink_msg_adsb_vehicle.h:10
uint16_t flags
Definition: mavlink_msg_adsb_vehicle.h:15
uint32_t ICAO_address
Definition: mavlink_msg_adsb_vehicle.h:8
uint8_t emitter_type
Definition: mavlink_msg_adsb_vehicle.h:19
uint16_t heading
Definition: mavlink_msg_adsb_vehicle.h:12
char callsign[9]
Definition: mavlink_msg_adsb_vehicle.h:18
uint8_t altitude_type
Definition: mavlink_msg_adsb_vehicle.h:17
int32_t altitude
Definition: mavlink_msg_adsb_vehicle.h:11
uint8_t tslc
Definition: mavlink_msg_adsb_vehicle.h:20
int32_t lat
Definition: mavlink_msg_adsb_vehicle.h:9
uint16_t hor_velocity
Definition: mavlink_msg_adsb_vehicle.h:13
uint16_t squawk
Definition: mavlink_msg_adsb_vehicle.h:16
int16_t ver_velocity
Definition: mavlink_msg_adsb_vehicle.h:14