4#define MAVLINK_MSG_ID_OPEN_DRONE_ID_MESSAGE_PACK 12915
14} mavlink_open_drone_id_message_pack_t;
16#define MAVLINK_MSG_ID_OPEN_DRONE_ID_MESSAGE_PACK_LEN 249
17#define MAVLINK_MSG_ID_OPEN_DRONE_ID_MESSAGE_PACK_MIN_LEN 249
18#define MAVLINK_MSG_ID_12915_LEN 249
19#define MAVLINK_MSG_ID_12915_MIN_LEN 249
21#define MAVLINK_MSG_ID_OPEN_DRONE_ID_MESSAGE_PACK_CRC 94
22#define MAVLINK_MSG_ID_12915_CRC 94
24#define MAVLINK_MSG_OPEN_DRONE_ID_MESSAGE_PACK_FIELD_ID_OR_MAC_LEN 20
25#define MAVLINK_MSG_OPEN_DRONE_ID_MESSAGE_PACK_FIELD_MESSAGES_LEN 225
27#if MAVLINK_COMMAND_24BIT
28#define MAVLINK_MESSAGE_INFO_OPEN_DRONE_ID_MESSAGE_PACK {
30 "OPEN_DRONE_ID_MESSAGE_PACK",
32 { { "target_system", NULL, MAVLINK_TYPE_UINT8_T, 0
, 0
, offsetof(mavlink_open_drone_id_message_pack_t, target_system) },
33 { "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0
, 1
, offsetof(mavlink_open_drone_id_message_pack_t, target_component) },
34 { "id_or_mac", NULL, MAVLINK_TYPE_UINT8_T, 20
, 2
, offsetof(mavlink_open_drone_id_message_pack_t, id_or_mac) },
35 { "single_message_size", NULL, MAVLINK_TYPE_UINT8_T, 0
, 22
, offsetof(mavlink_open_drone_id_message_pack_t, single_message_size) },
36 { "msg_pack_size", NULL, MAVLINK_TYPE_UINT8_T, 0
, 23
, offsetof(mavlink_open_drone_id_message_pack_t, msg_pack_size) },
37 { "messages", NULL, MAVLINK_TYPE_UINT8_T, 225
, 24
, offsetof(mavlink_open_drone_id_message_pack_t, messages) },
39}
41#define MAVLINK_MESSAGE_INFO_OPEN_DRONE_ID_MESSAGE_PACK {
42 "OPEN_DRONE_ID_MESSAGE_PACK",
44 { { "target_system", NULL, MAVLINK_TYPE_UINT8_T, 0
, 0
, offsetof(mavlink_open_drone_id_message_pack_t, target_system) },
45 { "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0
, 1
, offsetof(mavlink_open_drone_id_message_pack_t, target_component) },
46 { "id_or_mac", NULL, MAVLINK_TYPE_UINT8_T, 20
, 2
, offsetof(mavlink_open_drone_id_message_pack_t, id_or_mac) },
47 { "single_message_size", NULL, MAVLINK_TYPE_UINT8_T, 0
, 22
, offsetof(mavlink_open_drone_id_message_pack_t, single_message_size) },
48 { "msg_pack_size", NULL, MAVLINK_TYPE_UINT8_T, 0
, 23
, offsetof(mavlink_open_drone_id_message_pack_t, msg_pack_size) },
49 { "messages", NULL, MAVLINK_TYPE_UINT8_T, 225
, 24
, offsetof(mavlink_open_drone_id_message_pack_t, messages) },
51}
55
56
57
58
59
60
61
62
63
64
65
66
67
68static inline uint16_t mavlink_msg_open_drone_id_message_pack_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
69 uint8_t target_system, uint8_t target_component,
const uint8_t *id_or_mac, uint8_t single_message_size, uint8_t msg_pack_size,
const uint8_t *messages)
71#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
73 _mav_put_uint8_t(buf, 0, target_system);
74 _mav_put_uint8_t(buf, 1, target_component);
75 _mav_put_uint8_t(buf, 22, single_message_size);
76 _mav_put_uint8_t(buf, 23, msg_pack_size);
77 _mav_put_uint8_t_array(buf, 2, id_or_mac, 20);
78 _mav_put_uint8_t_array(buf, 24, messages, 225);
81 mavlink_open_drone_id_message_pack_t packet;
82 packet.target_system = target_system;
83 packet.target_component = target_component;
84 packet.single_message_size = single_message_size;
85 packet.msg_pack_size = msg_pack_size;
86 mav_array_memcpy(packet.id_or_mac, id_or_mac,
sizeof(uint8_t)*20);
87 mav_array_memcpy(packet.messages, messages,
sizeof(uint8_t)*225);
88 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_OPEN_DRONE_ID_MESSAGE_PACK_LEN);
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110static inline uint16_t mavlink_msg_open_drone_id_message_pack_pack_status(uint8_t system_id, uint8_t component_id, mavlink_status_t *_status, mavlink_message_t* msg,
111 uint8_t target_system, uint8_t target_component,
const uint8_t *id_or_mac, uint8_t single_message_size, uint8_t msg_pack_size,
const uint8_t *messages)
113#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
115 _mav_put_uint8_t(buf, 0, target_system);
116 _mav_put_uint8_t(buf, 1, target_component);
117 _mav_put_uint8_t(buf, 22, single_message_size);
118 _mav_put_uint8_t(buf, 23, msg_pack_size);
119 _mav_put_uint8_t_array(buf, 2, id_or_mac, 20);
120 _mav_put_uint8_t_array(buf, 24, messages, 225);
123 mavlink_open_drone_id_message_pack_t packet;
124 packet.target_system = target_system;
125 packet.target_component = target_component;
126 packet.single_message_size = single_message_size;
127 packet.msg_pack_size = msg_pack_size;
128 mav_array_memcpy(packet.id_or_mac, id_or_mac,
sizeof(uint8_t)*20);
129 mav_array_memcpy(packet.messages, messages,
sizeof(uint8_t)*225);
130 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_OPEN_DRONE_ID_MESSAGE_PACK_LEN);
135 return mavlink_finalize_message_buffer(msg, system_id, component_id, _status, MAVLINK_MSG_ID_OPEN_DRONE_ID_MESSAGE_PACK_MIN_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_MESSAGE_PACK_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_MESSAGE_PACK_CRC);
142
143
144
145
146
147
148
149
150
151
152
153
154
155static inline uint16_t mavlink_msg_open_drone_id_message_pack_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
156 mavlink_message_t* msg,
157 uint8_t target_system,uint8_t target_component,
const uint8_t *id_or_mac,uint8_t single_message_size,uint8_t msg_pack_size,
const uint8_t *messages)
159#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
161 _mav_put_uint8_t(buf, 0, target_system);
162 _mav_put_uint8_t(buf, 1, target_component);
163 _mav_put_uint8_t(buf, 22, single_message_size);
164 _mav_put_uint8_t(buf, 23, msg_pack_size);
165 _mav_put_uint8_t_array(buf, 2, id_or_mac, 20);
166 _mav_put_uint8_t_array(buf, 24, messages, 225);
169 mavlink_open_drone_id_message_pack_t packet;
170 packet.target_system = target_system;
171 packet.target_component = target_component;
172 packet.single_message_size = single_message_size;
173 packet.msg_pack_size = msg_pack_size;
174 mav_array_memcpy(packet.id_or_mac, id_or_mac,
sizeof(uint8_t)*20);
175 mav_array_memcpy(packet.messages, messages,
sizeof(uint8_t)*225);
176 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_OPEN_DRONE_ID_MESSAGE_PACK_LEN);
184
185
186
187
188
189
190
191static inline uint16_t mavlink_msg_open_drone_id_message_pack_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_open_drone_id_message_pack_t* open_drone_id_message_pack)
193 return mavlink_msg_open_drone_id_message_pack_pack(system_id, component_id, msg, open_drone_id_message_pack->target_system, open_drone_id_message_pack->target_component, open_drone_id_message_pack->id_or_mac, open_drone_id_message_pack->single_message_size, open_drone_id_message_pack->msg_pack_size, open_drone_id_message_pack->messages);
197
198
199
200
201
202
203
204
205static inline uint16_t mavlink_msg_open_drone_id_message_pack_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_open_drone_id_message_pack_t* open_drone_id_message_pack)
207 return mavlink_msg_open_drone_id_message_pack_pack_chan(system_id, component_id, chan, msg, open_drone_id_message_pack->target_system, open_drone_id_message_pack->target_component, open_drone_id_message_pack->id_or_mac, open_drone_id_message_pack->single_message_size, open_drone_id_message_pack->msg_pack_size, open_drone_id_message_pack->messages);
211
212
213
214
215
216
217
218
219static inline uint16_t mavlink_msg_open_drone_id_message_pack_encode_status(uint8_t system_id, uint8_t component_id, mavlink_status_t* _status, mavlink_message_t* msg,
const mavlink_open_drone_id_message_pack_t* open_drone_id_message_pack)
221 return mavlink_msg_open_drone_id_message_pack_pack_status(system_id, component_id, _status, msg, open_drone_id_message_pack->target_system, open_drone_id_message_pack->target_component, open_drone_id_message_pack->id_or_mac, open_drone_id_message_pack->single_message_size, open_drone_id_message_pack->msg_pack_size, open_drone_id_message_pack->messages);
225
226
227
228
229
230
231
232
233
234
235#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
237static inline void mavlink_msg_open_drone_id_message_pack_send(mavlink_channel_t chan, uint8_t target_system, uint8_t target_component,
const uint8_t *id_or_mac, uint8_t single_message_size, uint8_t msg_pack_size,
const uint8_t *messages)
239#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
240 char buf[MAVLINK_MSG_ID_OPEN_DRONE_ID_MESSAGE_PACK_LEN];
241 _mav_put_uint8_t(buf, 0, target_system);
242 _mav_put_uint8_t(buf, 1, target_component);
243 _mav_put_uint8_t(buf, 22, single_message_size);
244 _mav_put_uint8_t(buf, 23, msg_pack_size);
245 _mav_put_uint8_t_array(buf, 2, id_or_mac, 20);
246 _mav_put_uint8_t_array(buf, 24, messages, 225);
247 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_OPEN_DRONE_ID_MESSAGE_PACK, buf, MAVLINK_MSG_ID_OPEN_DRONE_ID_MESSAGE_PACK_MIN_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_MESSAGE_PACK_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_MESSAGE_PACK_CRC);
249 mavlink_open_drone_id_message_pack_t packet;
250 packet.target_system = target_system;
251 packet.target_component = target_component;
252 packet.single_message_size = single_message_size;
253 packet.msg_pack_size = msg_pack_size;
254 mav_array_memcpy(packet.id_or_mac, id_or_mac,
sizeof(uint8_t)*20);
255 mav_array_memcpy(packet.messages, messages,
sizeof(uint8_t)*225);
256 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_OPEN_DRONE_ID_MESSAGE_PACK, (
const char *)&packet, MAVLINK_MSG_ID_OPEN_DRONE_ID_MESSAGE_PACK_MIN_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_MESSAGE_PACK_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_MESSAGE_PACK_CRC);
261
262
263
264
265static inline void mavlink_msg_open_drone_id_message_pack_send_struct(mavlink_channel_t chan,
const mavlink_open_drone_id_message_pack_t* open_drone_id_message_pack)
267#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
268 mavlink_msg_open_drone_id_message_pack_send(chan, open_drone_id_message_pack->target_system, open_drone_id_message_pack->target_component, open_drone_id_message_pack->id_or_mac, open_drone_id_message_pack->single_message_size, open_drone_id_message_pack->msg_pack_size, open_drone_id_message_pack->messages);
270 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_OPEN_DRONE_ID_MESSAGE_PACK, (
const char *)open_drone_id_message_pack, MAVLINK_MSG_ID_OPEN_DRONE_ID_MESSAGE_PACK_MIN_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_MESSAGE_PACK_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_MESSAGE_PACK_CRC);
274#if MAVLINK_MSG_ID_OPEN_DRONE_ID_MESSAGE_PACK_LEN <= MAVLINK_MAX_PAYLOAD_LEN
276
277
278
279
280
281
282static inline void mavlink_msg_open_drone_id_message_pack_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 single_message_size, uint8_t msg_pack_size,
const uint8_t *messages)
284#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
285 char *buf = (
char *)msgbuf;
286 _mav_put_uint8_t(buf, 0, target_system);
287 _mav_put_uint8_t(buf, 1, target_component);
288 _mav_put_uint8_t(buf, 22, single_message_size);
289 _mav_put_uint8_t(buf, 23, msg_pack_size);
290 _mav_put_uint8_t_array(buf, 2, id_or_mac, 20);
291 _mav_put_uint8_t_array(buf, 24, messages, 225);
292 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_OPEN_DRONE_ID_MESSAGE_PACK, buf, MAVLINK_MSG_ID_OPEN_DRONE_ID_MESSAGE_PACK_MIN_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_MESSAGE_PACK_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_MESSAGE_PACK_CRC);
294 mavlink_open_drone_id_message_pack_t *packet = (mavlink_open_drone_id_message_pack_t *)msgbuf;
295 packet->target_system = target_system;
296 packet->target_component = target_component;
297 packet->single_message_size = single_message_size;
298 packet->msg_pack_size = msg_pack_size;
299 mav_array_memcpy(packet->id_or_mac, id_or_mac,
sizeof(uint8_t)*20);
300 mav_array_memcpy(packet->messages, messages,
sizeof(uint8_t)*225);
301 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_OPEN_DRONE_ID_MESSAGE_PACK, (
const char *)packet, MAVLINK_MSG_ID_OPEN_DRONE_ID_MESSAGE_PACK_MIN_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_MESSAGE_PACK_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_MESSAGE_PACK_CRC);
312
313
314
315
316static inline uint8_t mavlink_msg_open_drone_id_message_pack_get_target_system(
const mavlink_message_t* msg)
318 return _MAV_RETURN_uint8_t(msg, 0);
322
323
324
325
326static inline uint8_t mavlink_msg_open_drone_id_message_pack_get_target_component(
const mavlink_message_t* msg)
328 return _MAV_RETURN_uint8_t(msg, 1);
332
333
334
335
336static inline uint16_t mavlink_msg_open_drone_id_message_pack_get_id_or_mac(
const mavlink_message_t* msg, uint8_t *id_or_mac)
338 return _MAV_RETURN_uint8_t_array(msg, id_or_mac, 20, 2);
342
343
344
345
346static inline uint8_t mavlink_msg_open_drone_id_message_pack_get_single_message_size(
const mavlink_message_t* msg)
348 return _MAV_RETURN_uint8_t(msg, 22);
352
353
354
355
356static inline uint8_t mavlink_msg_open_drone_id_message_pack_get_msg_pack_size(
const mavlink_message_t* msg)
358 return _MAV_RETURN_uint8_t(msg, 23);
362
363
364
365
366static inline uint16_t mavlink_msg_open_drone_id_message_pack_get_messages(
const mavlink_message_t* msg, uint8_t *messages)
368 return _MAV_RETURN_uint8_t_array(msg, messages, 225, 24);
372
373
374
375
376
377static inline void mavlink_msg_open_drone_id_message_pack_decode(
const mavlink_message_t* msg, mavlink_open_drone_id_message_pack_t* open_drone_id_message_pack)
379#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
380 open_drone_id_message_pack->target_system = mavlink_msg_open_drone_id_message_pack_get_target_system(msg);
381 open_drone_id_message_pack->target_component = mavlink_msg_open_drone_id_message_pack_get_target_component(msg);
382 mavlink_msg_open_drone_id_message_pack_get_id_or_mac(msg, open_drone_id_message_pack->id_or_mac);
383 open_drone_id_message_pack->single_message_size = mavlink_msg_open_drone_id_message_pack_get_single_message_size(msg);
384 open_drone_id_message_pack->msg_pack_size = mavlink_msg_open_drone_id_message_pack_get_msg_pack_size(msg);
385 mavlink_msg_open_drone_id_message_pack_get_messages(msg, open_drone_id_message_pack->messages);
387 uint8_t len = msg->len < MAVLINK_MSG_ID_OPEN_DRONE_ID_MESSAGE_PACK_LEN? msg->len : MAVLINK_MSG_ID_OPEN_DRONE_ID_MESSAGE_PACK_LEN;
388 memset(open_drone_id_message_pack, 0, MAVLINK_MSG_ID_OPEN_DRONE_ID_MESSAGE_PACK_LEN);
389 memcpy(open_drone_id_message_pack, _MAV_PAYLOAD(msg), len);
#define MAVLINK_MSG_ID_OPEN_DRONE_ID_MESSAGE_PACK_LEN
Definition: mavlink_msg_open_drone_id_message_pack.h:16
#define MAVLINK_MSG_ID_OPEN_DRONE_ID_MESSAGE_PACK_CRC
Definition: mavlink_msg_open_drone_id_message_pack.h:21
#define MAVLINK_MSG_ID_OPEN_DRONE_ID_MESSAGE_PACK
Definition: mavlink_msg_open_drone_id_message_pack.h:4
#define MAVLINK_MSG_ID_OPEN_DRONE_ID_MESSAGE_PACK_MIN_LEN
Definition: mavlink_msg_open_drone_id_message_pack.h:17
Definition: mavlink_msg_open_drone_id_message_pack.h:7
uint8_t target_component
Definition: mavlink_msg_open_drone_id_message_pack.h:9
uint8_t msg_pack_size
Definition: mavlink_msg_open_drone_id_message_pack.h:12
uint8_t single_message_size
Definition: mavlink_msg_open_drone_id_message_pack.h:11
uint8_t target_system
Definition: mavlink_msg_open_drone_id_message_pack.h:8