4#define MAVLINK_MSG_ID_GPS_RAW_INT 24
7typedef struct __mavlink_gps_raw_int_t {
17 uint8_t satellites_visible;
18 int32_t alt_ellipsoid;
24}) mavlink_gps_raw_int_t;
26#define MAVLINK_MSG_ID_GPS_RAW_INT_LEN 52
27#define MAVLINK_MSG_ID_GPS_RAW_INT_MIN_LEN 30
28#define MAVLINK_MSG_ID_24_LEN 52
29#define MAVLINK_MSG_ID_24_MIN_LEN 30
31#define MAVLINK_MSG_ID_GPS_RAW_INT_CRC 24
32#define MAVLINK_MSG_ID_24_CRC 24
36#if MAVLINK_COMMAND_24BIT
37#define MAVLINK_MESSAGE_INFO_GPS_RAW_INT {
41 { { "time_usec", NULL, MAVLINK_TYPE_UINT64_T, 0
, 0
, offsetof(mavlink_gps_raw_int_t, time_usec) },
42 { "fix_type", NULL, MAVLINK_TYPE_UINT8_T, 0
, 28
, offsetof(mavlink_gps_raw_int_t, fix_type) },
43 { "lat", NULL, MAVLINK_TYPE_INT32_T, 0
, 8
, offsetof(mavlink_gps_raw_int_t, lat) },
44 { "lon", NULL, MAVLINK_TYPE_INT32_T, 0
, 12
, offsetof(mavlink_gps_raw_int_t, lon) },
45 { "alt", NULL, MAVLINK_TYPE_INT32_T, 0
, 16
, offsetof(mavlink_gps_raw_int_t, alt) },
46 { "eph", NULL, MAVLINK_TYPE_UINT16_T, 0
, 20
, offsetof(mavlink_gps_raw_int_t, eph) },
47 { "epv", NULL, MAVLINK_TYPE_UINT16_T, 0
, 22
, offsetof(mavlink_gps_raw_int_t, epv) },
48 { "vel", NULL, MAVLINK_TYPE_UINT16_T, 0
, 24
, offsetof(mavlink_gps_raw_int_t, vel) },
49 { "cog", NULL, MAVLINK_TYPE_UINT16_T, 0
, 26
, offsetof(mavlink_gps_raw_int_t, cog) },
50 { "satellites_visible", NULL, MAVLINK_TYPE_UINT8_T, 0
, 29
, offsetof(mavlink_gps_raw_int_t, satellites_visible) },
51 { "alt_ellipsoid", NULL, MAVLINK_TYPE_INT32_T, 0
, 30
, offsetof(mavlink_gps_raw_int_t, alt_ellipsoid) },
52 { "h_acc", NULL, MAVLINK_TYPE_UINT32_T, 0
, 34
, offsetof(mavlink_gps_raw_int_t, h_acc) },
53 { "v_acc", NULL, MAVLINK_TYPE_UINT32_T, 0
, 38
, offsetof(mavlink_gps_raw_int_t, v_acc) },
54 { "vel_acc", NULL, MAVLINK_TYPE_UINT32_T, 0
, 42
, offsetof(mavlink_gps_raw_int_t, vel_acc) },
55 { "hdg_acc", NULL, MAVLINK_TYPE_UINT32_T, 0
, 46
, offsetof(mavlink_gps_raw_int_t, hdg_acc) },
56 { "yaw", NULL, MAVLINK_TYPE_UINT16_T, 0
, 50
, offsetof(mavlink_gps_raw_int_t, yaw) },
58}
60#define MAVLINK_MESSAGE_INFO_GPS_RAW_INT {
63 { { "time_usec", NULL, MAVLINK_TYPE_UINT64_T, 0
, 0
, offsetof(mavlink_gps_raw_int_t, time_usec) },
64 { "fix_type", NULL, MAVLINK_TYPE_UINT8_T, 0
, 28
, offsetof(mavlink_gps_raw_int_t, fix_type) },
65 { "lat", NULL, MAVLINK_TYPE_INT32_T, 0
, 8
, offsetof(mavlink_gps_raw_int_t, lat) },
66 { "lon", NULL, MAVLINK_TYPE_INT32_T, 0
, 12
, offsetof(mavlink_gps_raw_int_t, lon) },
67 { "alt", NULL, MAVLINK_TYPE_INT32_T, 0
, 16
, offsetof(mavlink_gps_raw_int_t, alt) },
68 { "eph", NULL, MAVLINK_TYPE_UINT16_T, 0
, 20
, offsetof(mavlink_gps_raw_int_t, eph) },
69 { "epv", NULL, MAVLINK_TYPE_UINT16_T, 0
, 22
, offsetof(mavlink_gps_raw_int_t, epv) },
70 { "vel", NULL, MAVLINK_TYPE_UINT16_T, 0
, 24
, offsetof(mavlink_gps_raw_int_t, vel) },
71 { "cog", NULL, MAVLINK_TYPE_UINT16_T, 0
, 26
, offsetof(mavlink_gps_raw_int_t, cog) },
72 { "satellites_visible", NULL, MAVLINK_TYPE_UINT8_T, 0
, 29
, offsetof(mavlink_gps_raw_int_t, satellites_visible) },
73 { "alt_ellipsoid", NULL, MAVLINK_TYPE_INT32_T, 0
, 30
, offsetof(mavlink_gps_raw_int_t, alt_ellipsoid) },
74 { "h_acc", NULL, MAVLINK_TYPE_UINT32_T, 0
, 34
, offsetof(mavlink_gps_raw_int_t, h_acc) },
75 { "v_acc", NULL, MAVLINK_TYPE_UINT32_T, 0
, 38
, offsetof(mavlink_gps_raw_int_t, v_acc) },
76 { "vel_acc", NULL, MAVLINK_TYPE_UINT32_T, 0
, 42
, offsetof(mavlink_gps_raw_int_t, vel_acc) },
77 { "hdg_acc", NULL, MAVLINK_TYPE_UINT32_T, 0
, 46
, offsetof(mavlink_gps_raw_int_t, hdg_acc) },
78 { "yaw", NULL, MAVLINK_TYPE_UINT16_T, 0
, 50
, offsetof(mavlink_gps_raw_int_t, yaw) },
80}
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107static inline uint16_t mavlink_msg_gps_raw_int_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
108 uint64_t time_usec, uint8_t fix_type, int32_t lat, int32_t lon, int32_t alt, uint16_t eph, uint16_t epv, uint16_t vel, uint16_t cog, uint8_t satellites_visible, int32_t alt_ellipsoid, uint32_t h_acc, uint32_t v_acc, uint32_t vel_acc, uint32_t hdg_acc, uint16_t yaw)
110#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
112 _mav_put_uint64_t(buf, 0, time_usec);
113 _mav_put_int32_t(buf, 8, lat);
114 _mav_put_int32_t(buf, 12, lon);
115 _mav_put_int32_t(buf, 16, alt);
116 _mav_put_uint16_t(buf, 20, eph);
117 _mav_put_uint16_t(buf, 22, epv);
118 _mav_put_uint16_t(buf, 24, vel);
119 _mav_put_uint16_t(buf, 26, cog);
120 _mav_put_uint8_t(buf, 28, fix_type);
121 _mav_put_uint8_t(buf, 29, satellites_visible);
122 _mav_put_int32_t(buf, 30, alt_ellipsoid);
123 _mav_put_uint32_t(buf, 34, h_acc);
124 _mav_put_uint32_t(buf, 38, v_acc);
125 _mav_put_uint32_t(buf, 42, vel_acc);
126 _mav_put_uint32_t(buf, 46, hdg_acc);
127 _mav_put_uint16_t(buf, 50, yaw);
131 mavlink_gps_raw_int_t packet;
132 packet.time_usec = time_usec;
140 packet.fix_type = fix_type;
141 packet.satellites_visible = satellites_visible;
142 packet.alt_ellipsoid = alt_ellipsoid;
143 packet.h_acc = h_acc;
144 packet.v_acc = v_acc;
145 packet.vel_acc = vel_acc;
146 packet.hdg_acc = hdg_acc;
149 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_GPS_RAW_INT_LEN);
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181static inline uint16_t mavlink_msg_gps_raw_int_pack_status(uint8_t system_id, uint8_t component_id, mavlink_status_t *_status, mavlink_message_t* msg,
182 uint64_t time_usec, uint8_t fix_type, int32_t lat, int32_t lon, int32_t alt, uint16_t eph, uint16_t epv, uint16_t vel, uint16_t cog, uint8_t satellites_visible, int32_t alt_ellipsoid, uint32_t h_acc, uint32_t v_acc, uint32_t vel_acc, uint32_t hdg_acc, uint16_t yaw)
184#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
186 _mav_put_uint64_t(buf, 0, time_usec);
187 _mav_put_int32_t(buf, 8, lat);
188 _mav_put_int32_t(buf, 12, lon);
189 _mav_put_int32_t(buf, 16, alt);
190 _mav_put_uint16_t(buf, 20, eph);
191 _mav_put_uint16_t(buf, 22, epv);
192 _mav_put_uint16_t(buf, 24, vel);
193 _mav_put_uint16_t(buf, 26, cog);
194 _mav_put_uint8_t(buf, 28, fix_type);
195 _mav_put_uint8_t(buf, 29, satellites_visible);
196 _mav_put_int32_t(buf, 30, alt_ellipsoid);
197 _mav_put_uint32_t(buf, 34, h_acc);
198 _mav_put_uint32_t(buf, 38, v_acc);
199 _mav_put_uint32_t(buf, 42, vel_acc);
200 _mav_put_uint32_t(buf, 46, hdg_acc);
201 _mav_put_uint16_t(buf, 50, yaw);
205 mavlink_gps_raw_int_t packet;
206 packet.time_usec = time_usec;
214 packet.fix_type = fix_type;
215 packet.satellites_visible = satellites_visible;
216 packet.alt_ellipsoid = alt_ellipsoid;
217 packet.h_acc = h_acc;
218 packet.v_acc = v_acc;
219 packet.vel_acc = vel_acc;
220 packet.hdg_acc = hdg_acc;
223 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_GPS_RAW_INT_LEN);
228 return mavlink_finalize_message_buffer(msg, system_id, component_id, _status, MAVLINK_MSG_ID_GPS_RAW_INT_MIN_LEN, MAVLINK_MSG_ID_GPS_RAW_INT_LEN, MAVLINK_MSG_ID_GPS_RAW_INT_CRC);
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258static inline uint16_t mavlink_msg_gps_raw_int_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
259 mavlink_message_t* msg,
260 uint64_t time_usec,uint8_t fix_type,int32_t lat,int32_t lon,int32_t alt,uint16_t eph,uint16_t epv,uint16_t vel,uint16_t cog,uint8_t satellites_visible,int32_t alt_ellipsoid,uint32_t h_acc,uint32_t v_acc,uint32_t vel_acc,uint32_t hdg_acc,uint16_t yaw)
262#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
264 _mav_put_uint64_t(buf, 0, time_usec);
265 _mav_put_int32_t(buf, 8, lat);
266 _mav_put_int32_t(buf, 12, lon);
267 _mav_put_int32_t(buf, 16, alt);
268 _mav_put_uint16_t(buf, 20, eph);
269 _mav_put_uint16_t(buf, 22, epv);
270 _mav_put_uint16_t(buf, 24, vel);
271 _mav_put_uint16_t(buf, 26, cog);
272 _mav_put_uint8_t(buf, 28, fix_type);
273 _mav_put_uint8_t(buf, 29, satellites_visible);
274 _mav_put_int32_t(buf, 30, alt_ellipsoid);
275 _mav_put_uint32_t(buf, 34, h_acc);
276 _mav_put_uint32_t(buf, 38, v_acc);
277 _mav_put_uint32_t(buf, 42, vel_acc);
278 _mav_put_uint32_t(buf, 46, hdg_acc);
279 _mav_put_uint16_t(buf, 50, yaw);
283 mavlink_gps_raw_int_t packet;
284 packet.time_usec = time_usec;
292 packet.fix_type = fix_type;
293 packet.satellites_visible = satellites_visible;
294 packet.alt_ellipsoid = alt_ellipsoid;
295 packet.h_acc = h_acc;
296 packet.v_acc = v_acc;
297 packet.vel_acc = vel_acc;
298 packet.hdg_acc = hdg_acc;
301 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_GPS_RAW_INT_LEN);
309
310
311
312
313
314
315
316static inline uint16_t mavlink_msg_gps_raw_int_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_gps_raw_int_t* gps_raw_int)
318 return mavlink_msg_gps_raw_int_pack(system_id, component_id, msg, gps_raw_int->time_usec, gps_raw_int->fix_type, gps_raw_int->lat, gps_raw_int->lon, gps_raw_int->alt, gps_raw_int->eph, gps_raw_int->epv, gps_raw_int->vel, gps_raw_int->cog, gps_raw_int->satellites_visible, gps_raw_int->alt_ellipsoid, gps_raw_int->h_acc, gps_raw_int->v_acc, gps_raw_int->vel_acc, gps_raw_int->hdg_acc, gps_raw_int->yaw);
322
323
324
325
326
327
328
329
330static inline uint16_t mavlink_msg_gps_raw_int_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_gps_raw_int_t* gps_raw_int)
332 return mavlink_msg_gps_raw_int_pack_chan(system_id, component_id, chan, msg, gps_raw_int->time_usec, gps_raw_int->fix_type, gps_raw_int->lat, gps_raw_int->lon, gps_raw_int->alt, gps_raw_int->eph, gps_raw_int->epv, gps_raw_int->vel, gps_raw_int->cog, gps_raw_int->satellites_visible, gps_raw_int->alt_ellipsoid, gps_raw_int->h_acc, gps_raw_int->v_acc, gps_raw_int->vel_acc, gps_raw_int->hdg_acc, gps_raw_int->yaw);
336
337
338
339
340
341
342
343
344static inline uint16_t mavlink_msg_gps_raw_int_encode_status(uint8_t system_id, uint8_t component_id, mavlink_status_t* _status, mavlink_message_t* msg,
const mavlink_gps_raw_int_t* gps_raw_int)
346 return mavlink_msg_gps_raw_int_pack_status(system_id, component_id, _status, msg, gps_raw_int->time_usec, gps_raw_int->fix_type, gps_raw_int->lat, gps_raw_int->lon, gps_raw_int->alt, gps_raw_int->eph, gps_raw_int->epv, gps_raw_int->vel, gps_raw_int->cog, gps_raw_int->satellites_visible, gps_raw_int->alt_ellipsoid, gps_raw_int->h_acc, gps_raw_int->v_acc, gps_raw_int->vel_acc, gps_raw_int->hdg_acc, gps_raw_int->yaw);
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
372static inline void mavlink_msg_gps_raw_int_send(mavlink_channel_t chan, uint64_t time_usec, uint8_t fix_type, int32_t lat, int32_t lon, int32_t alt, uint16_t eph, uint16_t epv, uint16_t vel, uint16_t cog, uint8_t satellites_visible, int32_t alt_ellipsoid, uint32_t h_acc, uint32_t v_acc, uint32_t vel_acc, uint32_t hdg_acc, uint16_t yaw)
374#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
375 char buf[MAVLINK_MSG_ID_GPS_RAW_INT_LEN];
376 _mav_put_uint64_t(buf, 0, time_usec);
377 _mav_put_int32_t(buf, 8, lat);
378 _mav_put_int32_t(buf, 12, lon);
379 _mav_put_int32_t(buf, 16, alt);
380 _mav_put_uint16_t(buf, 20, eph);
381 _mav_put_uint16_t(buf, 22, epv);
382 _mav_put_uint16_t(buf, 24, vel);
383 _mav_put_uint16_t(buf, 26, cog);
384 _mav_put_uint8_t(buf, 28, fix_type);
385 _mav_put_uint8_t(buf, 29, satellites_visible);
386 _mav_put_int32_t(buf, 30, alt_ellipsoid);
387 _mav_put_uint32_t(buf, 34, h_acc);
388 _mav_put_uint32_t(buf, 38, v_acc);
389 _mav_put_uint32_t(buf, 42, vel_acc);
390 _mav_put_uint32_t(buf, 46, hdg_acc);
391 _mav_put_uint16_t(buf, 50, yaw);
393 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_GPS_RAW_INT, buf, MAVLINK_MSG_ID_GPS_RAW_INT_MIN_LEN, MAVLINK_MSG_ID_GPS_RAW_INT_LEN, MAVLINK_MSG_ID_GPS_RAW_INT_CRC);
395 mavlink_gps_raw_int_t packet;
396 packet.time_usec = time_usec;
404 packet.fix_type = fix_type;
405 packet.satellites_visible = satellites_visible;
406 packet.alt_ellipsoid = alt_ellipsoid;
407 packet.h_acc = h_acc;
408 packet.v_acc = v_acc;
409 packet.vel_acc = vel_acc;
410 packet.hdg_acc = hdg_acc;
413 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_GPS_RAW_INT, (
const char *)&packet, MAVLINK_MSG_ID_GPS_RAW_INT_MIN_LEN, MAVLINK_MSG_ID_GPS_RAW_INT_LEN, MAVLINK_MSG_ID_GPS_RAW_INT_CRC);
418
419
420
421
422static inline void mavlink_msg_gps_raw_int_send_struct(mavlink_channel_t chan,
const mavlink_gps_raw_int_t* gps_raw_int)
424#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
425 mavlink_msg_gps_raw_int_send(chan, gps_raw_int->time_usec, gps_raw_int->fix_type, gps_raw_int->lat, gps_raw_int->lon, gps_raw_int->alt, gps_raw_int->eph, gps_raw_int->epv, gps_raw_int->vel, gps_raw_int->cog, gps_raw_int->satellites_visible, gps_raw_int->alt_ellipsoid, gps_raw_int->h_acc, gps_raw_int->v_acc, gps_raw_int->vel_acc, gps_raw_int->hdg_acc, gps_raw_int->yaw);
427 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_GPS_RAW_INT, (
const char *)gps_raw_int, MAVLINK_MSG_ID_GPS_RAW_INT_MIN_LEN, MAVLINK_MSG_ID_GPS_RAW_INT_LEN, MAVLINK_MSG_ID_GPS_RAW_INT_CRC);
431#if MAVLINK_MSG_ID_GPS_RAW_INT_LEN <= MAVLINK_MAX_PAYLOAD_LEN
433
434
435
436
437
438
439static inline void mavlink_msg_gps_raw_int_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint64_t time_usec, uint8_t fix_type, int32_t lat, int32_t lon, int32_t alt, uint16_t eph, uint16_t epv, uint16_t vel, uint16_t cog, uint8_t satellites_visible, int32_t alt_ellipsoid, uint32_t h_acc, uint32_t v_acc, uint32_t vel_acc, uint32_t hdg_acc, uint16_t yaw)
441#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
442 char *buf = (
char *)msgbuf;
443 _mav_put_uint64_t(buf, 0, time_usec);
444 _mav_put_int32_t(buf, 8, lat);
445 _mav_put_int32_t(buf, 12, lon);
446 _mav_put_int32_t(buf, 16, alt);
447 _mav_put_uint16_t(buf, 20, eph);
448 _mav_put_uint16_t(buf, 22, epv);
449 _mav_put_uint16_t(buf, 24, vel);
450 _mav_put_uint16_t(buf, 26, cog);
451 _mav_put_uint8_t(buf, 28, fix_type);
452 _mav_put_uint8_t(buf, 29, satellites_visible);
453 _mav_put_int32_t(buf, 30, alt_ellipsoid);
454 _mav_put_uint32_t(buf, 34, h_acc);
455 _mav_put_uint32_t(buf, 38, v_acc);
456 _mav_put_uint32_t(buf, 42, vel_acc);
457 _mav_put_uint32_t(buf, 46, hdg_acc);
458 _mav_put_uint16_t(buf, 50, yaw);
460 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_GPS_RAW_INT, buf, MAVLINK_MSG_ID_GPS_RAW_INT_MIN_LEN, MAVLINK_MSG_ID_GPS_RAW_INT_LEN, MAVLINK_MSG_ID_GPS_RAW_INT_CRC);
462 mavlink_gps_raw_int_t *packet = (mavlink_gps_raw_int_t *)msgbuf;
463 packet->time_usec = time_usec;
471 packet->fix_type = fix_type;
472 packet->satellites_visible = satellites_visible;
473 packet->alt_ellipsoid = alt_ellipsoid;
474 packet->h_acc = h_acc;
475 packet->v_acc = v_acc;
476 packet->vel_acc = vel_acc;
477 packet->hdg_acc = hdg_acc;
480 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_GPS_RAW_INT, (
const char *)packet, MAVLINK_MSG_ID_GPS_RAW_INT_MIN_LEN, MAVLINK_MSG_ID_GPS_RAW_INT_LEN, MAVLINK_MSG_ID_GPS_RAW_INT_CRC);
491
492
493
494
495static inline uint64_t mavlink_msg_gps_raw_int_get_time_usec(
const mavlink_message_t* msg)
497 return _MAV_RETURN_uint64_t(msg, 0);
501
502
503
504
505static inline uint8_t mavlink_msg_gps_raw_int_get_fix_type(
const mavlink_message_t* msg)
507 return _MAV_RETURN_uint8_t(msg, 28);
511
512
513
514
515static inline int32_t mavlink_msg_gps_raw_int_get_lat(
const mavlink_message_t* msg)
517 return _MAV_RETURN_int32_t(msg, 8);
521
522
523
524
525static inline int32_t mavlink_msg_gps_raw_int_get_lon(
const mavlink_message_t* msg)
527 return _MAV_RETURN_int32_t(msg, 12);
531
532
533
534
535static inline int32_t mavlink_msg_gps_raw_int_get_alt(
const mavlink_message_t* msg)
537 return _MAV_RETURN_int32_t(msg, 16);
541
542
543
544
545static inline uint16_t mavlink_msg_gps_raw_int_get_eph(
const mavlink_message_t* msg)
547 return _MAV_RETURN_uint16_t(msg, 20);
551
552
553
554
555static inline uint16_t mavlink_msg_gps_raw_int_get_epv(
const mavlink_message_t* msg)
557 return _MAV_RETURN_uint16_t(msg, 22);
561
562
563
564
565static inline uint16_t mavlink_msg_gps_raw_int_get_vel(
const mavlink_message_t* msg)
567 return _MAV_RETURN_uint16_t(msg, 24);
571
572
573
574
575static inline uint16_t mavlink_msg_gps_raw_int_get_cog(
const mavlink_message_t* msg)
577 return _MAV_RETURN_uint16_t(msg, 26);
581
582
583
584
585static inline uint8_t mavlink_msg_gps_raw_int_get_satellites_visible(
const mavlink_message_t* msg)
587 return _MAV_RETURN_uint8_t(msg, 29);
591
592
593
594
595static inline int32_t mavlink_msg_gps_raw_int_get_alt_ellipsoid(
const mavlink_message_t* msg)
597 return _MAV_RETURN_int32_t(msg, 30);
601
602
603
604
605static inline uint32_t mavlink_msg_gps_raw_int_get_h_acc(
const mavlink_message_t* msg)
607 return _MAV_RETURN_uint32_t(msg, 34);
611
612
613
614
615static inline uint32_t mavlink_msg_gps_raw_int_get_v_acc(
const mavlink_message_t* msg)
617 return _MAV_RETURN_uint32_t(msg, 38);
621
622
623
624
625static inline uint32_t mavlink_msg_gps_raw_int_get_vel_acc(
const mavlink_message_t* msg)
627 return _MAV_RETURN_uint32_t(msg, 42);
631
632
633
634
635static inline uint32_t mavlink_msg_gps_raw_int_get_hdg_acc(
const mavlink_message_t* msg)
637 return _MAV_RETURN_uint32_t(msg, 46);
641
642
643
644
645static inline uint16_t mavlink_msg_gps_raw_int_get_yaw(
const mavlink_message_t* msg)
647 return _MAV_RETURN_uint16_t(msg, 50);
651
652
653
654
655
656static inline void mavlink_msg_gps_raw_int_decode(
const mavlink_message_t* msg, mavlink_gps_raw_int_t* gps_raw_int)
658#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
659 gps_raw_int->time_usec = mavlink_msg_gps_raw_int_get_time_usec(msg);
660 gps_raw_int->lat = mavlink_msg_gps_raw_int_get_lat(msg);
661 gps_raw_int->lon = mavlink_msg_gps_raw_int_get_lon(msg);
662 gps_raw_int->alt = mavlink_msg_gps_raw_int_get_alt(msg);
663 gps_raw_int->eph = mavlink_msg_gps_raw_int_get_eph(msg);
664 gps_raw_int->epv = mavlink_msg_gps_raw_int_get_epv(msg);
665 gps_raw_int->vel = mavlink_msg_gps_raw_int_get_vel(msg);
666 gps_raw_int->cog = mavlink_msg_gps_raw_int_get_cog(msg);
667 gps_raw_int->fix_type = mavlink_msg_gps_raw_int_get_fix_type(msg);
668 gps_raw_int->satellites_visible = mavlink_msg_gps_raw_int_get_satellites_visible(msg);
669 gps_raw_int->alt_ellipsoid = mavlink_msg_gps_raw_int_get_alt_ellipsoid(msg);
670 gps_raw_int->h_acc = mavlink_msg_gps_raw_int_get_h_acc(msg);
671 gps_raw_int->v_acc = mavlink_msg_gps_raw_int_get_v_acc(msg);
672 gps_raw_int->vel_acc = mavlink_msg_gps_raw_int_get_vel_acc(msg);
673 gps_raw_int->hdg_acc = mavlink_msg_gps_raw_int_get_hdg_acc(msg);
674 gps_raw_int->yaw = mavlink_msg_gps_raw_int_get_yaw(msg);
676 uint8_t len = msg->len < MAVLINK_MSG_ID_GPS_RAW_INT_LEN? msg->len : MAVLINK_MSG_ID_GPS_RAW_INT_LEN;
677 memset(gps_raw_int, 0, MAVLINK_MSG_ID_GPS_RAW_INT_LEN);
678 memcpy(gps_raw_int, _MAV_PAYLOAD(msg), len);
#define MAVLINK_MSG_ID_GPS_RAW_INT_LEN
Definition: mavlink_msg_gps_raw_int.h:26
#define MAVLINK_MSG_ID_GPS_RAW_INT
Definition: mavlink_msg_gps_raw_int.h:4
#define MAVLINK_MSG_ID_GPS_RAW_INT_MIN_LEN
Definition: mavlink_msg_gps_raw_int.h:27
#define MAVLINK_MSG_ID_GPS_RAW_INT_CRC
Definition: mavlink_msg_gps_raw_int.h:31