Arduino Mavlink
Loading...
Searching...
No Matches
mavlink_msg_open_drone_id_system_update.h
Go to the documentation of this file.
1#pragma once
2// MESSAGE OPEN_DRONE_ID_SYSTEM_UPDATE PACKING
3
4#define MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_UPDATE 12919
5
6
8 int32_t operator_latitude; /*< [degE7] Latitude of the operator. If unknown: 0 (both Lat/Lon).*/
9 int32_t operator_longitude; /*< [degE7] Longitude of the operator. If unknown: 0 (both Lat/Lon).*/
10 float operator_altitude_geo; /*< [m] Geodetic altitude of the operator relative to WGS84. If unknown: -1000 m.*/
11 uint32_t timestamp; /*< [s] 32 bit Unix Timestamp in seconds since 00:00:00 01/01/2019.*/
12 uint8_t target_system; /*< System ID (0 for broadcast).*/
13 uint8_t target_component; /*< Component ID (0 for broadcast).*/
14} mavlink_open_drone_id_system_update_t;
15
16#define MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_UPDATE_LEN 18
17#define MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_UPDATE_MIN_LEN 18
18#define MAVLINK_MSG_ID_12919_LEN 18
19#define MAVLINK_MSG_ID_12919_MIN_LEN 18
20
21#define MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_UPDATE_CRC 7
22#define MAVLINK_MSG_ID_12919_CRC 7
23
24
25
26#if MAVLINK_COMMAND_24BIT
27#define MAVLINK_MESSAGE_INFO_OPEN_DRONE_ID_SYSTEM_UPDATE {
28 12919,
29 "OPEN_DRONE_ID_SYSTEM_UPDATE",
30 6,
31 { { "target_system", NULL, MAVLINK_TYPE_UINT8_T, 0, 16, offsetof(mavlink_open_drone_id_system_update_t, target_system) },
32 { "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0, 17, offsetof(mavlink_open_drone_id_system_update_t, target_component) },
33 { "operator_latitude", NULL, MAVLINK_TYPE_INT32_T, 0, 0, offsetof(mavlink_open_drone_id_system_update_t, operator_latitude) },
34 { "operator_longitude", NULL, MAVLINK_TYPE_INT32_T, 0, 4, offsetof(mavlink_open_drone_id_system_update_t, operator_longitude) },
35 { "operator_altitude_geo", NULL, MAVLINK_TYPE_FLOAT, 0, 8, offsetof(mavlink_open_drone_id_system_update_t, operator_altitude_geo) },
36 { "timestamp", NULL, MAVLINK_TYPE_UINT32_T, 0, 12, offsetof(mavlink_open_drone_id_system_update_t, timestamp) },
37 } \
38}
39#else
40#define MAVLINK_MESSAGE_INFO_OPEN_DRONE_ID_SYSTEM_UPDATE {
41 "OPEN_DRONE_ID_SYSTEM_UPDATE",
42 6,
43 { { "target_system", NULL, MAVLINK_TYPE_UINT8_T, 0, 16, offsetof(mavlink_open_drone_id_system_update_t, target_system) },
44 { "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0, 17, offsetof(mavlink_open_drone_id_system_update_t, target_component) },
45 { "operator_latitude", NULL, MAVLINK_TYPE_INT32_T, 0, 0, offsetof(mavlink_open_drone_id_system_update_t, operator_latitude) },
46 { "operator_longitude", NULL, MAVLINK_TYPE_INT32_T, 0, 4, offsetof(mavlink_open_drone_id_system_update_t, operator_longitude) },
47 { "operator_altitude_geo", NULL, MAVLINK_TYPE_FLOAT, 0, 8, offsetof(mavlink_open_drone_id_system_update_t, operator_altitude_geo) },
48 { "timestamp", NULL, MAVLINK_TYPE_UINT32_T, 0, 12, offsetof(mavlink_open_drone_id_system_update_t, timestamp) },
49 } \
50}
51#endif
52
53/**
54 * @brief Pack a open_drone_id_system_update message
55 * @param system_id ID of this system
56 * @param component_id ID of this component (e.g. 200 for IMU)
57 * @param msg The MAVLink message to compress the data into
58 *
59 * @param target_system System ID (0 for broadcast).
60 * @param target_component Component ID (0 for broadcast).
61 * @param operator_latitude [degE7] Latitude of the operator. If unknown: 0 (both Lat/Lon).
62 * @param operator_longitude [degE7] Longitude of the operator. If unknown: 0 (both Lat/Lon).
63 * @param operator_altitude_geo [m] Geodetic altitude of the operator relative to WGS84. If unknown: -1000 m.
64 * @param timestamp [s] 32 bit Unix Timestamp in seconds since 00:00:00 01/01/2019.
65 * @return length of the message in bytes (excluding serial stream start sign)
66 */
67static inline uint16_t mavlink_msg_open_drone_id_system_update_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
68 uint8_t target_system, uint8_t target_component, int32_t operator_latitude, int32_t operator_longitude, float operator_altitude_geo, uint32_t timestamp)
69{
70#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
72 _mav_put_int32_t(buf, 0, operator_latitude);
73 _mav_put_int32_t(buf, 4, operator_longitude);
74 _mav_put_float(buf, 8, operator_altitude_geo);
75 _mav_put_uint32_t(buf, 12, timestamp);
76 _mav_put_uint8_t(buf, 16, target_system);
77 _mav_put_uint8_t(buf, 17, target_component);
78
79 memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_UPDATE_LEN);
80#else
81 mavlink_open_drone_id_system_update_t packet;
82 packet.operator_latitude = operator_latitude;
83 packet.operator_longitude = operator_longitude;
84 packet.operator_altitude_geo = operator_altitude_geo;
85 packet.timestamp = timestamp;
86 packet.target_system = target_system;
87 packet.target_component = target_component;
88
89 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_UPDATE_LEN);
90#endif
91
94}
95
96/**
97 * @brief Pack a open_drone_id_system_update message
98 * @param system_id ID of this system
99 * @param component_id ID of this component (e.g. 200 for IMU)
100 * @param status MAVLink status structure
101 * @param msg The MAVLink message to compress the data into
102 *
103 * @param target_system System ID (0 for broadcast).
104 * @param target_component Component ID (0 for broadcast).
105 * @param operator_latitude [degE7] Latitude of the operator. If unknown: 0 (both Lat/Lon).
106 * @param operator_longitude [degE7] Longitude of the operator. If unknown: 0 (both Lat/Lon).
107 * @param operator_altitude_geo [m] Geodetic altitude of the operator relative to WGS84. If unknown: -1000 m.
108 * @param timestamp [s] 32 bit Unix Timestamp in seconds since 00:00:00 01/01/2019.
109 * @return length of the message in bytes (excluding serial stream start sign)
110 */
111static inline uint16_t mavlink_msg_open_drone_id_system_update_pack_status(uint8_t system_id, uint8_t component_id, mavlink_status_t *_status, mavlink_message_t* msg,
112 uint8_t target_system, uint8_t target_component, int32_t operator_latitude, int32_t operator_longitude, float operator_altitude_geo, uint32_t timestamp)
113{
114#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
116 _mav_put_int32_t(buf, 0, operator_latitude);
117 _mav_put_int32_t(buf, 4, operator_longitude);
118 _mav_put_float(buf, 8, operator_altitude_geo);
119 _mav_put_uint32_t(buf, 12, timestamp);
120 _mav_put_uint8_t(buf, 16, target_system);
121 _mav_put_uint8_t(buf, 17, target_component);
122
123 memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_UPDATE_LEN);
124#else
125 mavlink_open_drone_id_system_update_t packet;
126 packet.operator_latitude = operator_latitude;
127 packet.operator_longitude = operator_longitude;
128 packet.operator_altitude_geo = operator_altitude_geo;
129 packet.timestamp = timestamp;
130 packet.target_system = target_system;
131 packet.target_component = target_component;
132
133 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_UPDATE_LEN);
134#endif
135
137#if MAVLINK_CRC_EXTRA
138 return mavlink_finalize_message_buffer(msg, system_id, component_id, _status, MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_UPDATE_MIN_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_UPDATE_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_UPDATE_CRC);
139#else
140 return mavlink_finalize_message_buffer(msg, system_id, component_id, _status, MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_UPDATE_MIN_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_UPDATE_LEN);
141#endif
142}
143
144/**
145 * @brief Pack a open_drone_id_system_update message on a channel
146 * @param system_id ID of this system
147 * @param component_id ID of this component (e.g. 200 for IMU)
148 * @param chan The MAVLink channel this message will be sent over
149 * @param msg The MAVLink message to compress the data into
150 * @param target_system System ID (0 for broadcast).
151 * @param target_component Component ID (0 for broadcast).
152 * @param operator_latitude [degE7] Latitude of the operator. If unknown: 0 (both Lat/Lon).
153 * @param operator_longitude [degE7] Longitude of the operator. If unknown: 0 (both Lat/Lon).
154 * @param operator_altitude_geo [m] Geodetic altitude of the operator relative to WGS84. If unknown: -1000 m.
155 * @param timestamp [s] 32 bit Unix Timestamp in seconds since 00:00:00 01/01/2019.
156 * @return length of the message in bytes (excluding serial stream start sign)
157 */
158static inline uint16_t mavlink_msg_open_drone_id_system_update_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
159 mavlink_message_t* msg,
160 uint8_t target_system,uint8_t target_component,int32_t operator_latitude,int32_t operator_longitude,float operator_altitude_geo,uint32_t timestamp)
161{
162#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
164 _mav_put_int32_t(buf, 0, operator_latitude);
165 _mav_put_int32_t(buf, 4, operator_longitude);
166 _mav_put_float(buf, 8, operator_altitude_geo);
167 _mav_put_uint32_t(buf, 12, timestamp);
168 _mav_put_uint8_t(buf, 16, target_system);
169 _mav_put_uint8_t(buf, 17, target_component);
170
171 memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_UPDATE_LEN);
172#else
173 mavlink_open_drone_id_system_update_t packet;
174 packet.operator_latitude = operator_latitude;
175 packet.operator_longitude = operator_longitude;
176 packet.operator_altitude_geo = operator_altitude_geo;
177 packet.timestamp = timestamp;
178 packet.target_system = target_system;
179 packet.target_component = target_component;
180
181 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_UPDATE_LEN);
182#endif
183
186}
187
188/**
189 * @brief Encode a open_drone_id_system_update struct
190 *
191 * @param system_id ID of this system
192 * @param component_id ID of this component (e.g. 200 for IMU)
193 * @param msg The MAVLink message to compress the data into
194 * @param open_drone_id_system_update C-struct to read the message contents from
195 */
196static inline uint16_t mavlink_msg_open_drone_id_system_update_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg, const mavlink_open_drone_id_system_update_t* open_drone_id_system_update)
197{
198 return mavlink_msg_open_drone_id_system_update_pack(system_id, component_id, msg, open_drone_id_system_update->target_system, open_drone_id_system_update->target_component, open_drone_id_system_update->operator_latitude, open_drone_id_system_update->operator_longitude, open_drone_id_system_update->operator_altitude_geo, open_drone_id_system_update->timestamp);
199}
200
201/**
202 * @brief Encode a open_drone_id_system_update struct on a channel
203 *
204 * @param system_id ID of this system
205 * @param component_id ID of this component (e.g. 200 for IMU)
206 * @param chan The MAVLink channel this message will be sent over
207 * @param msg The MAVLink message to compress the data into
208 * @param open_drone_id_system_update C-struct to read the message contents from
209 */
210static inline uint16_t mavlink_msg_open_drone_id_system_update_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg, const mavlink_open_drone_id_system_update_t* open_drone_id_system_update)
211{
212 return mavlink_msg_open_drone_id_system_update_pack_chan(system_id, component_id, chan, msg, open_drone_id_system_update->target_system, open_drone_id_system_update->target_component, open_drone_id_system_update->operator_latitude, open_drone_id_system_update->operator_longitude, open_drone_id_system_update->operator_altitude_geo, open_drone_id_system_update->timestamp);
213}
214
215/**
216 * @brief Encode a open_drone_id_system_update struct with provided status structure
217 *
218 * @param system_id ID of this system
219 * @param component_id ID of this component (e.g. 200 for IMU)
220 * @param status MAVLink status structure
221 * @param msg The MAVLink message to compress the data into
222 * @param open_drone_id_system_update C-struct to read the message contents from
223 */
224static inline uint16_t mavlink_msg_open_drone_id_system_update_encode_status(uint8_t system_id, uint8_t component_id, mavlink_status_t* _status, mavlink_message_t* msg, const mavlink_open_drone_id_system_update_t* open_drone_id_system_update)
225{
226 return mavlink_msg_open_drone_id_system_update_pack_status(system_id, component_id, _status, msg, open_drone_id_system_update->target_system, open_drone_id_system_update->target_component, open_drone_id_system_update->operator_latitude, open_drone_id_system_update->operator_longitude, open_drone_id_system_update->operator_altitude_geo, open_drone_id_system_update->timestamp);
227}
228
229/**
230 * @brief Send a open_drone_id_system_update message
231 * @param chan MAVLink channel to send the message
232 *
233 * @param target_system System ID (0 for broadcast).
234 * @param target_component Component ID (0 for broadcast).
235 * @param operator_latitude [degE7] Latitude of the operator. If unknown: 0 (both Lat/Lon).
236 * @param operator_longitude [degE7] Longitude of the operator. If unknown: 0 (both Lat/Lon).
237 * @param operator_altitude_geo [m] Geodetic altitude of the operator relative to WGS84. If unknown: -1000 m.
238 * @param timestamp [s] 32 bit Unix Timestamp in seconds since 00:00:00 01/01/2019.
239 */
240#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
241
242static inline void mavlink_msg_open_drone_id_system_update_send(mavlink_channel_t chan, uint8_t target_system, uint8_t target_component, int32_t operator_latitude, int32_t operator_longitude, float operator_altitude_geo, uint32_t timestamp)
243{
244#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
245 char buf[MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_UPDATE_LEN];
246 _mav_put_int32_t(buf, 0, operator_latitude);
247 _mav_put_int32_t(buf, 4, operator_longitude);
248 _mav_put_float(buf, 8, operator_altitude_geo);
249 _mav_put_uint32_t(buf, 12, timestamp);
250 _mav_put_uint8_t(buf, 16, target_system);
251 _mav_put_uint8_t(buf, 17, target_component);
252
253 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_UPDATE, buf, MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_UPDATE_MIN_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_UPDATE_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_UPDATE_CRC);
254#else
255 mavlink_open_drone_id_system_update_t packet;
256 packet.operator_latitude = operator_latitude;
257 packet.operator_longitude = operator_longitude;
258 packet.operator_altitude_geo = operator_altitude_geo;
259 packet.timestamp = timestamp;
260 packet.target_system = target_system;
261 packet.target_component = target_component;
262
263 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_UPDATE, (const char *)&packet, MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_UPDATE_MIN_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_UPDATE_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_UPDATE_CRC);
264#endif
265}
266
267/**
268 * @brief Send a open_drone_id_system_update message
269 * @param chan MAVLink channel to send the message
270 * @param struct The MAVLink struct to serialize
271 */
272static inline void mavlink_msg_open_drone_id_system_update_send_struct(mavlink_channel_t chan, const mavlink_open_drone_id_system_update_t* open_drone_id_system_update)
273{
274#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
275 mavlink_msg_open_drone_id_system_update_send(chan, open_drone_id_system_update->target_system, open_drone_id_system_update->target_component, open_drone_id_system_update->operator_latitude, open_drone_id_system_update->operator_longitude, open_drone_id_system_update->operator_altitude_geo, open_drone_id_system_update->timestamp);
276#else
277 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_UPDATE, (const char *)open_drone_id_system_update, MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_UPDATE_MIN_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_UPDATE_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_UPDATE_CRC);
278#endif
279}
280
281#if MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_UPDATE_LEN <= MAVLINK_MAX_PAYLOAD_LEN
282/*
283 This variant of _send() can be used to save stack space by reusing
284 memory from the receive buffer. The caller provides a
285 mavlink_message_t which is the size of a full mavlink message. This
286 is usually the receive buffer for the channel, and allows a reply to an
287 incoming message with minimum stack space usage.
288 */
289static inline void mavlink_msg_open_drone_id_system_update_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint8_t target_system, uint8_t target_component, int32_t operator_latitude, int32_t operator_longitude, float operator_altitude_geo, uint32_t timestamp)
290{
291#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
292 char *buf = (char *)msgbuf;
293 _mav_put_int32_t(buf, 0, operator_latitude);
294 _mav_put_int32_t(buf, 4, operator_longitude);
295 _mav_put_float(buf, 8, operator_altitude_geo);
296 _mav_put_uint32_t(buf, 12, timestamp);
297 _mav_put_uint8_t(buf, 16, target_system);
298 _mav_put_uint8_t(buf, 17, target_component);
299
300 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_UPDATE, buf, MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_UPDATE_MIN_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_UPDATE_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_UPDATE_CRC);
301#else
302 mavlink_open_drone_id_system_update_t *packet = (mavlink_open_drone_id_system_update_t *)msgbuf;
303 packet->operator_latitude = operator_latitude;
304 packet->operator_longitude = operator_longitude;
305 packet->operator_altitude_geo = operator_altitude_geo;
306 packet->timestamp = timestamp;
307 packet->target_system = target_system;
308 packet->target_component = target_component;
309
310 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_UPDATE, (const char *)packet, MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_UPDATE_MIN_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_UPDATE_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_UPDATE_CRC);
311#endif
312}
313#endif
314
315#endif
316
317// MESSAGE OPEN_DRONE_ID_SYSTEM_UPDATE UNPACKING
318
319
320/**
321 * @brief Get field target_system from open_drone_id_system_update message
322 *
323 * @return System ID (0 for broadcast).
324 */
325static inline uint8_t mavlink_msg_open_drone_id_system_update_get_target_system(const mavlink_message_t* msg)
326{
327 return _MAV_RETURN_uint8_t(msg, 16);
328}
329
330/**
331 * @brief Get field target_component from open_drone_id_system_update message
332 *
333 * @return Component ID (0 for broadcast).
334 */
335static inline uint8_t mavlink_msg_open_drone_id_system_update_get_target_component(const mavlink_message_t* msg)
336{
337 return _MAV_RETURN_uint8_t(msg, 17);
338}
339
340/**
341 * @brief Get field operator_latitude from open_drone_id_system_update message
342 *
343 * @return [degE7] Latitude of the operator. If unknown: 0 (both Lat/Lon).
344 */
345static inline int32_t mavlink_msg_open_drone_id_system_update_get_operator_latitude(const mavlink_message_t* msg)
346{
347 return _MAV_RETURN_int32_t(msg, 0);
348}
349
350/**
351 * @brief Get field operator_longitude from open_drone_id_system_update message
352 *
353 * @return [degE7] Longitude of the operator. If unknown: 0 (both Lat/Lon).
354 */
355static inline int32_t mavlink_msg_open_drone_id_system_update_get_operator_longitude(const mavlink_message_t* msg)
356{
357 return _MAV_RETURN_int32_t(msg, 4);
358}
359
360/**
361 * @brief Get field operator_altitude_geo from open_drone_id_system_update message
362 *
363 * @return [m] Geodetic altitude of the operator relative to WGS84. If unknown: -1000 m.
364 */
365static inline float mavlink_msg_open_drone_id_system_update_get_operator_altitude_geo(const mavlink_message_t* msg)
366{
367 return _MAV_RETURN_float(msg, 8);
368}
369
370/**
371 * @brief Get field timestamp from open_drone_id_system_update message
372 *
373 * @return [s] 32 bit Unix Timestamp in seconds since 00:00:00 01/01/2019.
374 */
375static inline uint32_t mavlink_msg_open_drone_id_system_update_get_timestamp(const mavlink_message_t* msg)
376{
377 return _MAV_RETURN_uint32_t(msg, 12);
378}
379
380/**
381 * @brief Decode a open_drone_id_system_update message into a struct
382 *
383 * @param msg The message to decode
384 * @param open_drone_id_system_update C-struct to decode the message contents into
385 */
386static inline void mavlink_msg_open_drone_id_system_update_decode(const mavlink_message_t* msg, mavlink_open_drone_id_system_update_t* open_drone_id_system_update)
387{
388#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
389 open_drone_id_system_update->operator_latitude = mavlink_msg_open_drone_id_system_update_get_operator_latitude(msg);
390 open_drone_id_system_update->operator_longitude = mavlink_msg_open_drone_id_system_update_get_operator_longitude(msg);
391 open_drone_id_system_update->operator_altitude_geo = mavlink_msg_open_drone_id_system_update_get_operator_altitude_geo(msg);
392 open_drone_id_system_update->timestamp = mavlink_msg_open_drone_id_system_update_get_timestamp(msg);
393 open_drone_id_system_update->target_system = mavlink_msg_open_drone_id_system_update_get_target_system(msg);
394 open_drone_id_system_update->target_component = mavlink_msg_open_drone_id_system_update_get_target_component(msg);
395#else
396 uint8_t len = msg->len < MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_UPDATE_LEN? msg->len : MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_UPDATE_LEN;
397 memset(open_drone_id_system_update, 0, MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_UPDATE_LEN);
398 memcpy(open_drone_id_system_update, _MAV_PAYLOAD(msg), len);
399#endif
400}