4#define MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM 12904
23} mavlink_open_drone_id_system_t;
25#define MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_LEN 54
26#define MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_MIN_LEN 54
27#define MAVLINK_MSG_ID_12904_LEN 54
28#define MAVLINK_MSG_ID_12904_MIN_LEN 54
30#define MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_CRC 77
31#define MAVLINK_MSG_ID_12904_CRC 77
33#define MAVLINK_MSG_OPEN_DRONE_ID_SYSTEM_FIELD_ID_OR_MAC_LEN 20
35#if MAVLINK_COMMAND_24BIT
36#define MAVLINK_MESSAGE_INFO_OPEN_DRONE_ID_SYSTEM {
38 "OPEN_DRONE_ID_SYSTEM",
40 { { "target_system", NULL, MAVLINK_TYPE_UINT8_T, 0
, 28
, offsetof(mavlink_open_drone_id_system_t, target_system) },
41 { "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0
, 29
, offsetof(mavlink_open_drone_id_system_t, target_component) },
42 { "id_or_mac", NULL, MAVLINK_TYPE_UINT8_T, 20
, 30
, offsetof(mavlink_open_drone_id_system_t, id_or_mac) },
43 { "operator_location_type", NULL, MAVLINK_TYPE_UINT8_T, 0
, 50
, offsetof(mavlink_open_drone_id_system_t, operator_location_type) },
44 { "classification_type", NULL, MAVLINK_TYPE_UINT8_T, 0
, 51
, offsetof(mavlink_open_drone_id_system_t, classification_type) },
45 { "operator_latitude", NULL, MAVLINK_TYPE_INT32_T, 0
, 0
, offsetof(mavlink_open_drone_id_system_t, operator_latitude) },
46 { "operator_longitude", NULL, MAVLINK_TYPE_INT32_T, 0
, 4
, offsetof(mavlink_open_drone_id_system_t, operator_longitude) },
47 { "area_count", NULL, MAVLINK_TYPE_UINT16_T, 0
, 24
, offsetof(mavlink_open_drone_id_system_t, area_count) },
48 { "area_radius", NULL, MAVLINK_TYPE_UINT16_T, 0
, 26
, offsetof(mavlink_open_drone_id_system_t, area_radius) },
49 { "area_ceiling", NULL, MAVLINK_TYPE_FLOAT, 0
, 8
, offsetof(mavlink_open_drone_id_system_t, area_ceiling) },
50 { "area_floor", NULL, MAVLINK_TYPE_FLOAT, 0
, 12
, offsetof(mavlink_open_drone_id_system_t, area_floor) },
51 { "category_eu", NULL, MAVLINK_TYPE_UINT8_T, 0
, 52
, offsetof(mavlink_open_drone_id_system_t, category_eu) },
52 { "class_eu", NULL, MAVLINK_TYPE_UINT8_T, 0
, 53
, offsetof(mavlink_open_drone_id_system_t, class_eu) },
53 { "operator_altitude_geo", NULL, MAVLINK_TYPE_FLOAT, 0
, 16
, offsetof(mavlink_open_drone_id_system_t, operator_altitude_geo) },
54 { "timestamp", NULL, MAVLINK_TYPE_UINT32_T, 0
, 20
, offsetof(mavlink_open_drone_id_system_t, timestamp) },
56}
58#define MAVLINK_MESSAGE_INFO_OPEN_DRONE_ID_SYSTEM {
59 "OPEN_DRONE_ID_SYSTEM",
61 { { "target_system", NULL, MAVLINK_TYPE_UINT8_T, 0
, 28
, offsetof(mavlink_open_drone_id_system_t, target_system) },
62 { "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0
, 29
, offsetof(mavlink_open_drone_id_system_t, target_component) },
63 { "id_or_mac", NULL, MAVLINK_TYPE_UINT8_T, 20
, 30
, offsetof(mavlink_open_drone_id_system_t, id_or_mac) },
64 { "operator_location_type", NULL, MAVLINK_TYPE_UINT8_T, 0
, 50
, offsetof(mavlink_open_drone_id_system_t, operator_location_type) },
65 { "classification_type", NULL, MAVLINK_TYPE_UINT8_T, 0
, 51
, offsetof(mavlink_open_drone_id_system_t, classification_type) },
66 { "operator_latitude", NULL, MAVLINK_TYPE_INT32_T, 0
, 0
, offsetof(mavlink_open_drone_id_system_t, operator_latitude) },
67 { "operator_longitude", NULL, MAVLINK_TYPE_INT32_T, 0
, 4
, offsetof(mavlink_open_drone_id_system_t, operator_longitude) },
68 { "area_count", NULL, MAVLINK_TYPE_UINT16_T, 0
, 24
, offsetof(mavlink_open_drone_id_system_t, area_count) },
69 { "area_radius", NULL, MAVLINK_TYPE_UINT16_T, 0
, 26
, offsetof(mavlink_open_drone_id_system_t, area_radius) },
70 { "area_ceiling", NULL, MAVLINK_TYPE_FLOAT, 0
, 8
, offsetof(mavlink_open_drone_id_system_t, area_ceiling) },
71 { "area_floor", NULL, MAVLINK_TYPE_FLOAT, 0
, 12
, offsetof(mavlink_open_drone_id_system_t, area_floor) },
72 { "category_eu", NULL, MAVLINK_TYPE_UINT8_T, 0
, 52
, offsetof(mavlink_open_drone_id_system_t, category_eu) },
73 { "class_eu", NULL, MAVLINK_TYPE_UINT8_T, 0
, 53
, offsetof(mavlink_open_drone_id_system_t, class_eu) },
74 { "operator_altitude_geo", NULL, MAVLINK_TYPE_FLOAT, 0
, 16
, offsetof(mavlink_open_drone_id_system_t, operator_altitude_geo) },
75 { "timestamp", NULL, MAVLINK_TYPE_UINT32_T, 0
, 20
, offsetof(mavlink_open_drone_id_system_t, timestamp) },
77}
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103static inline uint16_t mavlink_msg_open_drone_id_system_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
104 uint8_t target_system, uint8_t target_component,
const uint8_t *id_or_mac, uint8_t operator_location_type, uint8_t classification_type, int32_t operator_latitude, int32_t operator_longitude, uint16_t area_count, uint16_t area_radius,
float area_ceiling,
float area_floor, uint8_t category_eu, uint8_t class_eu,
float operator_altitude_geo, uint32_t timestamp)
106#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
108 _mav_put_int32_t(buf, 0, operator_latitude);
109 _mav_put_int32_t(buf, 4, operator_longitude);
110 _mav_put_float(buf, 8, area_ceiling);
111 _mav_put_float(buf, 12, area_floor);
112 _mav_put_float(buf, 16, operator_altitude_geo);
113 _mav_put_uint32_t(buf, 20, timestamp);
114 _mav_put_uint16_t(buf, 24, area_count);
115 _mav_put_uint16_t(buf, 26, area_radius);
116 _mav_put_uint8_t(buf, 28, target_system);
117 _mav_put_uint8_t(buf, 29, target_component);
118 _mav_put_uint8_t(buf, 50, operator_location_type);
119 _mav_put_uint8_t(buf, 51, classification_type);
120 _mav_put_uint8_t(buf, 52, category_eu);
121 _mav_put_uint8_t(buf, 53, class_eu);
122 _mav_put_uint8_t_array(buf, 30, id_or_mac, 20);
125 mavlink_open_drone_id_system_t packet;
126 packet.operator_latitude = operator_latitude;
127 packet.operator_longitude = operator_longitude;
128 packet.area_ceiling = area_ceiling;
129 packet.area_floor = area_floor;
130 packet.operator_altitude_geo = operator_altitude_geo;
131 packet.timestamp = timestamp;
132 packet.area_count = area_count;
133 packet.area_radius = area_radius;
134 packet.target_system = target_system;
135 packet.target_component = target_component;
136 packet.operator_location_type = operator_location_type;
137 packet.classification_type = classification_type;
138 packet.category_eu = category_eu;
139 packet.class_eu = class_eu;
140 mav_array_memcpy(packet.id_or_mac, id_or_mac,
sizeof(uint8_t)*20);
141 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_LEN);
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172static inline uint16_t mavlink_msg_open_drone_id_system_pack_status(uint8_t system_id, uint8_t component_id, mavlink_status_t *_status, mavlink_message_t* msg,
173 uint8_t target_system, uint8_t target_component,
const uint8_t *id_or_mac, uint8_t operator_location_type, uint8_t classification_type, int32_t operator_latitude, int32_t operator_longitude, uint16_t area_count, uint16_t area_radius,
float area_ceiling,
float area_floor, uint8_t category_eu, uint8_t class_eu,
float operator_altitude_geo, uint32_t timestamp)
175#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
177 _mav_put_int32_t(buf, 0, operator_latitude);
178 _mav_put_int32_t(buf, 4, operator_longitude);
179 _mav_put_float(buf, 8, area_ceiling);
180 _mav_put_float(buf, 12, area_floor);
181 _mav_put_float(buf, 16, operator_altitude_geo);
182 _mav_put_uint32_t(buf, 20, timestamp);
183 _mav_put_uint16_t(buf, 24, area_count);
184 _mav_put_uint16_t(buf, 26, area_radius);
185 _mav_put_uint8_t(buf, 28, target_system);
186 _mav_put_uint8_t(buf, 29, target_component);
187 _mav_put_uint8_t(buf, 50, operator_location_type);
188 _mav_put_uint8_t(buf, 51, classification_type);
189 _mav_put_uint8_t(buf, 52, category_eu);
190 _mav_put_uint8_t(buf, 53, class_eu);
191 _mav_put_uint8_t_array(buf, 30, id_or_mac, 20);
194 mavlink_open_drone_id_system_t packet;
195 packet.operator_latitude = operator_latitude;
196 packet.operator_longitude = operator_longitude;
197 packet.area_ceiling = area_ceiling;
198 packet.area_floor = area_floor;
199 packet.operator_altitude_geo = operator_altitude_geo;
200 packet.timestamp = timestamp;
201 packet.area_count = area_count;
202 packet.area_radius = area_radius;
203 packet.target_system = target_system;
204 packet.target_component = target_component;
205 packet.operator_location_type = operator_location_type;
206 packet.classification_type = classification_type;
207 packet.category_eu = category_eu;
208 packet.class_eu = class_eu;
209 mav_array_memcpy(packet.id_or_mac, id_or_mac,
sizeof(uint8_t)*20);
210 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_LEN);
215 return mavlink_finalize_message_buffer(msg, system_id, component_id, _status, MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_MIN_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_CRC);
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244static inline uint16_t mavlink_msg_open_drone_id_system_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
245 mavlink_message_t* msg,
246 uint8_t target_system,uint8_t target_component,
const uint8_t *id_or_mac,uint8_t operator_location_type,uint8_t classification_type,int32_t operator_latitude,int32_t operator_longitude,uint16_t area_count,uint16_t area_radius,
float area_ceiling,
float area_floor,uint8_t category_eu,uint8_t class_eu,
float operator_altitude_geo,uint32_t timestamp)
248#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
250 _mav_put_int32_t(buf, 0, operator_latitude);
251 _mav_put_int32_t(buf, 4, operator_longitude);
252 _mav_put_float(buf, 8, area_ceiling);
253 _mav_put_float(buf, 12, area_floor);
254 _mav_put_float(buf, 16, operator_altitude_geo);
255 _mav_put_uint32_t(buf, 20, timestamp);
256 _mav_put_uint16_t(buf, 24, area_count);
257 _mav_put_uint16_t(buf, 26, area_radius);
258 _mav_put_uint8_t(buf, 28, target_system);
259 _mav_put_uint8_t(buf, 29, target_component);
260 _mav_put_uint8_t(buf, 50, operator_location_type);
261 _mav_put_uint8_t(buf, 51, classification_type);
262 _mav_put_uint8_t(buf, 52, category_eu);
263 _mav_put_uint8_t(buf, 53, class_eu);
264 _mav_put_uint8_t_array(buf, 30, id_or_mac, 20);
267 mavlink_open_drone_id_system_t packet;
268 packet.operator_latitude = operator_latitude;
269 packet.operator_longitude = operator_longitude;
270 packet.area_ceiling = area_ceiling;
271 packet.area_floor = area_floor;
272 packet.operator_altitude_geo = operator_altitude_geo;
273 packet.timestamp = timestamp;
274 packet.area_count = area_count;
275 packet.area_radius = area_radius;
276 packet.target_system = target_system;
277 packet.target_component = target_component;
278 packet.operator_location_type = operator_location_type;
279 packet.classification_type = classification_type;
280 packet.category_eu = category_eu;
281 packet.class_eu = class_eu;
282 mav_array_memcpy(packet.id_or_mac, id_or_mac,
sizeof(uint8_t)*20);
283 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_LEN);
291
292
293
294
295
296
297
298static inline uint16_t mavlink_msg_open_drone_id_system_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_open_drone_id_system_t* open_drone_id_system)
300 return mavlink_msg_open_drone_id_system_pack(system_id, component_id, msg, open_drone_id_system->target_system, open_drone_id_system->target_component, open_drone_id_system->id_or_mac, open_drone_id_system->operator_location_type, open_drone_id_system->classification_type, open_drone_id_system->operator_latitude, open_drone_id_system->operator_longitude, open_drone_id_system->area_count, open_drone_id_system->area_radius, open_drone_id_system->area_ceiling, open_drone_id_system->area_floor, open_drone_id_system->category_eu, open_drone_id_system->class_eu, open_drone_id_system->operator_altitude_geo, open_drone_id_system->timestamp);
304
305
306
307
308
309
310
311
312static inline uint16_t mavlink_msg_open_drone_id_system_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_open_drone_id_system_t* open_drone_id_system)
314 return mavlink_msg_open_drone_id_system_pack_chan(system_id, component_id, chan, msg, open_drone_id_system->target_system, open_drone_id_system->target_component, open_drone_id_system->id_or_mac, open_drone_id_system->operator_location_type, open_drone_id_system->classification_type, open_drone_id_system->operator_latitude, open_drone_id_system->operator_longitude, open_drone_id_system->area_count, open_drone_id_system->area_radius, open_drone_id_system->area_ceiling, open_drone_id_system->area_floor, open_drone_id_system->category_eu, open_drone_id_system->class_eu, open_drone_id_system->operator_altitude_geo, open_drone_id_system->timestamp);
318
319
320
321
322
323
324
325
326static inline uint16_t mavlink_msg_open_drone_id_system_encode_status(uint8_t system_id, uint8_t component_id, mavlink_status_t* _status, mavlink_message_t* msg,
const mavlink_open_drone_id_system_t* open_drone_id_system)
328 return mavlink_msg_open_drone_id_system_pack_status(system_id, component_id, _status, msg, open_drone_id_system->target_system, open_drone_id_system->target_component, open_drone_id_system->id_or_mac, open_drone_id_system->operator_location_type, open_drone_id_system->classification_type, open_drone_id_system->operator_latitude, open_drone_id_system->operator_longitude, open_drone_id_system->area_count, open_drone_id_system->area_radius, open_drone_id_system->area_ceiling, open_drone_id_system->area_floor, open_drone_id_system->category_eu, open_drone_id_system->class_eu, open_drone_id_system->operator_altitude_geo, open_drone_id_system->timestamp);
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
353static inline void mavlink_msg_open_drone_id_system_send(mavlink_channel_t chan, uint8_t target_system, uint8_t target_component,
const uint8_t *id_or_mac, uint8_t operator_location_type, uint8_t classification_type, int32_t operator_latitude, int32_t operator_longitude, uint16_t area_count, uint16_t area_radius,
float area_ceiling,
float area_floor, uint8_t category_eu, uint8_t class_eu,
float operator_altitude_geo, uint32_t timestamp)
355#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
356 char buf[MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_LEN];
357 _mav_put_int32_t(buf, 0, operator_latitude);
358 _mav_put_int32_t(buf, 4, operator_longitude);
359 _mav_put_float(buf, 8, area_ceiling);
360 _mav_put_float(buf, 12, area_floor);
361 _mav_put_float(buf, 16, operator_altitude_geo);
362 _mav_put_uint32_t(buf, 20, timestamp);
363 _mav_put_uint16_t(buf, 24, area_count);
364 _mav_put_uint16_t(buf, 26, area_radius);
365 _mav_put_uint8_t(buf, 28, target_system);
366 _mav_put_uint8_t(buf, 29, target_component);
367 _mav_put_uint8_t(buf, 50, operator_location_type);
368 _mav_put_uint8_t(buf, 51, classification_type);
369 _mav_put_uint8_t(buf, 52, category_eu);
370 _mav_put_uint8_t(buf, 53, class_eu);
371 _mav_put_uint8_t_array(buf, 30, id_or_mac, 20);
372 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM, buf, MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_MIN_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_CRC);
374 mavlink_open_drone_id_system_t packet;
375 packet.operator_latitude = operator_latitude;
376 packet.operator_longitude = operator_longitude;
377 packet.area_ceiling = area_ceiling;
378 packet.area_floor = area_floor;
379 packet.operator_altitude_geo = operator_altitude_geo;
380 packet.timestamp = timestamp;
381 packet.area_count = area_count;
382 packet.area_radius = area_radius;
383 packet.target_system = target_system;
384 packet.target_component = target_component;
385 packet.operator_location_type = operator_location_type;
386 packet.classification_type = classification_type;
387 packet.category_eu = category_eu;
388 packet.class_eu = class_eu;
389 mav_array_memcpy(packet.id_or_mac, id_or_mac,
sizeof(uint8_t)*20);
390 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM, (
const char *)&packet, MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_MIN_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_CRC);
395
396
397
398
399static inline void mavlink_msg_open_drone_id_system_send_struct(mavlink_channel_t chan,
const mavlink_open_drone_id_system_t* open_drone_id_system)
401#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
402 mavlink_msg_open_drone_id_system_send(chan, open_drone_id_system->target_system, open_drone_id_system->target_component, open_drone_id_system->id_or_mac, open_drone_id_system->operator_location_type, open_drone_id_system->classification_type, open_drone_id_system->operator_latitude, open_drone_id_system->operator_longitude, open_drone_id_system->area_count, open_drone_id_system->area_radius, open_drone_id_system->area_ceiling, open_drone_id_system->area_floor, open_drone_id_system->category_eu, open_drone_id_system->class_eu, open_drone_id_system->operator_altitude_geo, open_drone_id_system->timestamp);
404 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM, (
const char *)open_drone_id_system, MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_MIN_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_CRC);
408#if MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_LEN <= MAVLINK_MAX_PAYLOAD_LEN
410
411
412
413
414
415
416static inline void mavlink_msg_open_drone_id_system_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 operator_location_type, uint8_t classification_type, int32_t operator_latitude, int32_t operator_longitude, uint16_t area_count, uint16_t area_radius,
float area_ceiling,
float area_floor, uint8_t category_eu, uint8_t class_eu,
float operator_altitude_geo, uint32_t timestamp)
418#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
419 char *buf = (
char *)msgbuf;
420 _mav_put_int32_t(buf, 0, operator_latitude);
421 _mav_put_int32_t(buf, 4, operator_longitude);
422 _mav_put_float(buf, 8, area_ceiling);
423 _mav_put_float(buf, 12, area_floor);
424 _mav_put_float(buf, 16, operator_altitude_geo);
425 _mav_put_uint32_t(buf, 20, timestamp);
426 _mav_put_uint16_t(buf, 24, area_count);
427 _mav_put_uint16_t(buf, 26, area_radius);
428 _mav_put_uint8_t(buf, 28, target_system);
429 _mav_put_uint8_t(buf, 29, target_component);
430 _mav_put_uint8_t(buf, 50, operator_location_type);
431 _mav_put_uint8_t(buf, 51, classification_type);
432 _mav_put_uint8_t(buf, 52, category_eu);
433 _mav_put_uint8_t(buf, 53, class_eu);
434 _mav_put_uint8_t_array(buf, 30, id_or_mac, 20);
435 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM, buf, MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_MIN_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_CRC);
437 mavlink_open_drone_id_system_t *packet = (mavlink_open_drone_id_system_t *)msgbuf;
438 packet->operator_latitude = operator_latitude;
439 packet->operator_longitude = operator_longitude;
440 packet->area_ceiling = area_ceiling;
441 packet->area_floor = area_floor;
442 packet->operator_altitude_geo = operator_altitude_geo;
443 packet->timestamp = timestamp;
444 packet->area_count = area_count;
445 packet->area_radius = area_radius;
446 packet->target_system = target_system;
447 packet->target_component = target_component;
448 packet->operator_location_type = operator_location_type;
449 packet->classification_type = classification_type;
450 packet->category_eu = category_eu;
451 packet->class_eu = class_eu;
452 mav_array_memcpy(packet->id_or_mac, id_or_mac,
sizeof(uint8_t)*20);
453 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM, (
const char *)packet, MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_MIN_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_CRC);
464
465
466
467
468static inline uint8_t mavlink_msg_open_drone_id_system_get_target_system(
const mavlink_message_t* msg)
470 return _MAV_RETURN_uint8_t(msg, 28);
474
475
476
477
478static inline uint8_t mavlink_msg_open_drone_id_system_get_target_component(
const mavlink_message_t* msg)
480 return _MAV_RETURN_uint8_t(msg, 29);
484
485
486
487
488static inline uint16_t mavlink_msg_open_drone_id_system_get_id_or_mac(
const mavlink_message_t* msg, uint8_t *id_or_mac)
490 return _MAV_RETURN_uint8_t_array(msg, id_or_mac, 20, 30);
494
495
496
497
498static inline uint8_t mavlink_msg_open_drone_id_system_get_operator_location_type(
const mavlink_message_t* msg)
500 return _MAV_RETURN_uint8_t(msg, 50);
504
505
506
507
508static inline uint8_t mavlink_msg_open_drone_id_system_get_classification_type(
const mavlink_message_t* msg)
510 return _MAV_RETURN_uint8_t(msg, 51);
514
515
516
517
518static inline int32_t mavlink_msg_open_drone_id_system_get_operator_latitude(
const mavlink_message_t* msg)
520 return _MAV_RETURN_int32_t(msg, 0);
524
525
526
527
528static inline int32_t mavlink_msg_open_drone_id_system_get_operator_longitude(
const mavlink_message_t* msg)
530 return _MAV_RETURN_int32_t(msg, 4);
534
535
536
537
538static inline uint16_t mavlink_msg_open_drone_id_system_get_area_count(
const mavlink_message_t* msg)
540 return _MAV_RETURN_uint16_t(msg, 24);
544
545
546
547
548static inline uint16_t mavlink_msg_open_drone_id_system_get_area_radius(
const mavlink_message_t* msg)
550 return _MAV_RETURN_uint16_t(msg, 26);
554
555
556
557
558static inline float mavlink_msg_open_drone_id_system_get_area_ceiling(
const mavlink_message_t* msg)
560 return _MAV_RETURN_float(msg, 8);
564
565
566
567
568static inline float mavlink_msg_open_drone_id_system_get_area_floor(
const mavlink_message_t* msg)
570 return _MAV_RETURN_float(msg, 12);
574
575
576
577
578static inline uint8_t mavlink_msg_open_drone_id_system_get_category_eu(
const mavlink_message_t* msg)
580 return _MAV_RETURN_uint8_t(msg, 52);
584
585
586
587
588static inline uint8_t mavlink_msg_open_drone_id_system_get_class_eu(
const mavlink_message_t* msg)
590 return _MAV_RETURN_uint8_t(msg, 53);
594
595
596
597
598static inline float mavlink_msg_open_drone_id_system_get_operator_altitude_geo(
const mavlink_message_t* msg)
600 return _MAV_RETURN_float(msg, 16);
604
605
606
607
608static inline uint32_t mavlink_msg_open_drone_id_system_get_timestamp(
const mavlink_message_t* msg)
610 return _MAV_RETURN_uint32_t(msg, 20);
614
615
616
617
618
619static inline void mavlink_msg_open_drone_id_system_decode(
const mavlink_message_t* msg, mavlink_open_drone_id_system_t* open_drone_id_system)
621#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
622 open_drone_id_system->operator_latitude = mavlink_msg_open_drone_id_system_get_operator_latitude(msg);
623 open_drone_id_system->operator_longitude = mavlink_msg_open_drone_id_system_get_operator_longitude(msg);
624 open_drone_id_system->area_ceiling = mavlink_msg_open_drone_id_system_get_area_ceiling(msg);
625 open_drone_id_system->area_floor = mavlink_msg_open_drone_id_system_get_area_floor(msg);
626 open_drone_id_system->operator_altitude_geo = mavlink_msg_open_drone_id_system_get_operator_altitude_geo(msg);
627 open_drone_id_system->timestamp = mavlink_msg_open_drone_id_system_get_timestamp(msg);
628 open_drone_id_system->area_count = mavlink_msg_open_drone_id_system_get_area_count(msg);
629 open_drone_id_system->area_radius = mavlink_msg_open_drone_id_system_get_area_radius(msg);
630 open_drone_id_system->target_system = mavlink_msg_open_drone_id_system_get_target_system(msg);
631 open_drone_id_system->target_component = mavlink_msg_open_drone_id_system_get_target_component(msg);
632 mavlink_msg_open_drone_id_system_get_id_or_mac(msg, open_drone_id_system->id_or_mac);
633 open_drone_id_system->operator_location_type = mavlink_msg_open_drone_id_system_get_operator_location_type(msg);
634 open_drone_id_system->classification_type = mavlink_msg_open_drone_id_system_get_classification_type(msg);
635 open_drone_id_system->category_eu = mavlink_msg_open_drone_id_system_get_category_eu(msg);
636 open_drone_id_system->class_eu = mavlink_msg_open_drone_id_system_get_class_eu(msg);
638 uint8_t len = msg->len < MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_LEN? msg->len : MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_LEN;
639 memset(open_drone_id_system, 0, MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_LEN);
640 memcpy(open_drone_id_system, _MAV_PAYLOAD(msg), len);
#define MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM
Definition: mavlink_msg_open_drone_id_system.h:4
#define MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_LEN
Definition: mavlink_msg_open_drone_id_system.h:25
#define MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_MIN_LEN
Definition: mavlink_msg_open_drone_id_system.h:26
#define MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_CRC
Definition: mavlink_msg_open_drone_id_system.h:30
Definition: mavlink_msg_open_drone_id_system.h:7
uint8_t target_component
Definition: mavlink_msg_open_drone_id_system.h:17
float area_floor
Definition: mavlink_msg_open_drone_id_system.h:11
float area_ceiling
Definition: mavlink_msg_open_drone_id_system.h:10
float operator_altitude_geo
Definition: mavlink_msg_open_drone_id_system.h:12
uint8_t category_eu
Definition: mavlink_msg_open_drone_id_system.h:21
int32_t operator_longitude
Definition: mavlink_msg_open_drone_id_system.h:9
uint8_t class_eu
Definition: mavlink_msg_open_drone_id_system.h:22
uint8_t operator_location_type
Definition: mavlink_msg_open_drone_id_system.h:19
uint16_t area_count
Definition: mavlink_msg_open_drone_id_system.h:14
uint32_t timestamp
Definition: mavlink_msg_open_drone_id_system.h:13
uint8_t classification_type
Definition: mavlink_msg_open_drone_id_system.h:20
uint8_t target_system
Definition: mavlink_msg_open_drone_id_system.h:16
uint16_t area_radius
Definition: mavlink_msg_open_drone_id_system.h:15
int32_t operator_latitude
Definition: mavlink_msg_open_drone_id_system.h:8