4#define MAVLINK_MSG_ID_GPS2_RAW 124
7typedef struct __mavlink_gps2_raw_t {
18 uint8_t satellites_visible;
21 int32_t alt_ellipsoid;
28#define MAVLINK_MSG_ID_GPS2_RAW_LEN 57
29#define MAVLINK_MSG_ID_GPS2_RAW_MIN_LEN 35
30#define MAVLINK_MSG_ID_124_LEN 57
31#define MAVLINK_MSG_ID_124_MIN_LEN 35
33#define MAVLINK_MSG_ID_GPS2_RAW_CRC 87
34#define MAVLINK_MSG_ID_124_CRC 87
38#if MAVLINK_COMMAND_24BIT
39#define MAVLINK_MESSAGE_INFO_GPS2_RAW {
43 { { "time_usec", NULL, MAVLINK_TYPE_UINT64_T, 0
, 0
, offsetof(mavlink_gps2_raw_t, time_usec) },
44 { "fix_type", NULL, MAVLINK_TYPE_UINT8_T, 0
, 32
, offsetof(mavlink_gps2_raw_t, fix_type) },
45 { "lat", NULL, MAVLINK_TYPE_INT32_T, 0
, 8
, offsetof(mavlink_gps2_raw_t, lat) },
46 { "lon", NULL, MAVLINK_TYPE_INT32_T, 0
, 12
, offsetof(mavlink_gps2_raw_t, lon) },
47 { "alt", NULL, MAVLINK_TYPE_INT32_T, 0
, 16
, offsetof(mavlink_gps2_raw_t, alt) },
48 { "eph", NULL, MAVLINK_TYPE_UINT16_T, 0
, 24
, offsetof(mavlink_gps2_raw_t, eph) },
49 { "epv", NULL, MAVLINK_TYPE_UINT16_T, 0
, 26
, offsetof(mavlink_gps2_raw_t, epv) },
50 { "vel", NULL, MAVLINK_TYPE_UINT16_T, 0
, 28
, offsetof(mavlink_gps2_raw_t, vel) },
51 { "cog", NULL, MAVLINK_TYPE_UINT16_T, 0
, 30
, offsetof(mavlink_gps2_raw_t, cog) },
52 { "satellites_visible", NULL, MAVLINK_TYPE_UINT8_T, 0
, 33
, offsetof(mavlink_gps2_raw_t, satellites_visible) },
53 { "dgps_numch", NULL, MAVLINK_TYPE_UINT8_T, 0
, 34
, offsetof(mavlink_gps2_raw_t, dgps_numch) },
54 { "dgps_age", NULL, MAVLINK_TYPE_UINT32_T, 0
, 20
, offsetof(mavlink_gps2_raw_t, dgps_age) },
55 { "yaw", NULL, MAVLINK_TYPE_UINT16_T, 0
, 35
, offsetof(mavlink_gps2_raw_t, yaw) },
56 { "alt_ellipsoid", NULL, MAVLINK_TYPE_INT32_T, 0
, 37
, offsetof(mavlink_gps2_raw_t, alt_ellipsoid) },
57 { "h_acc", NULL, MAVLINK_TYPE_UINT32_T, 0
, 41
, offsetof(mavlink_gps2_raw_t, h_acc) },
58 { "v_acc", NULL, MAVLINK_TYPE_UINT32_T, 0
, 45
, offsetof(mavlink_gps2_raw_t, v_acc) },
59 { "vel_acc", NULL, MAVLINK_TYPE_UINT32_T, 0
, 49
, offsetof(mavlink_gps2_raw_t, vel_acc) },
60 { "hdg_acc", NULL, MAVLINK_TYPE_UINT32_T, 0
, 53
, offsetof(mavlink_gps2_raw_t, hdg_acc) },
62}
64#define MAVLINK_MESSAGE_INFO_GPS2_RAW {
67 { { "time_usec", NULL, MAVLINK_TYPE_UINT64_T, 0
, 0
, offsetof(mavlink_gps2_raw_t, time_usec) },
68 { "fix_type", NULL, MAVLINK_TYPE_UINT8_T, 0
, 32
, offsetof(mavlink_gps2_raw_t, fix_type) },
69 { "lat", NULL, MAVLINK_TYPE_INT32_T, 0
, 8
, offsetof(mavlink_gps2_raw_t, lat) },
70 { "lon", NULL, MAVLINK_TYPE_INT32_T, 0
, 12
, offsetof(mavlink_gps2_raw_t, lon) },
71 { "alt", NULL, MAVLINK_TYPE_INT32_T, 0
, 16
, offsetof(mavlink_gps2_raw_t, alt) },
72 { "eph", NULL, MAVLINK_TYPE_UINT16_T, 0
, 24
, offsetof(mavlink_gps2_raw_t, eph) },
73 { "epv", NULL, MAVLINK_TYPE_UINT16_T, 0
, 26
, offsetof(mavlink_gps2_raw_t, epv) },
74 { "vel", NULL, MAVLINK_TYPE_UINT16_T, 0
, 28
, offsetof(mavlink_gps2_raw_t, vel) },
75 { "cog", NULL, MAVLINK_TYPE_UINT16_T, 0
, 30
, offsetof(mavlink_gps2_raw_t, cog) },
76 { "satellites_visible", NULL, MAVLINK_TYPE_UINT8_T, 0
, 33
, offsetof(mavlink_gps2_raw_t, satellites_visible) },
77 { "dgps_numch", NULL, MAVLINK_TYPE_UINT8_T, 0
, 34
, offsetof(mavlink_gps2_raw_t, dgps_numch) },
78 { "dgps_age", NULL, MAVLINK_TYPE_UINT32_T, 0
, 20
, offsetof(mavlink_gps2_raw_t, dgps_age) },
79 { "yaw", NULL, MAVLINK_TYPE_UINT16_T, 0
, 35
, offsetof(mavlink_gps2_raw_t, yaw) },
80 { "alt_ellipsoid", NULL, MAVLINK_TYPE_INT32_T, 0
, 37
, offsetof(mavlink_gps2_raw_t, alt_ellipsoid) },
81 { "h_acc", NULL, MAVLINK_TYPE_UINT32_T, 0
, 41
, offsetof(mavlink_gps2_raw_t, h_acc) },
82 { "v_acc", NULL, MAVLINK_TYPE_UINT32_T, 0
, 45
, offsetof(mavlink_gps2_raw_t, v_acc) },
83 { "vel_acc", NULL, MAVLINK_TYPE_UINT32_T, 0
, 49
, offsetof(mavlink_gps2_raw_t, vel_acc) },
84 { "hdg_acc", NULL, MAVLINK_TYPE_UINT32_T, 0
, 53
, offsetof(mavlink_gps2_raw_t, hdg_acc) },
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_gps2_raw_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
116 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, uint8_t dgps_numch, uint32_t dgps_age, uint16_t yaw, int32_t alt_ellipsoid, uint32_t h_acc, uint32_t v_acc, uint32_t vel_acc, uint32_t hdg_acc)
118#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
120 _mav_put_uint64_t(buf, 0, time_usec);
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_uint32_t(buf, 20, dgps_age);
125 _mav_put_uint16_t(buf, 24, eph);
126 _mav_put_uint16_t(buf, 26, epv);
127 _mav_put_uint16_t(buf, 28, vel);
128 _mav_put_uint16_t(buf, 30, cog);
129 _mav_put_uint8_t(buf, 32, fix_type);
130 _mav_put_uint8_t(buf, 33, satellites_visible);
131 _mav_put_uint8_t(buf, 34, dgps_numch);
132 _mav_put_uint16_t(buf, 35, yaw);
133 _mav_put_int32_t(buf, 37, alt_ellipsoid);
134 _mav_put_uint32_t(buf, 41, h_acc);
135 _mav_put_uint32_t(buf, 45, v_acc);
136 _mav_put_uint32_t(buf, 49, vel_acc);
137 _mav_put_uint32_t(buf, 53, hdg_acc);
141 mavlink_gps2_raw_t packet;
142 packet.time_usec = time_usec;
146 packet.dgps_age = dgps_age;
151 packet.fix_type = fix_type;
152 packet.satellites_visible = satellites_visible;
153 packet.dgps_numch = dgps_numch;
155 packet.alt_ellipsoid = alt_ellipsoid;
156 packet.h_acc = h_acc;
157 packet.v_acc = v_acc;
158 packet.vel_acc = vel_acc;
159 packet.hdg_acc = hdg_acc;
161 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_GPS2_RAW_LEN);
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195static inline uint16_t mavlink_msg_gps2_raw_pack_status(uint8_t system_id, uint8_t component_id, mavlink_status_t *_status, mavlink_message_t* msg,
196 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, uint8_t dgps_numch, uint32_t dgps_age, uint16_t yaw, int32_t alt_ellipsoid, uint32_t h_acc, uint32_t v_acc, uint32_t vel_acc, uint32_t hdg_acc)
198#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
200 _mav_put_uint64_t(buf, 0, time_usec);
201 _mav_put_int32_t(buf, 8, lat);
202 _mav_put_int32_t(buf, 12, lon);
203 _mav_put_int32_t(buf, 16, alt);
204 _mav_put_uint32_t(buf, 20, dgps_age);
205 _mav_put_uint16_t(buf, 24, eph);
206 _mav_put_uint16_t(buf, 26, epv);
207 _mav_put_uint16_t(buf, 28, vel);
208 _mav_put_uint16_t(buf, 30, cog);
209 _mav_put_uint8_t(buf, 32, fix_type);
210 _mav_put_uint8_t(buf, 33, satellites_visible);
211 _mav_put_uint8_t(buf, 34, dgps_numch);
212 _mav_put_uint16_t(buf, 35, yaw);
213 _mav_put_int32_t(buf, 37, alt_ellipsoid);
214 _mav_put_uint32_t(buf, 41, h_acc);
215 _mav_put_uint32_t(buf, 45, v_acc);
216 _mav_put_uint32_t(buf, 49, vel_acc);
217 _mav_put_uint32_t(buf, 53, hdg_acc);
221 mavlink_gps2_raw_t packet;
222 packet.time_usec = time_usec;
226 packet.dgps_age = dgps_age;
231 packet.fix_type = fix_type;
232 packet.satellites_visible = satellites_visible;
233 packet.dgps_numch = dgps_numch;
235 packet.alt_ellipsoid = alt_ellipsoid;
236 packet.h_acc = h_acc;
237 packet.v_acc = v_acc;
238 packet.vel_acc = vel_acc;
239 packet.hdg_acc = hdg_acc;
241 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_GPS2_RAW_LEN);
246 return mavlink_finalize_message_buffer(msg, system_id, component_id, _status, MAVLINK_MSG_ID_GPS2_RAW_MIN_LEN, MAVLINK_MSG_ID_GPS2_RAW_LEN, MAVLINK_MSG_ID_GPS2_RAW_CRC);
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278static inline uint16_t mavlink_msg_gps2_raw_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
279 mavlink_message_t* msg,
280 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,uint8_t dgps_numch,uint32_t dgps_age,uint16_t yaw,int32_t alt_ellipsoid,uint32_t h_acc,uint32_t v_acc,uint32_t vel_acc,uint32_t hdg_acc)
282#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
284 _mav_put_uint64_t(buf, 0, time_usec);
285 _mav_put_int32_t(buf, 8, lat);
286 _mav_put_int32_t(buf, 12, lon);
287 _mav_put_int32_t(buf, 16, alt);
288 _mav_put_uint32_t(buf, 20, dgps_age);
289 _mav_put_uint16_t(buf, 24, eph);
290 _mav_put_uint16_t(buf, 26, epv);
291 _mav_put_uint16_t(buf, 28, vel);
292 _mav_put_uint16_t(buf, 30, cog);
293 _mav_put_uint8_t(buf, 32, fix_type);
294 _mav_put_uint8_t(buf, 33, satellites_visible);
295 _mav_put_uint8_t(buf, 34, dgps_numch);
296 _mav_put_uint16_t(buf, 35, yaw);
297 _mav_put_int32_t(buf, 37, alt_ellipsoid);
298 _mav_put_uint32_t(buf, 41, h_acc);
299 _mav_put_uint32_t(buf, 45, v_acc);
300 _mav_put_uint32_t(buf, 49, vel_acc);
301 _mav_put_uint32_t(buf, 53, hdg_acc);
305 mavlink_gps2_raw_t packet;
306 packet.time_usec = time_usec;
310 packet.dgps_age = dgps_age;
315 packet.fix_type = fix_type;
316 packet.satellites_visible = satellites_visible;
317 packet.dgps_numch = dgps_numch;
319 packet.alt_ellipsoid = alt_ellipsoid;
320 packet.h_acc = h_acc;
321 packet.v_acc = v_acc;
322 packet.vel_acc = vel_acc;
323 packet.hdg_acc = hdg_acc;
325 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_GPS2_RAW_LEN);
333
334
335
336
337
338
339
340static inline uint16_t mavlink_msg_gps2_raw_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_gps2_raw_t* gps2_raw)
342 return mavlink_msg_gps2_raw_pack(system_id, component_id, msg, gps2_raw->time_usec, gps2_raw->fix_type, gps2_raw->lat, gps2_raw->lon, gps2_raw->alt, gps2_raw->eph, gps2_raw->epv, gps2_raw->vel, gps2_raw->cog, gps2_raw->satellites_visible, gps2_raw->dgps_numch, gps2_raw->dgps_age, gps2_raw->yaw, gps2_raw->alt_ellipsoid, gps2_raw->h_acc, gps2_raw->v_acc, gps2_raw->vel_acc, gps2_raw->hdg_acc);
346
347
348
349
350
351
352
353
354static inline uint16_t mavlink_msg_gps2_raw_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_gps2_raw_t* gps2_raw)
356 return mavlink_msg_gps2_raw_pack_chan(system_id, component_id, chan, msg, gps2_raw->time_usec, gps2_raw->fix_type, gps2_raw->lat, gps2_raw->lon, gps2_raw->alt, gps2_raw->eph, gps2_raw->epv, gps2_raw->vel, gps2_raw->cog, gps2_raw->satellites_visible, gps2_raw->dgps_numch, gps2_raw->dgps_age, gps2_raw->yaw, gps2_raw->alt_ellipsoid, gps2_raw->h_acc, gps2_raw->v_acc, gps2_raw->vel_acc, gps2_raw->hdg_acc);
360
361
362
363
364
365
366
367
368static inline uint16_t mavlink_msg_gps2_raw_encode_status(uint8_t system_id, uint8_t component_id, mavlink_status_t* _status, mavlink_message_t* msg,
const mavlink_gps2_raw_t* gps2_raw)
370 return mavlink_msg_gps2_raw_pack_status(system_id, component_id, _status, msg, gps2_raw->time_usec, gps2_raw->fix_type, gps2_raw->lat, gps2_raw->lon, gps2_raw->alt, gps2_raw->eph, gps2_raw->epv, gps2_raw->vel, gps2_raw->cog, gps2_raw->satellites_visible, gps2_raw->dgps_numch, gps2_raw->dgps_age, gps2_raw->yaw, gps2_raw->alt_ellipsoid, gps2_raw->h_acc, gps2_raw->v_acc, gps2_raw->vel_acc, gps2_raw->hdg_acc);
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
398static inline void mavlink_msg_gps2_raw_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, uint8_t dgps_numch, uint32_t dgps_age, uint16_t yaw, int32_t alt_ellipsoid, uint32_t h_acc, uint32_t v_acc, uint32_t vel_acc, uint32_t hdg_acc)
400#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
401 char buf[MAVLINK_MSG_ID_GPS2_RAW_LEN];
402 _mav_put_uint64_t(buf, 0, time_usec);
403 _mav_put_int32_t(buf, 8, lat);
404 _mav_put_int32_t(buf, 12, lon);
405 _mav_put_int32_t(buf, 16, alt);
406 _mav_put_uint32_t(buf, 20, dgps_age);
407 _mav_put_uint16_t(buf, 24, eph);
408 _mav_put_uint16_t(buf, 26, epv);
409 _mav_put_uint16_t(buf, 28, vel);
410 _mav_put_uint16_t(buf, 30, cog);
411 _mav_put_uint8_t(buf, 32, fix_type);
412 _mav_put_uint8_t(buf, 33, satellites_visible);
413 _mav_put_uint8_t(buf, 34, dgps_numch);
414 _mav_put_uint16_t(buf, 35, yaw);
415 _mav_put_int32_t(buf, 37, alt_ellipsoid);
416 _mav_put_uint32_t(buf, 41, h_acc);
417 _mav_put_uint32_t(buf, 45, v_acc);
418 _mav_put_uint32_t(buf, 49, vel_acc);
419 _mav_put_uint32_t(buf, 53, hdg_acc);
421 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_GPS2_RAW, buf, MAVLINK_MSG_ID_GPS2_RAW_MIN_LEN, MAVLINK_MSG_ID_GPS2_RAW_LEN, MAVLINK_MSG_ID_GPS2_RAW_CRC);
423 mavlink_gps2_raw_t packet;
424 packet.time_usec = time_usec;
428 packet.dgps_age = dgps_age;
433 packet.fix_type = fix_type;
434 packet.satellites_visible = satellites_visible;
435 packet.dgps_numch = dgps_numch;
437 packet.alt_ellipsoid = alt_ellipsoid;
438 packet.h_acc = h_acc;
439 packet.v_acc = v_acc;
440 packet.vel_acc = vel_acc;
441 packet.hdg_acc = hdg_acc;
443 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_GPS2_RAW, (
const char *)&packet, MAVLINK_MSG_ID_GPS2_RAW_MIN_LEN, MAVLINK_MSG_ID_GPS2_RAW_LEN, MAVLINK_MSG_ID_GPS2_RAW_CRC);
448
449
450
451
452static inline void mavlink_msg_gps2_raw_send_struct(mavlink_channel_t chan,
const mavlink_gps2_raw_t* gps2_raw)
454#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
455 mavlink_msg_gps2_raw_send(chan, gps2_raw->time_usec, gps2_raw->fix_type, gps2_raw->lat, gps2_raw->lon, gps2_raw->alt, gps2_raw->eph, gps2_raw->epv, gps2_raw->vel, gps2_raw->cog, gps2_raw->satellites_visible, gps2_raw->dgps_numch, gps2_raw->dgps_age, gps2_raw->yaw, gps2_raw->alt_ellipsoid, gps2_raw->h_acc, gps2_raw->v_acc, gps2_raw->vel_acc, gps2_raw->hdg_acc);
457 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_GPS2_RAW, (
const char *)gps2_raw, MAVLINK_MSG_ID_GPS2_RAW_MIN_LEN, MAVLINK_MSG_ID_GPS2_RAW_LEN, MAVLINK_MSG_ID_GPS2_RAW_CRC);
461#if MAVLINK_MSG_ID_GPS2_RAW_LEN <= MAVLINK_MAX_PAYLOAD_LEN
463
464
465
466
467
468
469static inline void mavlink_msg_gps2_raw_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, uint8_t dgps_numch, uint32_t dgps_age, uint16_t yaw, int32_t alt_ellipsoid, uint32_t h_acc, uint32_t v_acc, uint32_t vel_acc, uint32_t hdg_acc)
471#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
472 char *buf = (
char *)msgbuf;
473 _mav_put_uint64_t(buf, 0, time_usec);
474 _mav_put_int32_t(buf, 8, lat);
475 _mav_put_int32_t(buf, 12, lon);
476 _mav_put_int32_t(buf, 16, alt);
477 _mav_put_uint32_t(buf, 20, dgps_age);
478 _mav_put_uint16_t(buf, 24, eph);
479 _mav_put_uint16_t(buf, 26, epv);
480 _mav_put_uint16_t(buf, 28, vel);
481 _mav_put_uint16_t(buf, 30, cog);
482 _mav_put_uint8_t(buf, 32, fix_type);
483 _mav_put_uint8_t(buf, 33, satellites_visible);
484 _mav_put_uint8_t(buf, 34, dgps_numch);
485 _mav_put_uint16_t(buf, 35, yaw);
486 _mav_put_int32_t(buf, 37, alt_ellipsoid);
487 _mav_put_uint32_t(buf, 41, h_acc);
488 _mav_put_uint32_t(buf, 45, v_acc);
489 _mav_put_uint32_t(buf, 49, vel_acc);
490 _mav_put_uint32_t(buf, 53, hdg_acc);
492 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_GPS2_RAW, buf, MAVLINK_MSG_ID_GPS2_RAW_MIN_LEN, MAVLINK_MSG_ID_GPS2_RAW_LEN, MAVLINK_MSG_ID_GPS2_RAW_CRC);
494 mavlink_gps2_raw_t *packet = (mavlink_gps2_raw_t *)msgbuf;
495 packet->time_usec = time_usec;
499 packet->dgps_age = dgps_age;
504 packet->fix_type = fix_type;
505 packet->satellites_visible = satellites_visible;
506 packet->dgps_numch = dgps_numch;
508 packet->alt_ellipsoid = alt_ellipsoid;
509 packet->h_acc = h_acc;
510 packet->v_acc = v_acc;
511 packet->vel_acc = vel_acc;
512 packet->hdg_acc = hdg_acc;
514 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_GPS2_RAW, (
const char *)packet, MAVLINK_MSG_ID_GPS2_RAW_MIN_LEN, MAVLINK_MSG_ID_GPS2_RAW_LEN, MAVLINK_MSG_ID_GPS2_RAW_CRC);
525
526
527
528
529static inline uint64_t mavlink_msg_gps2_raw_get_time_usec(
const mavlink_message_t* msg)
531 return _MAV_RETURN_uint64_t(msg, 0);
535
536
537
538
539static inline uint8_t mavlink_msg_gps2_raw_get_fix_type(
const mavlink_message_t* msg)
541 return _MAV_RETURN_uint8_t(msg, 32);
545
546
547
548
549static inline int32_t mavlink_msg_gps2_raw_get_lat(
const mavlink_message_t* msg)
551 return _MAV_RETURN_int32_t(msg, 8);
555
556
557
558
559static inline int32_t mavlink_msg_gps2_raw_get_lon(
const mavlink_message_t* msg)
561 return _MAV_RETURN_int32_t(msg, 12);
565
566
567
568
569static inline int32_t mavlink_msg_gps2_raw_get_alt(
const mavlink_message_t* msg)
571 return _MAV_RETURN_int32_t(msg, 16);
575
576
577
578
579static inline uint16_t mavlink_msg_gps2_raw_get_eph(
const mavlink_message_t* msg)
581 return _MAV_RETURN_uint16_t(msg, 24);
585
586
587
588
589static inline uint16_t mavlink_msg_gps2_raw_get_epv(
const mavlink_message_t* msg)
591 return _MAV_RETURN_uint16_t(msg, 26);
595
596
597
598
599static inline uint16_t mavlink_msg_gps2_raw_get_vel(
const mavlink_message_t* msg)
601 return _MAV_RETURN_uint16_t(msg, 28);
605
606
607
608
609static inline uint16_t mavlink_msg_gps2_raw_get_cog(
const mavlink_message_t* msg)
611 return _MAV_RETURN_uint16_t(msg, 30);
615
616
617
618
619static inline uint8_t mavlink_msg_gps2_raw_get_satellites_visible(
const mavlink_message_t* msg)
621 return _MAV_RETURN_uint8_t(msg, 33);
625
626
627
628
629static inline uint8_t mavlink_msg_gps2_raw_get_dgps_numch(
const mavlink_message_t* msg)
631 return _MAV_RETURN_uint8_t(msg, 34);
635
636
637
638
639static inline uint32_t mavlink_msg_gps2_raw_get_dgps_age(
const mavlink_message_t* msg)
641 return _MAV_RETURN_uint32_t(msg, 20);
645
646
647
648
649static inline uint16_t mavlink_msg_gps2_raw_get_yaw(
const mavlink_message_t* msg)
651 return _MAV_RETURN_uint16_t(msg, 35);
655
656
657
658
659static inline int32_t mavlink_msg_gps2_raw_get_alt_ellipsoid(
const mavlink_message_t* msg)
661 return _MAV_RETURN_int32_t(msg, 37);
665
666
667
668
669static inline uint32_t mavlink_msg_gps2_raw_get_h_acc(
const mavlink_message_t* msg)
671 return _MAV_RETURN_uint32_t(msg, 41);
675
676
677
678
679static inline uint32_t mavlink_msg_gps2_raw_get_v_acc(
const mavlink_message_t* msg)
681 return _MAV_RETURN_uint32_t(msg, 45);
685
686
687
688
689static inline uint32_t mavlink_msg_gps2_raw_get_vel_acc(
const mavlink_message_t* msg)
691 return _MAV_RETURN_uint32_t(msg, 49);
695
696
697
698
699static inline uint32_t mavlink_msg_gps2_raw_get_hdg_acc(
const mavlink_message_t* msg)
701 return _MAV_RETURN_uint32_t(msg, 53);
705
706
707
708
709
710static inline void mavlink_msg_gps2_raw_decode(
const mavlink_message_t* msg, mavlink_gps2_raw_t* gps2_raw)
712#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
713 gps2_raw->time_usec = mavlink_msg_gps2_raw_get_time_usec(msg);
714 gps2_raw->lat = mavlink_msg_gps2_raw_get_lat(msg);
715 gps2_raw->lon = mavlink_msg_gps2_raw_get_lon(msg);
716 gps2_raw->alt = mavlink_msg_gps2_raw_get_alt(msg);
717 gps2_raw->dgps_age = mavlink_msg_gps2_raw_get_dgps_age(msg);
718 gps2_raw->eph = mavlink_msg_gps2_raw_get_eph(msg);
719 gps2_raw->epv = mavlink_msg_gps2_raw_get_epv(msg);
720 gps2_raw->vel = mavlink_msg_gps2_raw_get_vel(msg);
721 gps2_raw->cog = mavlink_msg_gps2_raw_get_cog(msg);
722 gps2_raw->fix_type = mavlink_msg_gps2_raw_get_fix_type(msg);
723 gps2_raw->satellites_visible = mavlink_msg_gps2_raw_get_satellites_visible(msg);
724 gps2_raw->dgps_numch = mavlink_msg_gps2_raw_get_dgps_numch(msg);
725 gps2_raw->yaw = mavlink_msg_gps2_raw_get_yaw(msg);
726 gps2_raw->alt_ellipsoid = mavlink_msg_gps2_raw_get_alt_ellipsoid(msg);
727 gps2_raw->h_acc = mavlink_msg_gps2_raw_get_h_acc(msg);
728 gps2_raw->v_acc = mavlink_msg_gps2_raw_get_v_acc(msg);
729 gps2_raw->vel_acc = mavlink_msg_gps2_raw_get_vel_acc(msg);
730 gps2_raw->hdg_acc = mavlink_msg_gps2_raw_get_hdg_acc(msg);
732 uint8_t len = msg->len < MAVLINK_MSG_ID_GPS2_RAW_LEN? msg->len : MAVLINK_MSG_ID_GPS2_RAW_LEN;
733 memset(gps2_raw, 0, MAVLINK_MSG_ID_GPS2_RAW_LEN);
734 memcpy(gps2_raw, _MAV_PAYLOAD(msg), len);
#define MAVLINK_MSG_ID_GPS2_RAW_CRC
Definition: mavlink_msg_gps2_raw.h:33
#define MAVLINK_MSG_ID_GPS2_RAW_LEN
Definition: mavlink_msg_gps2_raw.h:28
#define MAVLINK_MSG_ID_GPS2_RAW
Definition: mavlink_msg_gps2_raw.h:4
#define MAVLINK_MSG_ID_GPS2_RAW_MIN_LEN
Definition: mavlink_msg_gps2_raw.h:29