4#define MAVLINK_MSG_ID_OPEN_DRONE_ID_OPERATOR_ID 12905
13} mavlink_open_drone_id_operator_id_t;
15#define MAVLINK_MSG_ID_OPEN_DRONE_ID_OPERATOR_ID_LEN 43
16#define MAVLINK_MSG_ID_OPEN_DRONE_ID_OPERATOR_ID_MIN_LEN 43
17#define MAVLINK_MSG_ID_12905_LEN 43
18#define MAVLINK_MSG_ID_12905_MIN_LEN 43
20#define MAVLINK_MSG_ID_OPEN_DRONE_ID_OPERATOR_ID_CRC 49
21#define MAVLINK_MSG_ID_12905_CRC 49
23#define MAVLINK_MSG_OPEN_DRONE_ID_OPERATOR_ID_FIELD_ID_OR_MAC_LEN 20
24#define MAVLINK_MSG_OPEN_DRONE_ID_OPERATOR_ID_FIELD_OPERATOR_ID_LEN 20
26#if MAVLINK_COMMAND_24BIT
27#define MAVLINK_MESSAGE_INFO_OPEN_DRONE_ID_OPERATOR_ID {
29 "OPEN_DRONE_ID_OPERATOR_ID",
31 { { "target_system", NULL, MAVLINK_TYPE_UINT8_T, 0
, 0
, offsetof(mavlink_open_drone_id_operator_id_t, target_system) },
32 { "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0
, 1
, offsetof(mavlink_open_drone_id_operator_id_t, target_component) },
33 { "id_or_mac", NULL, MAVLINK_TYPE_UINT8_T, 20
, 2
, offsetof(mavlink_open_drone_id_operator_id_t, id_or_mac) },
34 { "operator_id_type", NULL, MAVLINK_TYPE_UINT8_T, 0
, 22
, offsetof(mavlink_open_drone_id_operator_id_t, operator_id_type) },
35 { "operator_id", NULL, MAVLINK_TYPE_CHAR, 20
, 23
, offsetof(mavlink_open_drone_id_operator_id_t, operator_id) },
37}
39#define MAVLINK_MESSAGE_INFO_OPEN_DRONE_ID_OPERATOR_ID {
40 "OPEN_DRONE_ID_OPERATOR_ID",
42 { { "target_system", NULL, MAVLINK_TYPE_UINT8_T, 0
, 0
, offsetof(mavlink_open_drone_id_operator_id_t, target_system) },
43 { "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0
, 1
, offsetof(mavlink_open_drone_id_operator_id_t, target_component) },
44 { "id_or_mac", NULL, MAVLINK_TYPE_UINT8_T, 20
, 2
, offsetof(mavlink_open_drone_id_operator_id_t, id_or_mac) },
45 { "operator_id_type", NULL, MAVLINK_TYPE_UINT8_T, 0
, 22
, offsetof(mavlink_open_drone_id_operator_id_t, operator_id_type) },
46 { "operator_id", NULL, MAVLINK_TYPE_CHAR, 20
, 23
, offsetof(mavlink_open_drone_id_operator_id_t, operator_id) },
48}
52
53
54
55
56
57
58
59
60
61
62
63
64static inline uint16_t mavlink_msg_open_drone_id_operator_id_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
65 uint8_t target_system, uint8_t target_component,
const uint8_t *id_or_mac, uint8_t operator_id_type,
const char *operator_id)
67#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
69 _mav_put_uint8_t(buf, 0, target_system);
70 _mav_put_uint8_t(buf, 1, target_component);
71 _mav_put_uint8_t(buf, 22, operator_id_type);
72 _mav_put_uint8_t_array(buf, 2, id_or_mac, 20);
73 _mav_put_char_array(buf, 23, operator_id, 20);
76 mavlink_open_drone_id_operator_id_t packet;
77 packet.target_system = target_system;
78 packet.target_component = target_component;
79 packet.operator_id_type = operator_id_type;
80 mav_array_memcpy(packet.id_or_mac, id_or_mac,
sizeof(uint8_t)*20);
81 mav_array_memcpy(packet.operator_id, operator_id,
sizeof(
char)*20);
82 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_OPEN_DRONE_ID_OPERATOR_ID_LEN);
90
91
92
93
94
95
96
97
98
99
100
101
102
103static inline uint16_t mavlink_msg_open_drone_id_operator_id_pack_status(uint8_t system_id, uint8_t component_id, mavlink_status_t *_status, mavlink_message_t* msg,
104 uint8_t target_system, uint8_t target_component,
const uint8_t *id_or_mac, uint8_t operator_id_type,
const char *operator_id)
106#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
108 _mav_put_uint8_t(buf, 0, target_system);
109 _mav_put_uint8_t(buf, 1, target_component);
110 _mav_put_uint8_t(buf, 22, operator_id_type);
111 _mav_put_uint8_t_array(buf, 2, id_or_mac, 20);
112 _mav_put_char_array(buf, 23, operator_id, 20);
115 mavlink_open_drone_id_operator_id_t packet;
116 packet.target_system = target_system;
117 packet.target_component = target_component;
118 packet.operator_id_type = operator_id_type;
119 mav_array_memcpy(packet.id_or_mac, id_or_mac,
sizeof(uint8_t)*20);
120 mav_array_memcpy(packet.operator_id, operator_id,
sizeof(
char)*20);
121 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_OPEN_DRONE_ID_OPERATOR_ID_LEN);
126 return mavlink_finalize_message_buffer(msg, system_id, component_id, _status, MAVLINK_MSG_ID_OPEN_DRONE_ID_OPERATOR_ID_MIN_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_OPERATOR_ID_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_OPERATOR_ID_CRC);
133
134
135
136
137
138
139
140
141
142
143
144
145static inline uint16_t mavlink_msg_open_drone_id_operator_id_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
146 mavlink_message_t* msg,
147 uint8_t target_system,uint8_t target_component,
const uint8_t *id_or_mac,uint8_t operator_id_type,
const char *operator_id)
149#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
151 _mav_put_uint8_t(buf, 0, target_system);
152 _mav_put_uint8_t(buf, 1, target_component);
153 _mav_put_uint8_t(buf, 22, operator_id_type);
154 _mav_put_uint8_t_array(buf, 2, id_or_mac, 20);
155 _mav_put_char_array(buf, 23, operator_id, 20);
158 mavlink_open_drone_id_operator_id_t packet;
159 packet.target_system = target_system;
160 packet.target_component = target_component;
161 packet.operator_id_type = operator_id_type;
162 mav_array_memcpy(packet.id_or_mac, id_or_mac,
sizeof(uint8_t)*20);
163 mav_array_memcpy(packet.operator_id, operator_id,
sizeof(
char)*20);
164 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_OPEN_DRONE_ID_OPERATOR_ID_LEN);
172
173
174
175
176
177
178
179static inline uint16_t mavlink_msg_open_drone_id_operator_id_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_open_drone_id_operator_id_t* open_drone_id_operator_id)
181 return mavlink_msg_open_drone_id_operator_id_pack(system_id, component_id, msg, open_drone_id_operator_id->target_system, open_drone_id_operator_id->target_component, open_drone_id_operator_id->id_or_mac, open_drone_id_operator_id->operator_id_type, open_drone_id_operator_id->operator_id);
185
186
187
188
189
190
191
192
193static inline uint16_t mavlink_msg_open_drone_id_operator_id_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_open_drone_id_operator_id_t* open_drone_id_operator_id)
195 return mavlink_msg_open_drone_id_operator_id_pack_chan(system_id, component_id, chan, msg, open_drone_id_operator_id->target_system, open_drone_id_operator_id->target_component, open_drone_id_operator_id->id_or_mac, open_drone_id_operator_id->operator_id_type, open_drone_id_operator_id->operator_id);
199
200
201
202
203
204
205
206
207static inline uint16_t mavlink_msg_open_drone_id_operator_id_encode_status(uint8_t system_id, uint8_t component_id, mavlink_status_t* _status, mavlink_message_t* msg,
const mavlink_open_drone_id_operator_id_t* open_drone_id_operator_id)
209 return mavlink_msg_open_drone_id_operator_id_pack_status(system_id, component_id, _status, msg, open_drone_id_operator_id->target_system, open_drone_id_operator_id->target_component, open_drone_id_operator_id->id_or_mac, open_drone_id_operator_id->operator_id_type, open_drone_id_operator_id->operator_id);
213
214
215
216
217
218
219
220
221
222#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
224static inline void mavlink_msg_open_drone_id_operator_id_send(mavlink_channel_t chan, uint8_t target_system, uint8_t target_component,
const uint8_t *id_or_mac, uint8_t operator_id_type,
const char *operator_id)
226#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
227 char buf[MAVLINK_MSG_ID_OPEN_DRONE_ID_OPERATOR_ID_LEN];
228 _mav_put_uint8_t(buf, 0, target_system);
229 _mav_put_uint8_t(buf, 1, target_component);
230 _mav_put_uint8_t(buf, 22, operator_id_type);
231 _mav_put_uint8_t_array(buf, 2, id_or_mac, 20);
232 _mav_put_char_array(buf, 23, operator_id, 20);
233 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_OPEN_DRONE_ID_OPERATOR_ID, buf, MAVLINK_MSG_ID_OPEN_DRONE_ID_OPERATOR_ID_MIN_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_OPERATOR_ID_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_OPERATOR_ID_CRC);
235 mavlink_open_drone_id_operator_id_t packet;
236 packet.target_system = target_system;
237 packet.target_component = target_component;
238 packet.operator_id_type = operator_id_type;
239 mav_array_memcpy(packet.id_or_mac, id_or_mac,
sizeof(uint8_t)*20);
240 mav_array_memcpy(packet.operator_id, operator_id,
sizeof(
char)*20);
241 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_OPEN_DRONE_ID_OPERATOR_ID, (
const char *)&packet, MAVLINK_MSG_ID_OPEN_DRONE_ID_OPERATOR_ID_MIN_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_OPERATOR_ID_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_OPERATOR_ID_CRC);
246
247
248
249
250static inline void mavlink_msg_open_drone_id_operator_id_send_struct(mavlink_channel_t chan,
const mavlink_open_drone_id_operator_id_t* open_drone_id_operator_id)
252#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
253 mavlink_msg_open_drone_id_operator_id_send(chan, open_drone_id_operator_id->target_system, open_drone_id_operator_id->target_component, open_drone_id_operator_id->id_or_mac, open_drone_id_operator_id->operator_id_type, open_drone_id_operator_id->operator_id);
255 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_OPEN_DRONE_ID_OPERATOR_ID, (
const char *)open_drone_id_operator_id, MAVLINK_MSG_ID_OPEN_DRONE_ID_OPERATOR_ID_MIN_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_OPERATOR_ID_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_OPERATOR_ID_CRC);
259#if MAVLINK_MSG_ID_OPEN_DRONE_ID_OPERATOR_ID_LEN <= MAVLINK_MAX_PAYLOAD_LEN
261
262
263
264
265
266
267static inline void mavlink_msg_open_drone_id_operator_id_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_id_type,
const char *operator_id)
269#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
270 char *buf = (
char *)msgbuf;
271 _mav_put_uint8_t(buf, 0, target_system);
272 _mav_put_uint8_t(buf, 1, target_component);
273 _mav_put_uint8_t(buf, 22, operator_id_type);
274 _mav_put_uint8_t_array(buf, 2, id_or_mac, 20);
275 _mav_put_char_array(buf, 23, operator_id, 20);
276 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_OPEN_DRONE_ID_OPERATOR_ID, buf, MAVLINK_MSG_ID_OPEN_DRONE_ID_OPERATOR_ID_MIN_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_OPERATOR_ID_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_OPERATOR_ID_CRC);
278 mavlink_open_drone_id_operator_id_t *packet = (mavlink_open_drone_id_operator_id_t *)msgbuf;
279 packet->target_system = target_system;
280 packet->target_component = target_component;
281 packet->operator_id_type = operator_id_type;
282 mav_array_memcpy(packet->id_or_mac, id_or_mac,
sizeof(uint8_t)*20);
283 mav_array_memcpy(packet->operator_id, operator_id,
sizeof(
char)*20);
284 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_OPEN_DRONE_ID_OPERATOR_ID, (
const char *)packet, MAVLINK_MSG_ID_OPEN_DRONE_ID_OPERATOR_ID_MIN_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_OPERATOR_ID_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_OPERATOR_ID_CRC);
295
296
297
298
299static inline uint8_t mavlink_msg_open_drone_id_operator_id_get_target_system(
const mavlink_message_t* msg)
301 return _MAV_RETURN_uint8_t(msg, 0);
305
306
307
308
309static inline uint8_t mavlink_msg_open_drone_id_operator_id_get_target_component(
const mavlink_message_t* msg)
311 return _MAV_RETURN_uint8_t(msg, 1);
315
316
317
318
319static inline uint16_t mavlink_msg_open_drone_id_operator_id_get_id_or_mac(
const mavlink_message_t* msg, uint8_t *id_or_mac)
321 return _MAV_RETURN_uint8_t_array(msg, id_or_mac, 20, 2);
325
326
327
328
329static inline uint8_t mavlink_msg_open_drone_id_operator_id_get_operator_id_type(
const mavlink_message_t* msg)
331 return _MAV_RETURN_uint8_t(msg, 22);
335
336
337
338
339static inline uint16_t mavlink_msg_open_drone_id_operator_id_get_operator_id(
const mavlink_message_t* msg,
char *operator_id)
341 return _MAV_RETURN_char_array(msg, operator_id, 20, 23);
345
346
347
348
349
350static inline void mavlink_msg_open_drone_id_operator_id_decode(
const mavlink_message_t* msg, mavlink_open_drone_id_operator_id_t* open_drone_id_operator_id)
352#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
353 open_drone_id_operator_id->target_system = mavlink_msg_open_drone_id_operator_id_get_target_system(msg);
354 open_drone_id_operator_id->target_component = mavlink_msg_open_drone_id_operator_id_get_target_component(msg);
355 mavlink_msg_open_drone_id_operator_id_get_id_or_mac(msg, open_drone_id_operator_id->id_or_mac);
356 open_drone_id_operator_id->operator_id_type = mavlink_msg_open_drone_id_operator_id_get_operator_id_type(msg);
357 mavlink_msg_open_drone_id_operator_id_get_operator_id(msg, open_drone_id_operator_id->operator_id);
359 uint8_t len = msg->len < MAVLINK_MSG_ID_OPEN_DRONE_ID_OPERATOR_ID_LEN? msg->len : MAVLINK_MSG_ID_OPEN_DRONE_ID_OPERATOR_ID_LEN;
360 memset(open_drone_id_operator_id, 0, MAVLINK_MSG_ID_OPEN_DRONE_ID_OPERATOR_ID_LEN);
361 memcpy(open_drone_id_operator_id, _MAV_PAYLOAD(msg), len);
#define MAVLINK_MSG_ID_OPEN_DRONE_ID_OPERATOR_ID_CRC
Definition: mavlink_msg_open_drone_id_operator_id.h:20
#define MAVLINK_MSG_ID_OPEN_DRONE_ID_OPERATOR_ID_LEN
Definition: mavlink_msg_open_drone_id_operator_id.h:15
#define MAVLINK_MSG_ID_OPEN_DRONE_ID_OPERATOR_ID
Definition: mavlink_msg_open_drone_id_operator_id.h:4
#define MAVLINK_MSG_ID_OPEN_DRONE_ID_OPERATOR_ID_MIN_LEN
Definition: mavlink_msg_open_drone_id_operator_id.h:16
Definition: mavlink_msg_open_drone_id_operator_id.h:7
uint8_t target_component
Definition: mavlink_msg_open_drone_id_operator_id.h:9
uint8_t operator_id_type
Definition: mavlink_msg_open_drone_id_operator_id.h:11
uint8_t target_system
Definition: mavlink_msg_open_drone_id_operator_id.h:8
char operator_id[20]
Definition: mavlink_msg_open_drone_id_operator_id.h:12