4#define MAVLINK_MSG_ID_OPEN_DRONE_ID_LOCATION 12901
27} mavlink_open_drone_id_location_t;
29#define MAVLINK_MSG_ID_OPEN_DRONE_ID_LOCATION_LEN 59
30#define MAVLINK_MSG_ID_OPEN_DRONE_ID_LOCATION_MIN_LEN 59
31#define MAVLINK_MSG_ID_12901_LEN 59
32#define MAVLINK_MSG_ID_12901_MIN_LEN 59
34#define MAVLINK_MSG_ID_OPEN_DRONE_ID_LOCATION_CRC 254
35#define MAVLINK_MSG_ID_12901_CRC 254
37#define MAVLINK_MSG_OPEN_DRONE_ID_LOCATION_FIELD_ID_OR_MAC_LEN 20
39#if MAVLINK_COMMAND_24BIT
40#define MAVLINK_MESSAGE_INFO_OPEN_DRONE_ID_LOCATION {
42 "OPEN_DRONE_ID_LOCATION",
44 { { "target_system", NULL, MAVLINK_TYPE_UINT8_T, 0
, 30
, offsetof(mavlink_open_drone_id_location_t, target_system) },
45 { "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0
, 31
, offsetof(mavlink_open_drone_id_location_t, target_component) },
46 { "id_or_mac", NULL, MAVLINK_TYPE_UINT8_T, 20
, 32
, offsetof(mavlink_open_drone_id_location_t, id_or_mac) },
47 { "status", NULL, MAVLINK_TYPE_UINT8_T, 0
, 52
, offsetof(mavlink_open_drone_id_location_t, status) },
48 { "direction", NULL, MAVLINK_TYPE_UINT16_T, 0
, 24
, offsetof(mavlink_open_drone_id_location_t, direction) },
49 { "speed_horizontal", NULL, MAVLINK_TYPE_UINT16_T, 0
, 26
, offsetof(mavlink_open_drone_id_location_t, speed_horizontal) },
50 { "speed_vertical", NULL, MAVLINK_TYPE_INT16_T, 0
, 28
, offsetof(mavlink_open_drone_id_location_t, speed_vertical) },
51 { "latitude", NULL, MAVLINK_TYPE_INT32_T, 0
, 0
, offsetof(mavlink_open_drone_id_location_t, latitude) },
52 { "longitude", NULL, MAVLINK_TYPE_INT32_T, 0
, 4
, offsetof(mavlink_open_drone_id_location_t, longitude) },
53 { "altitude_barometric", NULL, MAVLINK_TYPE_FLOAT, 0
, 8
, offsetof(mavlink_open_drone_id_location_t, altitude_barometric) },
54 { "altitude_geodetic", NULL, MAVLINK_TYPE_FLOAT, 0
, 12
, offsetof(mavlink_open_drone_id_location_t, altitude_geodetic) },
55 { "height_reference", NULL, MAVLINK_TYPE_UINT8_T, 0
, 53
, offsetof(mavlink_open_drone_id_location_t, height_reference) },
56 { "height", NULL, MAVLINK_TYPE_FLOAT, 0
, 16
, offsetof(mavlink_open_drone_id_location_t, height) },
57 { "horizontal_accuracy", NULL, MAVLINK_TYPE_UINT8_T, 0
, 54
, offsetof(mavlink_open_drone_id_location_t, horizontal_accuracy) },
58 { "vertical_accuracy", NULL, MAVLINK_TYPE_UINT8_T, 0
, 55
, offsetof(mavlink_open_drone_id_location_t, vertical_accuracy) },
59 { "barometer_accuracy", NULL, MAVLINK_TYPE_UINT8_T, 0
, 56
, offsetof(mavlink_open_drone_id_location_t, barometer_accuracy) },
60 { "speed_accuracy", NULL, MAVLINK_TYPE_UINT8_T, 0
, 57
, offsetof(mavlink_open_drone_id_location_t, speed_accuracy) },
61 { "timestamp", NULL, MAVLINK_TYPE_FLOAT, 0
, 20
, offsetof(mavlink_open_drone_id_location_t, timestamp) },
62 { "timestamp_accuracy", NULL, MAVLINK_TYPE_UINT8_T, 0
, 58
, offsetof(mavlink_open_drone_id_location_t, timestamp_accuracy) },
64}
66#define MAVLINK_MESSAGE_INFO_OPEN_DRONE_ID_LOCATION {
67 "OPEN_DRONE_ID_LOCATION",
69 { { "target_system", NULL, MAVLINK_TYPE_UINT8_T, 0
, 30
, offsetof(mavlink_open_drone_id_location_t, target_system) },
70 { "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0
, 31
, offsetof(mavlink_open_drone_id_location_t, target_component) },
71 { "id_or_mac", NULL, MAVLINK_TYPE_UINT8_T, 20
, 32
, offsetof(mavlink_open_drone_id_location_t, id_or_mac) },
72 { "status", NULL, MAVLINK_TYPE_UINT8_T, 0
, 52
, offsetof(mavlink_open_drone_id_location_t, status) },
73 { "direction", NULL, MAVLINK_TYPE_UINT16_T, 0
, 24
, offsetof(mavlink_open_drone_id_location_t, direction) },
74 { "speed_horizontal", NULL, MAVLINK_TYPE_UINT16_T, 0
, 26
, offsetof(mavlink_open_drone_id_location_t, speed_horizontal) },
75 { "speed_vertical", NULL, MAVLINK_TYPE_INT16_T, 0
, 28
, offsetof(mavlink_open_drone_id_location_t, speed_vertical) },
76 { "latitude", NULL, MAVLINK_TYPE_INT32_T, 0
, 0
, offsetof(mavlink_open_drone_id_location_t, latitude) },
77 { "longitude", NULL, MAVLINK_TYPE_INT32_T, 0
, 4
, offsetof(mavlink_open_drone_id_location_t, longitude) },
78 { "altitude_barometric", NULL, MAVLINK_TYPE_FLOAT, 0
, 8
, offsetof(mavlink_open_drone_id_location_t, altitude_barometric) },
79 { "altitude_geodetic", NULL, MAVLINK_TYPE_FLOAT, 0
, 12
, offsetof(mavlink_open_drone_id_location_t, altitude_geodetic) },
80 { "height_reference", NULL, MAVLINK_TYPE_UINT8_T, 0
, 53
, offsetof(mavlink_open_drone_id_location_t, height_reference) },
81 { "height", NULL, MAVLINK_TYPE_FLOAT, 0
, 16
, offsetof(mavlink_open_drone_id_location_t, height) },
82 { "horizontal_accuracy", NULL, MAVLINK_TYPE_UINT8_T, 0
, 54
, offsetof(mavlink_open_drone_id_location_t, horizontal_accuracy) },
83 { "vertical_accuracy", NULL, MAVLINK_TYPE_UINT8_T, 0
, 55
, offsetof(mavlink_open_drone_id_location_t, vertical_accuracy) },
84 { "barometer_accuracy", NULL, MAVLINK_TYPE_UINT8_T, 0
, 56
, offsetof(mavlink_open_drone_id_location_t, barometer_accuracy) },
85 { "speed_accuracy", NULL, MAVLINK_TYPE_UINT8_T, 0
, 57
, offsetof(mavlink_open_drone_id_location_t, speed_accuracy) },
86 { "timestamp", NULL, MAVLINK_TYPE_FLOAT, 0
, 20
, offsetof(mavlink_open_drone_id_location_t, timestamp) },
87 { "timestamp_accuracy", NULL, MAVLINK_TYPE_UINT8_T, 0
, 58
, offsetof(mavlink_open_drone_id_location_t, timestamp_accuracy) },
89}
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119static inline uint16_t mavlink_msg_open_drone_id_location_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
120 uint8_t target_system, uint8_t target_component,
const uint8_t *id_or_mac, uint8_t status, uint16_t direction, uint16_t speed_horizontal, int16_t speed_vertical, int32_t latitude, int32_t longitude,
float altitude_barometric,
float altitude_geodetic, uint8_t height_reference,
float height, uint8_t horizontal_accuracy, uint8_t vertical_accuracy, uint8_t barometer_accuracy, uint8_t speed_accuracy,
float timestamp, uint8_t timestamp_accuracy)
122#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
124 _mav_put_int32_t(buf, 0, latitude);
125 _mav_put_int32_t(buf, 4, longitude);
126 _mav_put_float(buf, 8, altitude_barometric);
127 _mav_put_float(buf, 12, altitude_geodetic);
128 _mav_put_float(buf, 16, height);
129 _mav_put_float(buf, 20, timestamp);
130 _mav_put_uint16_t(buf, 24, direction);
131 _mav_put_uint16_t(buf, 26, speed_horizontal);
132 _mav_put_int16_t(buf, 28, speed_vertical);
133 _mav_put_uint8_t(buf, 30, target_system);
134 _mav_put_uint8_t(buf, 31, target_component);
135 _mav_put_uint8_t(buf, 52, status);
136 _mav_put_uint8_t(buf, 53, height_reference);
137 _mav_put_uint8_t(buf, 54, horizontal_accuracy);
138 _mav_put_uint8_t(buf, 55, vertical_accuracy);
139 _mav_put_uint8_t(buf, 56, barometer_accuracy);
140 _mav_put_uint8_t(buf, 57, speed_accuracy);
141 _mav_put_uint8_t(buf, 58, timestamp_accuracy);
142 _mav_put_uint8_t_array(buf, 32, id_or_mac, 20);
145 mavlink_open_drone_id_location_t packet;
146 packet.latitude = latitude;
147 packet.longitude = longitude;
148 packet.altitude_barometric = altitude_barometric;
149 packet.altitude_geodetic = altitude_geodetic;
150 packet.height = height;
151 packet.timestamp = timestamp;
152 packet.direction = direction;
153 packet.speed_horizontal = speed_horizontal;
154 packet.speed_vertical = speed_vertical;
155 packet.target_system = target_system;
156 packet.target_component = target_component;
157 packet.status = status;
158 packet.height_reference = height_reference;
159 packet.horizontal_accuracy = horizontal_accuracy;
160 packet.vertical_accuracy = vertical_accuracy;
161 packet.barometer_accuracy = barometer_accuracy;
162 packet.speed_accuracy = speed_accuracy;
163 packet.timestamp_accuracy = timestamp_accuracy;
164 mav_array_memcpy(packet.id_or_mac, id_or_mac,
sizeof(uint8_t)*20);
165 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_OPEN_DRONE_ID_LOCATION_LEN);
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200static inline uint16_t mavlink_msg_open_drone_id_location_pack_status(uint8_t system_id, uint8_t component_id, mavlink_status_t *_status, mavlink_message_t* msg,
201 uint8_t target_system, uint8_t target_component,
const uint8_t *id_or_mac, uint8_t status, uint16_t direction, uint16_t speed_horizontal, int16_t speed_vertical, int32_t latitude, int32_t longitude,
float altitude_barometric,
float altitude_geodetic, uint8_t height_reference,
float height, uint8_t horizontal_accuracy, uint8_t vertical_accuracy, uint8_t barometer_accuracy, uint8_t speed_accuracy,
float timestamp, uint8_t timestamp_accuracy)
203#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
205 _mav_put_int32_t(buf, 0, latitude);
206 _mav_put_int32_t(buf, 4, longitude);
207 _mav_put_float(buf, 8, altitude_barometric);
208 _mav_put_float(buf, 12, altitude_geodetic);
209 _mav_put_float(buf, 16, height);
210 _mav_put_float(buf, 20, timestamp);
211 _mav_put_uint16_t(buf, 24, direction);
212 _mav_put_uint16_t(buf, 26, speed_horizontal);
213 _mav_put_int16_t(buf, 28, speed_vertical);
214 _mav_put_uint8_t(buf, 30, target_system);
215 _mav_put_uint8_t(buf, 31, target_component);
216 _mav_put_uint8_t(buf, 52, status);
217 _mav_put_uint8_t(buf, 53, height_reference);
218 _mav_put_uint8_t(buf, 54, horizontal_accuracy);
219 _mav_put_uint8_t(buf, 55, vertical_accuracy);
220 _mav_put_uint8_t(buf, 56, barometer_accuracy);
221 _mav_put_uint8_t(buf, 57, speed_accuracy);
222 _mav_put_uint8_t(buf, 58, timestamp_accuracy);
223 _mav_put_uint8_t_array(buf, 32, id_or_mac, 20);
226 mavlink_open_drone_id_location_t packet;
227 packet.latitude = latitude;
228 packet.longitude = longitude;
229 packet.altitude_barometric = altitude_barometric;
230 packet.altitude_geodetic = altitude_geodetic;
231 packet.height = height;
232 packet.timestamp = timestamp;
233 packet.direction = direction;
234 packet.speed_horizontal = speed_horizontal;
235 packet.speed_vertical = speed_vertical;
236 packet.target_system = target_system;
237 packet.target_component = target_component;
238 packet.status = status;
239 packet.height_reference = height_reference;
240 packet.horizontal_accuracy = horizontal_accuracy;
241 packet.vertical_accuracy = vertical_accuracy;
242 packet.barometer_accuracy = barometer_accuracy;
243 packet.speed_accuracy = speed_accuracy;
244 packet.timestamp_accuracy = timestamp_accuracy;
245 mav_array_memcpy(packet.id_or_mac, id_or_mac,
sizeof(uint8_t)*20);
246 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_OPEN_DRONE_ID_LOCATION_LEN);
251 return mavlink_finalize_message_buffer(msg, system_id, component_id, _status, MAVLINK_MSG_ID_OPEN_DRONE_ID_LOCATION_MIN_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_LOCATION_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_LOCATION_CRC);
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284static inline uint16_t mavlink_msg_open_drone_id_location_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
285 mavlink_message_t* msg,
286 uint8_t target_system,uint8_t target_component,
const uint8_t *id_or_mac,uint8_t status,uint16_t direction,uint16_t speed_horizontal,int16_t speed_vertical,int32_t latitude,int32_t longitude,
float altitude_barometric,
float altitude_geodetic,uint8_t height_reference,
float height,uint8_t horizontal_accuracy,uint8_t vertical_accuracy,uint8_t barometer_accuracy,uint8_t speed_accuracy,
float timestamp,uint8_t timestamp_accuracy)
288#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
290 _mav_put_int32_t(buf, 0, latitude);
291 _mav_put_int32_t(buf, 4, longitude);
292 _mav_put_float(buf, 8, altitude_barometric);
293 _mav_put_float(buf, 12, altitude_geodetic);
294 _mav_put_float(buf, 16, height);
295 _mav_put_float(buf, 20, timestamp);
296 _mav_put_uint16_t(buf, 24, direction);
297 _mav_put_uint16_t(buf, 26, speed_horizontal);
298 _mav_put_int16_t(buf, 28, speed_vertical);
299 _mav_put_uint8_t(buf, 30, target_system);
300 _mav_put_uint8_t(buf, 31, target_component);
301 _mav_put_uint8_t(buf, 52, status);
302 _mav_put_uint8_t(buf, 53, height_reference);
303 _mav_put_uint8_t(buf, 54, horizontal_accuracy);
304 _mav_put_uint8_t(buf, 55, vertical_accuracy);
305 _mav_put_uint8_t(buf, 56, barometer_accuracy);
306 _mav_put_uint8_t(buf, 57, speed_accuracy);
307 _mav_put_uint8_t(buf, 58, timestamp_accuracy);
308 _mav_put_uint8_t_array(buf, 32, id_or_mac, 20);
311 mavlink_open_drone_id_location_t packet;
312 packet.latitude = latitude;
313 packet.longitude = longitude;
314 packet.altitude_barometric = altitude_barometric;
315 packet.altitude_geodetic = altitude_geodetic;
316 packet.height = height;
317 packet.timestamp = timestamp;
318 packet.direction = direction;
319 packet.speed_horizontal = speed_horizontal;
320 packet.speed_vertical = speed_vertical;
321 packet.target_system = target_system;
322 packet.target_component = target_component;
323 packet.status = status;
324 packet.height_reference = height_reference;
325 packet.horizontal_accuracy = horizontal_accuracy;
326 packet.vertical_accuracy = vertical_accuracy;
327 packet.barometer_accuracy = barometer_accuracy;
328 packet.speed_accuracy = speed_accuracy;
329 packet.timestamp_accuracy = timestamp_accuracy;
330 mav_array_memcpy(packet.id_or_mac, id_or_mac,
sizeof(uint8_t)*20);
331 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_OPEN_DRONE_ID_LOCATION_LEN);
339
340
341
342
343
344
345
346static inline uint16_t mavlink_msg_open_drone_id_location_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_open_drone_id_location_t* open_drone_id_location)
348 return mavlink_msg_open_drone_id_location_pack(system_id, component_id, msg, open_drone_id_location->target_system, open_drone_id_location->target_component, open_drone_id_location->id_or_mac, open_drone_id_location->status, open_drone_id_location->direction, open_drone_id_location->speed_horizontal, open_drone_id_location->speed_vertical, open_drone_id_location->latitude, open_drone_id_location->longitude, open_drone_id_location->altitude_barometric, open_drone_id_location->altitude_geodetic, open_drone_id_location->height_reference, open_drone_id_location->height, open_drone_id_location->horizontal_accuracy, open_drone_id_location->vertical_accuracy, open_drone_id_location->barometer_accuracy, open_drone_id_location->speed_accuracy, open_drone_id_location->timestamp, open_drone_id_location->timestamp_accuracy);
352
353
354
355
356
357
358
359
360static inline uint16_t mavlink_msg_open_drone_id_location_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_open_drone_id_location_t* open_drone_id_location)
362 return mavlink_msg_open_drone_id_location_pack_chan(system_id, component_id, chan, msg, open_drone_id_location->target_system, open_drone_id_location->target_component, open_drone_id_location->id_or_mac, open_drone_id_location->status, open_drone_id_location->direction, open_drone_id_location->speed_horizontal, open_drone_id_location->speed_vertical, open_drone_id_location->latitude, open_drone_id_location->longitude, open_drone_id_location->altitude_barometric, open_drone_id_location->altitude_geodetic, open_drone_id_location->height_reference, open_drone_id_location->height, open_drone_id_location->horizontal_accuracy, open_drone_id_location->vertical_accuracy, open_drone_id_location->barometer_accuracy, open_drone_id_location->speed_accuracy, open_drone_id_location->timestamp, open_drone_id_location->timestamp_accuracy);
366
367
368
369
370
371
372
373
374static inline uint16_t mavlink_msg_open_drone_id_location_encode_status(uint8_t system_id, uint8_t component_id, mavlink_status_t* _status, mavlink_message_t* msg,
const mavlink_open_drone_id_location_t* open_drone_id_location)
376 return mavlink_msg_open_drone_id_location_pack_status(system_id, component_id, _status, msg, open_drone_id_location->target_system, open_drone_id_location->target_component, open_drone_id_location->id_or_mac, open_drone_id_location->status, open_drone_id_location->direction, open_drone_id_location->speed_horizontal, open_drone_id_location->speed_vertical, open_drone_id_location->latitude, open_drone_id_location->longitude, open_drone_id_location->altitude_barometric, open_drone_id_location->altitude_geodetic, open_drone_id_location->height_reference, open_drone_id_location->height, open_drone_id_location->horizontal_accuracy, open_drone_id_location->vertical_accuracy, open_drone_id_location->barometer_accuracy, open_drone_id_location->speed_accuracy, open_drone_id_location->timestamp, open_drone_id_location->timestamp_accuracy);
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
405static inline void mavlink_msg_open_drone_id_location_send(mavlink_channel_t chan, uint8_t target_system, uint8_t target_component,
const uint8_t *id_or_mac, uint8_t status, uint16_t direction, uint16_t speed_horizontal, int16_t speed_vertical, int32_t latitude, int32_t longitude,
float altitude_barometric,
float altitude_geodetic, uint8_t height_reference,
float height, uint8_t horizontal_accuracy, uint8_t vertical_accuracy, uint8_t barometer_accuracy, uint8_t speed_accuracy,
float timestamp, uint8_t timestamp_accuracy)
407#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
408 char buf[MAVLINK_MSG_ID_OPEN_DRONE_ID_LOCATION_LEN];
409 _mav_put_int32_t(buf, 0, latitude);
410 _mav_put_int32_t(buf, 4, longitude);
411 _mav_put_float(buf, 8, altitude_barometric);
412 _mav_put_float(buf, 12, altitude_geodetic);
413 _mav_put_float(buf, 16, height);
414 _mav_put_float(buf, 20, timestamp);
415 _mav_put_uint16_t(buf, 24, direction);
416 _mav_put_uint16_t(buf, 26, speed_horizontal);
417 _mav_put_int16_t(buf, 28, speed_vertical);
418 _mav_put_uint8_t(buf, 30, target_system);
419 _mav_put_uint8_t(buf, 31, target_component);
420 _mav_put_uint8_t(buf, 52, status);
421 _mav_put_uint8_t(buf, 53, height_reference);
422 _mav_put_uint8_t(buf, 54, horizontal_accuracy);
423 _mav_put_uint8_t(buf, 55, vertical_accuracy);
424 _mav_put_uint8_t(buf, 56, barometer_accuracy);
425 _mav_put_uint8_t(buf, 57, speed_accuracy);
426 _mav_put_uint8_t(buf, 58, timestamp_accuracy);
427 _mav_put_uint8_t_array(buf, 32, id_or_mac, 20);
428 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_OPEN_DRONE_ID_LOCATION, buf, MAVLINK_MSG_ID_OPEN_DRONE_ID_LOCATION_MIN_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_LOCATION_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_LOCATION_CRC);
430 mavlink_open_drone_id_location_t packet;
431 packet.latitude = latitude;
432 packet.longitude = longitude;
433 packet.altitude_barometric = altitude_barometric;
434 packet.altitude_geodetic = altitude_geodetic;
435 packet.height = height;
436 packet.timestamp = timestamp;
437 packet.direction = direction;
438 packet.speed_horizontal = speed_horizontal;
439 packet.speed_vertical = speed_vertical;
440 packet.target_system = target_system;
441 packet.target_component = target_component;
442 packet.status = status;
443 packet.height_reference = height_reference;
444 packet.horizontal_accuracy = horizontal_accuracy;
445 packet.vertical_accuracy = vertical_accuracy;
446 packet.barometer_accuracy = barometer_accuracy;
447 packet.speed_accuracy = speed_accuracy;
448 packet.timestamp_accuracy = timestamp_accuracy;
449 mav_array_memcpy(packet.id_or_mac, id_or_mac,
sizeof(uint8_t)*20);
450 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_OPEN_DRONE_ID_LOCATION, (
const char *)&packet, MAVLINK_MSG_ID_OPEN_DRONE_ID_LOCATION_MIN_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_LOCATION_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_LOCATION_CRC);
455
456
457
458
459static inline void mavlink_msg_open_drone_id_location_send_struct(mavlink_channel_t chan,
const mavlink_open_drone_id_location_t* open_drone_id_location)
461#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
462 mavlink_msg_open_drone_id_location_send(chan, open_drone_id_location->target_system, open_drone_id_location->target_component, open_drone_id_location->id_or_mac, open_drone_id_location->status, open_drone_id_location->direction, open_drone_id_location->speed_horizontal, open_drone_id_location->speed_vertical, open_drone_id_location->latitude, open_drone_id_location->longitude, open_drone_id_location->altitude_barometric, open_drone_id_location->altitude_geodetic, open_drone_id_location->height_reference, open_drone_id_location->height, open_drone_id_location->horizontal_accuracy, open_drone_id_location->vertical_accuracy, open_drone_id_location->barometer_accuracy, open_drone_id_location->speed_accuracy, open_drone_id_location->timestamp, open_drone_id_location->timestamp_accuracy);
464 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_OPEN_DRONE_ID_LOCATION, (
const char *)open_drone_id_location, MAVLINK_MSG_ID_OPEN_DRONE_ID_LOCATION_MIN_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_LOCATION_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_LOCATION_CRC);
468#if MAVLINK_MSG_ID_OPEN_DRONE_ID_LOCATION_LEN <= MAVLINK_MAX_PAYLOAD_LEN
470
471
472
473
474
475
476static inline void mavlink_msg_open_drone_id_location_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint8_t target_system, uint8_t target_component,
const uint8_t *id_or_mac, uint8_t status, uint16_t direction, uint16_t speed_horizontal, int16_t speed_vertical, int32_t latitude, int32_t longitude,
float altitude_barometric,
float altitude_geodetic, uint8_t height_reference,
float height, uint8_t horizontal_accuracy, uint8_t vertical_accuracy, uint8_t barometer_accuracy, uint8_t speed_accuracy,
float timestamp, uint8_t timestamp_accuracy)
478#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
479 char *buf = (
char *)msgbuf;
480 _mav_put_int32_t(buf, 0, latitude);
481 _mav_put_int32_t(buf, 4, longitude);
482 _mav_put_float(buf, 8, altitude_barometric);
483 _mav_put_float(buf, 12, altitude_geodetic);
484 _mav_put_float(buf, 16, height);
485 _mav_put_float(buf, 20, timestamp);
486 _mav_put_uint16_t(buf, 24, direction);
487 _mav_put_uint16_t(buf, 26, speed_horizontal);
488 _mav_put_int16_t(buf, 28, speed_vertical);
489 _mav_put_uint8_t(buf, 30, target_system);
490 _mav_put_uint8_t(buf, 31, target_component);
491 _mav_put_uint8_t(buf, 52, status);
492 _mav_put_uint8_t(buf, 53, height_reference);
493 _mav_put_uint8_t(buf, 54, horizontal_accuracy);
494 _mav_put_uint8_t(buf, 55, vertical_accuracy);
495 _mav_put_uint8_t(buf, 56, barometer_accuracy);
496 _mav_put_uint8_t(buf, 57, speed_accuracy);
497 _mav_put_uint8_t(buf, 58, timestamp_accuracy);
498 _mav_put_uint8_t_array(buf, 32, id_or_mac, 20);
499 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_OPEN_DRONE_ID_LOCATION, buf, MAVLINK_MSG_ID_OPEN_DRONE_ID_LOCATION_MIN_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_LOCATION_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_LOCATION_CRC);
501 mavlink_open_drone_id_location_t *packet = (mavlink_open_drone_id_location_t *)msgbuf;
502 packet->latitude = latitude;
503 packet->longitude = longitude;
504 packet->altitude_barometric = altitude_barometric;
505 packet->altitude_geodetic = altitude_geodetic;
506 packet->height = height;
507 packet->timestamp = timestamp;
508 packet->direction = direction;
509 packet->speed_horizontal = speed_horizontal;
510 packet->speed_vertical = speed_vertical;
511 packet->target_system = target_system;
512 packet->target_component = target_component;
513 packet->status = status;
514 packet->height_reference = height_reference;
515 packet->horizontal_accuracy = horizontal_accuracy;
516 packet->vertical_accuracy = vertical_accuracy;
517 packet->barometer_accuracy = barometer_accuracy;
518 packet->speed_accuracy = speed_accuracy;
519 packet->timestamp_accuracy = timestamp_accuracy;
520 mav_array_memcpy(packet->id_or_mac, id_or_mac,
sizeof(uint8_t)*20);
521 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_OPEN_DRONE_ID_LOCATION, (
const char *)packet, MAVLINK_MSG_ID_OPEN_DRONE_ID_LOCATION_MIN_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_LOCATION_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_LOCATION_CRC);
532
533
534
535
536static inline uint8_t mavlink_msg_open_drone_id_location_get_target_system(
const mavlink_message_t* msg)
538 return _MAV_RETURN_uint8_t(msg, 30);
542
543
544
545
546static inline uint8_t mavlink_msg_open_drone_id_location_get_target_component(
const mavlink_message_t* msg)
548 return _MAV_RETURN_uint8_t(msg, 31);
552
553
554
555
556static inline uint16_t mavlink_msg_open_drone_id_location_get_id_or_mac(
const mavlink_message_t* msg, uint8_t *id_or_mac)
558 return _MAV_RETURN_uint8_t_array(msg, id_or_mac, 20, 32);
562
563
564
565
566static inline uint8_t mavlink_msg_open_drone_id_location_get_status(
const mavlink_message_t* msg)
568 return _MAV_RETURN_uint8_t(msg, 52);
572
573
574
575
576static inline uint16_t mavlink_msg_open_drone_id_location_get_direction(
const mavlink_message_t* msg)
578 return _MAV_RETURN_uint16_t(msg, 24);
582
583
584
585
586static inline uint16_t mavlink_msg_open_drone_id_location_get_speed_horizontal(
const mavlink_message_t* msg)
588 return _MAV_RETURN_uint16_t(msg, 26);
592
593
594
595
596static inline int16_t mavlink_msg_open_drone_id_location_get_speed_vertical(
const mavlink_message_t* msg)
598 return _MAV_RETURN_int16_t(msg, 28);
602
603
604
605
606static inline int32_t mavlink_msg_open_drone_id_location_get_latitude(
const mavlink_message_t* msg)
608 return _MAV_RETURN_int32_t(msg, 0);
612
613
614
615
616static inline int32_t mavlink_msg_open_drone_id_location_get_longitude(
const mavlink_message_t* msg)
618 return _MAV_RETURN_int32_t(msg, 4);
622
623
624
625
626static inline float mavlink_msg_open_drone_id_location_get_altitude_barometric(
const mavlink_message_t* msg)
628 return _MAV_RETURN_float(msg, 8);
632
633
634
635
636static inline float mavlink_msg_open_drone_id_location_get_altitude_geodetic(
const mavlink_message_t* msg)
638 return _MAV_RETURN_float(msg, 12);
642
643
644
645
646static inline uint8_t mavlink_msg_open_drone_id_location_get_height_reference(
const mavlink_message_t* msg)
648 return _MAV_RETURN_uint8_t(msg, 53);
652
653
654
655
656static inline float mavlink_msg_open_drone_id_location_get_height(
const mavlink_message_t* msg)
658 return _MAV_RETURN_float(msg, 16);
662
663
664
665
666static inline uint8_t mavlink_msg_open_drone_id_location_get_horizontal_accuracy(
const mavlink_message_t* msg)
668 return _MAV_RETURN_uint8_t(msg, 54);
672
673
674
675
676static inline uint8_t mavlink_msg_open_drone_id_location_get_vertical_accuracy(
const mavlink_message_t* msg)
678 return _MAV_RETURN_uint8_t(msg, 55);
682
683
684
685
686static inline uint8_t mavlink_msg_open_drone_id_location_get_barometer_accuracy(
const mavlink_message_t* msg)
688 return _MAV_RETURN_uint8_t(msg, 56);
692
693
694
695
696static inline uint8_t mavlink_msg_open_drone_id_location_get_speed_accuracy(
const mavlink_message_t* msg)
698 return _MAV_RETURN_uint8_t(msg, 57);
702
703
704
705
706static inline float mavlink_msg_open_drone_id_location_get_timestamp(
const mavlink_message_t* msg)
708 return _MAV_RETURN_float(msg, 20);
712
713
714
715
716static inline uint8_t mavlink_msg_open_drone_id_location_get_timestamp_accuracy(
const mavlink_message_t* msg)
718 return _MAV_RETURN_uint8_t(msg, 58);
722
723
724
725
726
727static inline void mavlink_msg_open_drone_id_location_decode(
const mavlink_message_t* msg, mavlink_open_drone_id_location_t* open_drone_id_location)
729#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
730 open_drone_id_location->latitude = mavlink_msg_open_drone_id_location_get_latitude(msg);
731 open_drone_id_location->longitude = mavlink_msg_open_drone_id_location_get_longitude(msg);
732 open_drone_id_location->altitude_barometric = mavlink_msg_open_drone_id_location_get_altitude_barometric(msg);
733 open_drone_id_location->altitude_geodetic = mavlink_msg_open_drone_id_location_get_altitude_geodetic(msg);
734 open_drone_id_location->height = mavlink_msg_open_drone_id_location_get_height(msg);
735 open_drone_id_location->timestamp = mavlink_msg_open_drone_id_location_get_timestamp(msg);
736 open_drone_id_location->direction = mavlink_msg_open_drone_id_location_get_direction(msg);
737 open_drone_id_location->speed_horizontal = mavlink_msg_open_drone_id_location_get_speed_horizontal(msg);
738 open_drone_id_location->speed_vertical = mavlink_msg_open_drone_id_location_get_speed_vertical(msg);
739 open_drone_id_location->target_system = mavlink_msg_open_drone_id_location_get_target_system(msg);
740 open_drone_id_location->target_component = mavlink_msg_open_drone_id_location_get_target_component(msg);
741 mavlink_msg_open_drone_id_location_get_id_or_mac(msg, open_drone_id_location->id_or_mac);
742 open_drone_id_location->status = mavlink_msg_open_drone_id_location_get_status(msg);
743 open_drone_id_location->height_reference = mavlink_msg_open_drone_id_location_get_height_reference(msg);
744 open_drone_id_location->horizontal_accuracy = mavlink_msg_open_drone_id_location_get_horizontal_accuracy(msg);
745 open_drone_id_location->vertical_accuracy = mavlink_msg_open_drone_id_location_get_vertical_accuracy(msg);
746 open_drone_id_location->barometer_accuracy = mavlink_msg_open_drone_id_location_get_barometer_accuracy(msg);
747 open_drone_id_location->speed_accuracy = mavlink_msg_open_drone_id_location_get_speed_accuracy(msg);
748 open_drone_id_location->timestamp_accuracy = mavlink_msg_open_drone_id_location_get_timestamp_accuracy(msg);
750 uint8_t len = msg->len < MAVLINK_MSG_ID_OPEN_DRONE_ID_LOCATION_LEN? msg->len : MAVLINK_MSG_ID_OPEN_DRONE_ID_LOCATION_LEN;
751 memset(open_drone_id_location, 0, MAVLINK_MSG_ID_OPEN_DRONE_ID_LOCATION_LEN);
752 memcpy(open_drone_id_location, _MAV_PAYLOAD(msg), len);
#define MAVLINK_MSG_ID_OPEN_DRONE_ID_LOCATION_LEN
Definition: mavlink_msg_open_drone_id_location.h:29
#define MAVLINK_MSG_ID_OPEN_DRONE_ID_LOCATION
Definition: mavlink_msg_open_drone_id_location.h:4
#define MAVLINK_MSG_ID_OPEN_DRONE_ID_LOCATION_CRC
Definition: mavlink_msg_open_drone_id_location.h:34
#define MAVLINK_MSG_ID_OPEN_DRONE_ID_LOCATION_MIN_LEN
Definition: mavlink_msg_open_drone_id_location.h:30
Definition: mavlink_msg_open_drone_id_location.h:7
uint8_t target_component
Definition: mavlink_msg_open_drone_id_location.h:18
uint8_t horizontal_accuracy
Definition: mavlink_msg_open_drone_id_location.h:22
int16_t speed_vertical
Definition: mavlink_msg_open_drone_id_location.h:16
float altitude_geodetic
Definition: mavlink_msg_open_drone_id_location.h:11
float altitude_barometric
Definition: mavlink_msg_open_drone_id_location.h:10
uint16_t direction
Definition: mavlink_msg_open_drone_id_location.h:14
float height
Definition: mavlink_msg_open_drone_id_location.h:12
uint8_t vertical_accuracy
Definition: mavlink_msg_open_drone_id_location.h:23
uint8_t timestamp_accuracy
Definition: mavlink_msg_open_drone_id_location.h:26
uint16_t speed_horizontal
Definition: mavlink_msg_open_drone_id_location.h:15
uint8_t height_reference
Definition: mavlink_msg_open_drone_id_location.h:21
uint8_t target_system
Definition: mavlink_msg_open_drone_id_location.h:17
int32_t latitude
Definition: mavlink_msg_open_drone_id_location.h:8
uint8_t status
Definition: mavlink_msg_open_drone_id_location.h:20
uint8_t speed_accuracy
Definition: mavlink_msg_open_drone_id_location.h:25
float timestamp
Definition: mavlink_msg_open_drone_id_location.h:13
uint8_t barometer_accuracy
Definition: mavlink_msg_open_drone_id_location.h:24
int32_t longitude
Definition: mavlink_msg_open_drone_id_location.h:9