4#define MAVLINK_MSG_ID_UTM_GLOBAL_POSITION 340
26} mavlink_utm_global_position_t;
28#define MAVLINK_MSG_ID_UTM_GLOBAL_POSITION_LEN 70
29#define MAVLINK_MSG_ID_UTM_GLOBAL_POSITION_MIN_LEN 70
30#define MAVLINK_MSG_ID_340_LEN 70
31#define MAVLINK_MSG_ID_340_MIN_LEN 70
33#define MAVLINK_MSG_ID_UTM_GLOBAL_POSITION_CRC 99
34#define MAVLINK_MSG_ID_340_CRC 99
36#define MAVLINK_MSG_UTM_GLOBAL_POSITION_FIELD_UAS_ID_LEN 18
38#if MAVLINK_COMMAND_24BIT
39#define MAVLINK_MESSAGE_INFO_UTM_GLOBAL_POSITION {
41 "UTM_GLOBAL_POSITION",
43 { { "time", NULL, MAVLINK_TYPE_UINT64_T, 0
, 0
, offsetof(mavlink_utm_global_position_t, time) },
44 { "uas_id", NULL, MAVLINK_TYPE_UINT8_T, 18
, 50
, offsetof(mavlink_utm_global_position_t, uas_id) },
45 { "lat", NULL, MAVLINK_TYPE_INT32_T, 0
, 8
, offsetof(mavlink_utm_global_position_t, lat) },
46 { "lon", NULL, MAVLINK_TYPE_INT32_T, 0
, 12
, offsetof(mavlink_utm_global_position_t, lon) },
47 { "alt", NULL, MAVLINK_TYPE_INT32_T, 0
, 16
, offsetof(mavlink_utm_global_position_t, alt) },
48 { "relative_alt", NULL, MAVLINK_TYPE_INT32_T, 0
, 20
, offsetof(mavlink_utm_global_position_t, relative_alt) },
49 { "vx", NULL, MAVLINK_TYPE_INT16_T, 0
, 36
, offsetof(mavlink_utm_global_position_t, vx) },
50 { "vy", NULL, MAVLINK_TYPE_INT16_T, 0
, 38
, offsetof(mavlink_utm_global_position_t, vy) },
51 { "vz", NULL, MAVLINK_TYPE_INT16_T, 0
, 40
, offsetof(mavlink_utm_global_position_t, vz) },
52 { "h_acc", NULL, MAVLINK_TYPE_UINT16_T, 0
, 42
, offsetof(mavlink_utm_global_position_t, h_acc) },
53 { "v_acc", NULL, MAVLINK_TYPE_UINT16_T, 0
, 44
, offsetof(mavlink_utm_global_position_t, v_acc) },
54 { "vel_acc", NULL, MAVLINK_TYPE_UINT16_T, 0
, 46
, offsetof(mavlink_utm_global_position_t, vel_acc) },
55 { "next_lat", NULL, MAVLINK_TYPE_INT32_T, 0
, 24
, offsetof(mavlink_utm_global_position_t, next_lat) },
56 { "next_lon", NULL, MAVLINK_TYPE_INT32_T, 0
, 28
, offsetof(mavlink_utm_global_position_t, next_lon) },
57 { "next_alt", NULL, MAVLINK_TYPE_INT32_T, 0
, 32
, offsetof(mavlink_utm_global_position_t, next_alt) },
58 { "update_rate", NULL, MAVLINK_TYPE_UINT16_T, 0
, 48
, offsetof(mavlink_utm_global_position_t, update_rate) },
59 { "flight_state", NULL, MAVLINK_TYPE_UINT8_T, 0
, 68
, offsetof(mavlink_utm_global_position_t, flight_state) },
60 { "flags", NULL, MAVLINK_TYPE_UINT8_T, 0
, 69
, offsetof(mavlink_utm_global_position_t, flags) },
62}
64#define MAVLINK_MESSAGE_INFO_UTM_GLOBAL_POSITION {
65 "UTM_GLOBAL_POSITION",
67 { { "time", NULL, MAVLINK_TYPE_UINT64_T, 0
, 0
, offsetof(mavlink_utm_global_position_t, time) },
68 { "uas_id", NULL, MAVLINK_TYPE_UINT8_T, 18
, 50
, offsetof(mavlink_utm_global_position_t, uas_id) },
69 { "lat", NULL, MAVLINK_TYPE_INT32_T, 0
, 8
, offsetof(mavlink_utm_global_position_t, lat) },
70 { "lon", NULL, MAVLINK_TYPE_INT32_T, 0
, 12
, offsetof(mavlink_utm_global_position_t, lon) },
71 { "alt", NULL, MAVLINK_TYPE_INT32_T, 0
, 16
, offsetof(mavlink_utm_global_position_t, alt) },
72 { "relative_alt", NULL, MAVLINK_TYPE_INT32_T, 0
, 20
, offsetof(mavlink_utm_global_position_t, relative_alt) },
73 { "vx", NULL, MAVLINK_TYPE_INT16_T, 0
, 36
, offsetof(mavlink_utm_global_position_t, vx) },
74 { "vy", NULL, MAVLINK_TYPE_INT16_T, 0
, 38
, offsetof(mavlink_utm_global_position_t, vy) },
75 { "vz", NULL, MAVLINK_TYPE_INT16_T, 0
, 40
, offsetof(mavlink_utm_global_position_t, vz) },
76 { "h_acc", NULL, MAVLINK_TYPE_UINT16_T, 0
, 42
, offsetof(mavlink_utm_global_position_t, h_acc) },
77 { "v_acc", NULL, MAVLINK_TYPE_UINT16_T, 0
, 44
, offsetof(mavlink_utm_global_position_t, v_acc) },
78 { "vel_acc", NULL, MAVLINK_TYPE_UINT16_T, 0
, 46
, offsetof(mavlink_utm_global_position_t, vel_acc) },
79 { "next_lat", NULL, MAVLINK_TYPE_INT32_T, 0
, 24
, offsetof(mavlink_utm_global_position_t, next_lat) },
80 { "next_lon", NULL, MAVLINK_TYPE_INT32_T, 0
, 28
, offsetof(mavlink_utm_global_position_t, next_lon) },
81 { "next_alt", NULL, MAVLINK_TYPE_INT32_T, 0
, 32
, offsetof(mavlink_utm_global_position_t, next_alt) },
82 { "update_rate", NULL, MAVLINK_TYPE_UINT16_T, 0
, 48
, offsetof(mavlink_utm_global_position_t, update_rate) },
83 { "flight_state", NULL, MAVLINK_TYPE_UINT8_T, 0
, 68
, offsetof(mavlink_utm_global_position_t, flight_state) },
84 { "flags", NULL, MAVLINK_TYPE_UINT8_T, 0
, 69
, offsetof(mavlink_utm_global_position_t, flags) },
86}
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115static inline uint16_t mavlink_msg_utm_global_position_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
116 uint64_t time,
const uint8_t *uas_id, int32_t lat, int32_t lon, int32_t alt, int32_t relative_alt, int16_t vx, int16_t vy, int16_t vz, uint16_t h_acc, uint16_t v_acc, uint16_t vel_acc, int32_t next_lat, int32_t next_lon, int32_t next_alt, uint16_t update_rate, uint8_t flight_state, uint8_t flags)
118#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
120 _mav_put_uint64_t(buf, 0, time);
121 _mav_put_int32_t(buf, 8, lat);
122 _mav_put_int32_t(buf, 12, lon);
123 _mav_put_int32_t(buf, 16, alt);
124 _mav_put_int32_t(buf, 20, relative_alt);
125 _mav_put_int32_t(buf, 24, next_lat);
126 _mav_put_int32_t(buf, 28, next_lon);
127 _mav_put_int32_t(buf, 32, next_alt);
128 _mav_put_int16_t(buf, 36, vx);
129 _mav_put_int16_t(buf, 38, vy);
130 _mav_put_int16_t(buf, 40, vz);
131 _mav_put_uint16_t(buf, 42, h_acc);
132 _mav_put_uint16_t(buf, 44, v_acc);
133 _mav_put_uint16_t(buf, 46, vel_acc);
134 _mav_put_uint16_t(buf, 48, update_rate);
135 _mav_put_uint8_t(buf, 68, flight_state);
136 _mav_put_uint8_t(buf, 69, flags);
137 _mav_put_uint8_t_array(buf, 50, uas_id, 18);
140 mavlink_utm_global_position_t packet;
145 packet.relative_alt = relative_alt;
146 packet.next_lat = next_lat;
147 packet.next_lon = next_lon;
148 packet.next_alt = next_alt;
152 packet.h_acc = h_acc;
153 packet.v_acc = v_acc;
154 packet.vel_acc = vel_acc;
155 packet.update_rate = update_rate;
156 packet.flight_state = flight_state;
157 packet.flags = flags;
158 mav_array_memcpy(packet.uas_id, uas_id,
sizeof(uint8_t)*18);
159 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_UTM_GLOBAL_POSITION_LEN);
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193static inline uint16_t mavlink_msg_utm_global_position_pack_status(uint8_t system_id, uint8_t component_id, mavlink_status_t *_status, mavlink_message_t* msg,
194 uint64_t time,
const uint8_t *uas_id, int32_t lat, int32_t lon, int32_t alt, int32_t relative_alt, int16_t vx, int16_t vy, int16_t vz, uint16_t h_acc, uint16_t v_acc, uint16_t vel_acc, int32_t next_lat, int32_t next_lon, int32_t next_alt, uint16_t update_rate, uint8_t flight_state, uint8_t flags)
196#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
198 _mav_put_uint64_t(buf, 0, time);
199 _mav_put_int32_t(buf, 8, lat);
200 _mav_put_int32_t(buf, 12, lon);
201 _mav_put_int32_t(buf, 16, alt);
202 _mav_put_int32_t(buf, 20, relative_alt);
203 _mav_put_int32_t(buf, 24, next_lat);
204 _mav_put_int32_t(buf, 28, next_lon);
205 _mav_put_int32_t(buf, 32, next_alt);
206 _mav_put_int16_t(buf, 36, vx);
207 _mav_put_int16_t(buf, 38, vy);
208 _mav_put_int16_t(buf, 40, vz);
209 _mav_put_uint16_t(buf, 42, h_acc);
210 _mav_put_uint16_t(buf, 44, v_acc);
211 _mav_put_uint16_t(buf, 46, vel_acc);
212 _mav_put_uint16_t(buf, 48, update_rate);
213 _mav_put_uint8_t(buf, 68, flight_state);
214 _mav_put_uint8_t(buf, 69, flags);
215 _mav_put_uint8_t_array(buf, 50, uas_id, 18);
218 mavlink_utm_global_position_t packet;
223 packet.relative_alt = relative_alt;
224 packet.next_lat = next_lat;
225 packet.next_lon = next_lon;
226 packet.next_alt = next_alt;
230 packet.h_acc = h_acc;
231 packet.v_acc = v_acc;
232 packet.vel_acc = vel_acc;
233 packet.update_rate = update_rate;
234 packet.flight_state = flight_state;
235 packet.flags = flags;
236 mav_array_memcpy(packet.uas_id, uas_id,
sizeof(uint8_t)*18);
237 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_UTM_GLOBAL_POSITION_LEN);
242 return mavlink_finalize_message_buffer(msg, system_id, component_id, _status, MAVLINK_MSG_ID_UTM_GLOBAL_POSITION_MIN_LEN, MAVLINK_MSG_ID_UTM_GLOBAL_POSITION_LEN, MAVLINK_MSG_ID_UTM_GLOBAL_POSITION_CRC);
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274static inline uint16_t mavlink_msg_utm_global_position_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
275 mavlink_message_t* msg,
276 uint64_t time,
const uint8_t *uas_id,int32_t lat,int32_t lon,int32_t alt,int32_t relative_alt,int16_t vx,int16_t vy,int16_t vz,uint16_t h_acc,uint16_t v_acc,uint16_t vel_acc,int32_t next_lat,int32_t next_lon,int32_t next_alt,uint16_t update_rate,uint8_t flight_state,uint8_t flags)
278#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
280 _mav_put_uint64_t(buf, 0, time);
281 _mav_put_int32_t(buf, 8, lat);
282 _mav_put_int32_t(buf, 12, lon);
283 _mav_put_int32_t(buf, 16, alt);
284 _mav_put_int32_t(buf, 20, relative_alt);
285 _mav_put_int32_t(buf, 24, next_lat);
286 _mav_put_int32_t(buf, 28, next_lon);
287 _mav_put_int32_t(buf, 32, next_alt);
288 _mav_put_int16_t(buf, 36, vx);
289 _mav_put_int16_t(buf, 38, vy);
290 _mav_put_int16_t(buf, 40, vz);
291 _mav_put_uint16_t(buf, 42, h_acc);
292 _mav_put_uint16_t(buf, 44, v_acc);
293 _mav_put_uint16_t(buf, 46, vel_acc);
294 _mav_put_uint16_t(buf, 48, update_rate);
295 _mav_put_uint8_t(buf, 68, flight_state);
296 _mav_put_uint8_t(buf, 69, flags);
297 _mav_put_uint8_t_array(buf, 50, uas_id, 18);
300 mavlink_utm_global_position_t packet;
305 packet.relative_alt = relative_alt;
306 packet.next_lat = next_lat;
307 packet.next_lon = next_lon;
308 packet.next_alt = next_alt;
312 packet.h_acc = h_acc;
313 packet.v_acc = v_acc;
314 packet.vel_acc = vel_acc;
315 packet.update_rate = update_rate;
316 packet.flight_state = flight_state;
317 packet.flags = flags;
318 mav_array_memcpy(packet.uas_id, uas_id,
sizeof(uint8_t)*18);
319 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_UTM_GLOBAL_POSITION_LEN);
327
328
329
330
331
332
333
334static inline uint16_t mavlink_msg_utm_global_position_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_utm_global_position_t* utm_global_position)
336 return mavlink_msg_utm_global_position_pack(system_id, component_id, msg, utm_global_position->time, utm_global_position->uas_id, utm_global_position->lat, utm_global_position->lon, utm_global_position->alt, utm_global_position->relative_alt, utm_global_position->vx, utm_global_position->vy, utm_global_position->vz, utm_global_position->h_acc, utm_global_position->v_acc, utm_global_position->vel_acc, utm_global_position->next_lat, utm_global_position->next_lon, utm_global_position->next_alt, utm_global_position->update_rate, utm_global_position->flight_state, utm_global_position->flags);
340
341
342
343
344
345
346
347
348static inline uint16_t mavlink_msg_utm_global_position_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_utm_global_position_t* utm_global_position)
350 return mavlink_msg_utm_global_position_pack_chan(system_id, component_id, chan, msg, utm_global_position->time, utm_global_position->uas_id, utm_global_position->lat, utm_global_position->lon, utm_global_position->alt, utm_global_position->relative_alt, utm_global_position->vx, utm_global_position->vy, utm_global_position->vz, utm_global_position->h_acc, utm_global_position->v_acc, utm_global_position->vel_acc, utm_global_position->next_lat, utm_global_position->next_lon, utm_global_position->next_alt, utm_global_position->update_rate, utm_global_position->flight_state, utm_global_position->flags);
354
355
356
357
358
359
360
361
362static inline uint16_t mavlink_msg_utm_global_position_encode_status(uint8_t system_id, uint8_t component_id, mavlink_status_t* _status, mavlink_message_t* msg,
const mavlink_utm_global_position_t* utm_global_position)
364 return mavlink_msg_utm_global_position_pack_status(system_id, component_id, _status, msg, utm_global_position->time, utm_global_position->uas_id, utm_global_position->lat, utm_global_position->lon, utm_global_position->alt, utm_global_position->relative_alt, utm_global_position->vx, utm_global_position->vy, utm_global_position->vz, utm_global_position->h_acc, utm_global_position->v_acc, utm_global_position->vel_acc, utm_global_position->next_lat, utm_global_position->next_lon, utm_global_position->next_alt, utm_global_position->update_rate, utm_global_position->flight_state, utm_global_position->flags);
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
392static inline void mavlink_msg_utm_global_position_send(mavlink_channel_t chan, uint64_t time,
const uint8_t *uas_id, int32_t lat, int32_t lon, int32_t alt, int32_t relative_alt, int16_t vx, int16_t vy, int16_t vz, uint16_t h_acc, uint16_t v_acc, uint16_t vel_acc, int32_t next_lat, int32_t next_lon, int32_t next_alt, uint16_t update_rate, uint8_t flight_state, uint8_t flags)
394#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
395 char buf[MAVLINK_MSG_ID_UTM_GLOBAL_POSITION_LEN];
396 _mav_put_uint64_t(buf, 0, time);
397 _mav_put_int32_t(buf, 8, lat);
398 _mav_put_int32_t(buf, 12, lon);
399 _mav_put_int32_t(buf, 16, alt);
400 _mav_put_int32_t(buf, 20, relative_alt);
401 _mav_put_int32_t(buf, 24, next_lat);
402 _mav_put_int32_t(buf, 28, next_lon);
403 _mav_put_int32_t(buf, 32, next_alt);
404 _mav_put_int16_t(buf, 36, vx);
405 _mav_put_int16_t(buf, 38, vy);
406 _mav_put_int16_t(buf, 40, vz);
407 _mav_put_uint16_t(buf, 42, h_acc);
408 _mav_put_uint16_t(buf, 44, v_acc);
409 _mav_put_uint16_t(buf, 46, vel_acc);
410 _mav_put_uint16_t(buf, 48, update_rate);
411 _mav_put_uint8_t(buf, 68, flight_state);
412 _mav_put_uint8_t(buf, 69, flags);
413 _mav_put_uint8_t_array(buf, 50, uas_id, 18);
414 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_UTM_GLOBAL_POSITION, buf, MAVLINK_MSG_ID_UTM_GLOBAL_POSITION_MIN_LEN, MAVLINK_MSG_ID_UTM_GLOBAL_POSITION_LEN, MAVLINK_MSG_ID_UTM_GLOBAL_POSITION_CRC);
416 mavlink_utm_global_position_t packet;
421 packet.relative_alt = relative_alt;
422 packet.next_lat = next_lat;
423 packet.next_lon = next_lon;
424 packet.next_alt = next_alt;
428 packet.h_acc = h_acc;
429 packet.v_acc = v_acc;
430 packet.vel_acc = vel_acc;
431 packet.update_rate = update_rate;
432 packet.flight_state = flight_state;
433 packet.flags = flags;
434 mav_array_memcpy(packet.uas_id, uas_id,
sizeof(uint8_t)*18);
435 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_UTM_GLOBAL_POSITION, (
const char *)&packet, MAVLINK_MSG_ID_UTM_GLOBAL_POSITION_MIN_LEN, MAVLINK_MSG_ID_UTM_GLOBAL_POSITION_LEN, MAVLINK_MSG_ID_UTM_GLOBAL_POSITION_CRC);
440
441
442
443
444static inline void mavlink_msg_utm_global_position_send_struct(mavlink_channel_t chan,
const mavlink_utm_global_position_t* utm_global_position)
446#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
447 mavlink_msg_utm_global_position_send(chan, utm_global_position->time, utm_global_position->uas_id, utm_global_position->lat, utm_global_position->lon, utm_global_position->alt, utm_global_position->relative_alt, utm_global_position->vx, utm_global_position->vy, utm_global_position->vz, utm_global_position->h_acc, utm_global_position->v_acc, utm_global_position->vel_acc, utm_global_position->next_lat, utm_global_position->next_lon, utm_global_position->next_alt, utm_global_position->update_rate, utm_global_position->flight_state, utm_global_position->flags);
449 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_UTM_GLOBAL_POSITION, (
const char *)utm_global_position, MAVLINK_MSG_ID_UTM_GLOBAL_POSITION_MIN_LEN, MAVLINK_MSG_ID_UTM_GLOBAL_POSITION_LEN, MAVLINK_MSG_ID_UTM_GLOBAL_POSITION_CRC);
453#if MAVLINK_MSG_ID_UTM_GLOBAL_POSITION_LEN <= MAVLINK_MAX_PAYLOAD_LEN
455
456
457
458
459
460
461static inline void mavlink_msg_utm_global_position_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint64_t time,
const uint8_t *uas_id, int32_t lat, int32_t lon, int32_t alt, int32_t relative_alt, int16_t vx, int16_t vy, int16_t vz, uint16_t h_acc, uint16_t v_acc, uint16_t vel_acc, int32_t next_lat, int32_t next_lon, int32_t next_alt, uint16_t update_rate, uint8_t flight_state, uint8_t flags)
463#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
464 char *buf = (
char *)msgbuf;
465 _mav_put_uint64_t(buf, 0, time);
466 _mav_put_int32_t(buf, 8, lat);
467 _mav_put_int32_t(buf, 12, lon);
468 _mav_put_int32_t(buf, 16, alt);
469 _mav_put_int32_t(buf, 20, relative_alt);
470 _mav_put_int32_t(buf, 24, next_lat);
471 _mav_put_int32_t(buf, 28, next_lon);
472 _mav_put_int32_t(buf, 32, next_alt);
473 _mav_put_int16_t(buf, 36, vx);
474 _mav_put_int16_t(buf, 38, vy);
475 _mav_put_int16_t(buf, 40, vz);
476 _mav_put_uint16_t(buf, 42, h_acc);
477 _mav_put_uint16_t(buf, 44, v_acc);
478 _mav_put_uint16_t(buf, 46, vel_acc);
479 _mav_put_uint16_t(buf, 48, update_rate);
480 _mav_put_uint8_t(buf, 68, flight_state);
481 _mav_put_uint8_t(buf, 69, flags);
482 _mav_put_uint8_t_array(buf, 50, uas_id, 18);
483 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_UTM_GLOBAL_POSITION, buf, MAVLINK_MSG_ID_UTM_GLOBAL_POSITION_MIN_LEN, MAVLINK_MSG_ID_UTM_GLOBAL_POSITION_LEN, MAVLINK_MSG_ID_UTM_GLOBAL_POSITION_CRC);
485 mavlink_utm_global_position_t *packet = (mavlink_utm_global_position_t *)msgbuf;
490 packet->relative_alt = relative_alt;
491 packet->next_lat = next_lat;
492 packet->next_lon = next_lon;
493 packet->next_alt = next_alt;
497 packet->h_acc = h_acc;
498 packet->v_acc = v_acc;
499 packet->vel_acc = vel_acc;
500 packet->update_rate = update_rate;
501 packet->flight_state = flight_state;
502 packet->flags = flags;
503 mav_array_memcpy(packet->uas_id, uas_id,
sizeof(uint8_t)*18);
504 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_UTM_GLOBAL_POSITION, (
const char *)packet, MAVLINK_MSG_ID_UTM_GLOBAL_POSITION_MIN_LEN, MAVLINK_MSG_ID_UTM_GLOBAL_POSITION_LEN, MAVLINK_MSG_ID_UTM_GLOBAL_POSITION_CRC);
515
516
517
518
519static inline uint64_t mavlink_msg_utm_global_position_get_time(
const mavlink_message_t* msg)
521 return _MAV_RETURN_uint64_t(msg, 0);
525
526
527
528
529static inline uint16_t mavlink_msg_utm_global_position_get_uas_id(
const mavlink_message_t* msg, uint8_t *uas_id)
531 return _MAV_RETURN_uint8_t_array(msg, uas_id, 18, 50);
535
536
537
538
539static inline int32_t mavlink_msg_utm_global_position_get_lat(
const mavlink_message_t* msg)
541 return _MAV_RETURN_int32_t(msg, 8);
545
546
547
548
549static inline int32_t mavlink_msg_utm_global_position_get_lon(
const mavlink_message_t* msg)
551 return _MAV_RETURN_int32_t(msg, 12);
555
556
557
558
559static inline int32_t mavlink_msg_utm_global_position_get_alt(
const mavlink_message_t* msg)
561 return _MAV_RETURN_int32_t(msg, 16);
565
566
567
568
569static inline int32_t mavlink_msg_utm_global_position_get_relative_alt(
const mavlink_message_t* msg)
571 return _MAV_RETURN_int32_t(msg, 20);
575
576
577
578
579static inline int16_t mavlink_msg_utm_global_position_get_vx(
const mavlink_message_t* msg)
581 return _MAV_RETURN_int16_t(msg, 36);
585
586
587
588
589static inline int16_t mavlink_msg_utm_global_position_get_vy(
const mavlink_message_t* msg)
591 return _MAV_RETURN_int16_t(msg, 38);
595
596
597
598
599static inline int16_t mavlink_msg_utm_global_position_get_vz(
const mavlink_message_t* msg)
601 return _MAV_RETURN_int16_t(msg, 40);
605
606
607
608
609static inline uint16_t mavlink_msg_utm_global_position_get_h_acc(
const mavlink_message_t* msg)
611 return _MAV_RETURN_uint16_t(msg, 42);
615
616
617
618
619static inline uint16_t mavlink_msg_utm_global_position_get_v_acc(
const mavlink_message_t* msg)
621 return _MAV_RETURN_uint16_t(msg, 44);
625
626
627
628
629static inline uint16_t mavlink_msg_utm_global_position_get_vel_acc(
const mavlink_message_t* msg)
631 return _MAV_RETURN_uint16_t(msg, 46);
635
636
637
638
639static inline int32_t mavlink_msg_utm_global_position_get_next_lat(
const mavlink_message_t* msg)
641 return _MAV_RETURN_int32_t(msg, 24);
645
646
647
648
649static inline int32_t mavlink_msg_utm_global_position_get_next_lon(
const mavlink_message_t* msg)
651 return _MAV_RETURN_int32_t(msg, 28);
655
656
657
658
659static inline int32_t mavlink_msg_utm_global_position_get_next_alt(
const mavlink_message_t* msg)
661 return _MAV_RETURN_int32_t(msg, 32);
665
666
667
668
669static inline uint16_t mavlink_msg_utm_global_position_get_update_rate(
const mavlink_message_t* msg)
671 return _MAV_RETURN_uint16_t(msg, 48);
675
676
677
678
679static inline uint8_t mavlink_msg_utm_global_position_get_flight_state(
const mavlink_message_t* msg)
681 return _MAV_RETURN_uint8_t(msg, 68);
685
686
687
688
689static inline uint8_t mavlink_msg_utm_global_position_get_flags(
const mavlink_message_t* msg)
691 return _MAV_RETURN_uint8_t(msg, 69);
695
696
697
698
699
700static inline void mavlink_msg_utm_global_position_decode(
const mavlink_message_t* msg, mavlink_utm_global_position_t* utm_global_position)
702#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
703 utm_global_position->time = mavlink_msg_utm_global_position_get_time(msg);
704 utm_global_position->lat = mavlink_msg_utm_global_position_get_lat(msg);
705 utm_global_position->lon = mavlink_msg_utm_global_position_get_lon(msg);
706 utm_global_position->alt = mavlink_msg_utm_global_position_get_alt(msg);
707 utm_global_position->relative_alt = mavlink_msg_utm_global_position_get_relative_alt(msg);
708 utm_global_position->next_lat = mavlink_msg_utm_global_position_get_next_lat(msg);
709 utm_global_position->next_lon = mavlink_msg_utm_global_position_get_next_lon(msg);
710 utm_global_position->next_alt = mavlink_msg_utm_global_position_get_next_alt(msg);
711 utm_global_position->vx = mavlink_msg_utm_global_position_get_vx(msg);
712 utm_global_position->vy = mavlink_msg_utm_global_position_get_vy(msg);
713 utm_global_position->vz = mavlink_msg_utm_global_position_get_vz(msg);
714 utm_global_position->h_acc = mavlink_msg_utm_global_position_get_h_acc(msg);
715 utm_global_position->v_acc = mavlink_msg_utm_global_position_get_v_acc(msg);
716 utm_global_position->vel_acc = mavlink_msg_utm_global_position_get_vel_acc(msg);
717 utm_global_position->update_rate = mavlink_msg_utm_global_position_get_update_rate(msg);
718 mavlink_msg_utm_global_position_get_uas_id(msg, utm_global_position->uas_id);
719 utm_global_position->flight_state = mavlink_msg_utm_global_position_get_flight_state(msg);
720 utm_global_position->flags = mavlink_msg_utm_global_position_get_flags(msg);
722 uint8_t len = msg->len < MAVLINK_MSG_ID_UTM_GLOBAL_POSITION_LEN? msg->len : MAVLINK_MSG_ID_UTM_GLOBAL_POSITION_LEN;
723 memset(utm_global_position, 0, MAVLINK_MSG_ID_UTM_GLOBAL_POSITION_LEN);
724 memcpy(utm_global_position, _MAV_PAYLOAD(msg), len);
#define MAVLINK_MSG_ID_UTM_GLOBAL_POSITION
Definition: mavlink_msg_utm_global_position.h:4
#define MAVLINK_MSG_ID_UTM_GLOBAL_POSITION_MIN_LEN
Definition: mavlink_msg_utm_global_position.h:29
#define MAVLINK_MSG_ID_UTM_GLOBAL_POSITION_CRC
Definition: mavlink_msg_utm_global_position.h:33
#define MAVLINK_MSG_ID_UTM_GLOBAL_POSITION_LEN
Definition: mavlink_msg_utm_global_position.h:28
Definition: mavlink_msg_utm_global_position.h:7
int32_t lon
Definition: mavlink_msg_utm_global_position.h:10
uint16_t vel_acc
Definition: mavlink_msg_utm_global_position.h:21
int32_t lat
Definition: mavlink_msg_utm_global_position.h:9
uint64_t time
Definition: mavlink_msg_utm_global_position.h:8
int16_t vz
Definition: mavlink_msg_utm_global_position.h:18
int16_t vx
Definition: mavlink_msg_utm_global_position.h:16
int32_t alt
Definition: mavlink_msg_utm_global_position.h:11
uint16_t update_rate
Definition: mavlink_msg_utm_global_position.h:22
int32_t next_alt
Definition: mavlink_msg_utm_global_position.h:15
uint16_t v_acc
Definition: mavlink_msg_utm_global_position.h:20
uint8_t flags
Definition: mavlink_msg_utm_global_position.h:25
uint16_t h_acc
Definition: mavlink_msg_utm_global_position.h:19
int32_t next_lon
Definition: mavlink_msg_utm_global_position.h:14
int16_t vy
Definition: mavlink_msg_utm_global_position.h:17
int32_t next_lat
Definition: mavlink_msg_utm_global_position.h:13
uint8_t flight_state
Definition: mavlink_msg_utm_global_position.h:24
int32_t relative_alt
Definition: mavlink_msg_utm_global_position.h:12