libsbp  v2.4.7
navigation.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015-2018 Swift Navigation Inc.
3  * Contact: Swift Navigation <dev@swiftnav.com>
4  *
5  * This source is subject to the license found in the file 'LICENSE' which must
6  * be be distributed together with this source. All other rights reserved.
7  *
8  * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
9  * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
10  * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
11  */
12 
13 /*****************************************************************************
14  * Automatically generated from yaml/swiftnav/sbp/navigation.yaml
15  * with generate.py. Please do not hand edit!
16  *****************************************************************************/
17 
40 #ifndef LIBSBP_NAVIGATION_MESSAGES_H
41 #define LIBSBP_NAVIGATION_MESSAGES_H
42 
43 #include "common.h"
44 
45 SBP_PACK_START
46 
47 
64 #define SBP_MSG_GPS_TIME 0x0102
65 typedef struct SBP_ATTR_PACKED {
66  u16 wn;
67  u32 tow;
73 
74 
80 #define SBP_MSG_UTC_TIME 0x0103
81 typedef struct SBP_ATTR_PACKED {
83  u32 tow;
86  u8 day;
90  u32 ns;
92 
93 
101 #define SBP_MSG_DOPS 0x0208
102 typedef struct SBP_ATTR_PACKED {
110 } msg_dops_t;
111 
112 
124 #define SBP_MSG_POS_ECEF 0x0209
125 typedef struct SBP_ATTR_PACKED {
127  double x;
128  double y;
129  double z;
134 
135 
148 #define SBP_MSG_POS_ECEF_COV 0x0214
149 typedef struct SBP_ATTR_PACKED {
151  double x;
152  double y;
153  double z;
154  float cov_x_x;
155  float cov_x_y;
156  float cov_x_z;
157  float cov_y_y;
158  float cov_y_z;
159  float cov_z_z;
163 
164 
176 #define SBP_MSG_POS_LLH 0x020A
177 typedef struct SBP_ATTR_PACKED {
179  double lat;
180  double lon;
181  double height;
186 } msg_pos_llh_t;
187 
188 
200 #define SBP_MSG_POS_LLH_COV 0x0211
201 typedef struct SBP_ATTR_PACKED {
203  double lat;
204  double lon;
205  double height;
206  float cov_n_n;
207  float cov_n_e;
208  float cov_n_d;
209  float cov_e_e;
210  float cov_e_d;
211  float cov_d_d;
215 
216 
225 #define SBP_MSG_BASELINE_ECEF 0x020B
226 typedef struct SBP_ATTR_PACKED {
228  s32 x;
229  s32 y;
230  s32 z;
235 
236 
246 #define SBP_MSG_BASELINE_NED 0x020C
247 typedef struct SBP_ATTR_PACKED {
249  s32 n;
250  s32 e;
251  s32 d;
257 
258 
265 #define SBP_MSG_VEL_ECEF 0x020D
266 typedef struct SBP_ATTR_PACKED {
268  s32 x;
269  s32 y;
270  s32 z;
276 
277 
284 #define SBP_MSG_VEL_ECEF_COV 0x0215
285 typedef struct SBP_ATTR_PACKED {
287  s32 x;
288  s32 y;
289  s32 z;
290  float cov_x_x;
291  float cov_x_y;
292  float cov_x_z;
293  float cov_y_y;
294  float cov_y_z;
295  float cov_z_z;
299 
300 
308 #define SBP_MSG_VEL_NED 0x020E
309 typedef struct SBP_ATTR_PACKED {
311  s32 n;
312  s32 e;
313  s32 d;
320 } msg_vel_ned_t;
321 
322 
332 #define SBP_MSG_VEL_NED_COV 0x0212
333 typedef struct SBP_ATTR_PACKED {
335  s32 n;
336  s32 e;
337  s32 d;
338  float cov_n_n;
339  float cov_n_e;
340  float cov_n_d;
341  float cov_e_e;
342  float cov_e_d;
343  float cov_d_d;
347 
348 
360 #define SBP_MSG_VEL_BODY 0x0213
361 typedef struct SBP_ATTR_PACKED {
363  s32 x;
364  s32 y;
365  s32 z;
366  float cov_x_x;
367  float cov_x_y;
368  float cov_x_z;
369  float cov_y_y;
370  float cov_y_z;
371  float cov_z_z;
375 
376 
382 #define SBP_MSG_AGE_CORRECTIONS 0x0210
383 typedef struct SBP_ATTR_PACKED {
387 
388 
405 #define SBP_MSG_GPS_TIME_DEP_A 0x0100
406 typedef struct SBP_ATTR_PACKED {
407  u16 wn;
414 
415 
422 #define SBP_MSG_DOPS_DEP_A 0x0206
423 typedef struct SBP_ATTR_PACKED {
431 
432 
444 #define SBP_MSG_POS_ECEF_DEP_A 0x0200
445 typedef struct SBP_ATTR_PACKED {
447  double x;
448  double y;
449  double z;
456 
457 
469 #define SBP_MSG_POS_LLH_DEP_A 0x0201
470 typedef struct SBP_ATTR_PACKED {
472  double lat;
473  double lon;
474  double height;
484 
485 
494 #define SBP_MSG_BASELINE_ECEF_DEP_A 0x0202
495 typedef struct SBP_ATTR_PACKED {
497  s32 x;
498  s32 y;
499  s32 z;
505 
506 
516 #define SBP_MSG_BASELINE_NED_DEP_A 0x0203
517 typedef struct SBP_ATTR_PACKED {
519  s32 n;
520  s32 e;
521  s32 d;
531 
532 
539 #define SBP_MSG_VEL_ECEF_DEP_A 0x0204
540 typedef struct SBP_ATTR_PACKED {
542  s32 x;
543  s32 y;
544  s32 z;
551 
552 
560 #define SBP_MSG_VEL_NED_DEP_A 0x0205
561 typedef struct SBP_ATTR_PACKED {
563  s32 n;
564  s32 e;
565  s32 d;
575 
576 
583 #define SBP_MSG_BASELINE_HEADING_DEP_A 0x0207
584 typedef struct SBP_ATTR_PACKED {
590 
591 
594 SBP_PACK_END
595 
596 #endif /* LIBSBP_NAVIGATION_MESSAGES_H */
s32 n
Velocity North coordinate [mm/s].
Definition: navigation.h:335
u32 tow
GPS Time of Week [ms].
Definition: navigation.h:562
double lon
Longitude [deg].
Definition: navigation.h:180
s32 ns_residual
Nanosecond residual of millisecond-rounded TOW (ranges from -500000 to 500000) [ns].
Definition: navigation.h:409
s32 y
Baseline ECEF Y coordinate [mm].
Definition: navigation.h:229
u16 h_accuracy
Horizontal position accuracy estimate (not implemented).
Definition: navigation.h:522
u8 flags
Status flags.
Definition: navigation.h:454
u32 tow
GPS Time of Week [ms].
Definition: navigation.h:471
s32 z
Velocity in z direction [mm/s].
Definition: navigation.h:365
u8 n_sats
Number of satellites used in solution.
Definition: navigation.h:372
u8 flags
Status flags (reserved)
Definition: navigation.h:549
u16 pdop
Position Dilution of Precision [0.01].
Definition: navigation.h:426
u32 tow
GPS Time of Week [ms].
Definition: navigation.h:150
s32 x
Velocity ECEF X coordinate [mm/s].
Definition: navigation.h:542
u32 tow
GPS Time of Week [ms].
Definition: navigation.h:310
u8 flags
Status flags.
Definition: navigation.h:588
s32 y
Velocity in y direction [mm/s].
Definition: navigation.h:364
u32 tow
GPS time of week rounded to the nearest millisecond [ms].
Definition: navigation.h:67
s32 e
Velocity East coordinate [mm/s].
Definition: navigation.h:336
u8 flags
Status flags.
Definition: navigation.h:529
u8 n_sats
Number of satellites used in solution.
Definition: navigation.h:528
float cov_x_y
Estimated covariance of x and y [m^2/s^2].
Definition: navigation.h:291
u16 gdop
Geometric Dilution of Precision [0.01].
Definition: navigation.h:425
u32 tow
GPS time of week rounded to the nearest millisecond [ms].
Definition: navigation.h:408
u32 tow
GPS Time of Week [ms].
Definition: navigation.h:334
u16 accuracy
Position estimated standard deviation [mm].
Definition: navigation.h:130
s32 d
Velocity Down coordinate [mm/s].
Definition: navigation.h:313
u16 tdop
Time Dilution of Precision [0.01].
Definition: navigation.h:427
float cov_e_d
Covariance of eastward and downward measurement [m^2].
Definition: navigation.h:342
u16 hdop
Horizontal Dilution of Precision [0.01].
Definition: navigation.h:428
u8 flags
Status flags.
Definition: navigation.h:503
double lat
Latitude [deg].
Definition: navigation.h:179
u8 flags
Status flags.
Definition: navigation.h:161
u16 h_accuracy
Horizontal velocity estimated standard deviation [mm/s].
Definition: navigation.h:314
u16 wn
GPS week number [weeks].
Definition: navigation.h:66
float cov_y_z
Estimated covariance of y and z [m^2].
Definition: navigation.h:158
double y
ECEF Y coordinate [m].
Definition: navigation.h:152
s32 z
Baseline ECEF Z coordinate [mm].
Definition: navigation.h:230
s32 x
Velocity in x direction [mm/s].
Definition: navigation.h:363
s32 ns_residual
Nanosecond residual of millisecond-rounded TOW (ranges from -500000 to 500000) [ns].
Definition: navigation.h:68
u8 hours
hours of day (range 0-23) [hours]
Definition: navigation.h:87
u8 n_sats
Number of satellites used in solution.
Definition: navigation.h:453
double height
Height above WGS84 ellipsoid [m].
Definition: navigation.h:205
float cov_y_y
Estimated variance of y [m^2].
Definition: navigation.h:157
s32 d
Velocity Down coordinate [mm/s].
Definition: navigation.h:565
u8 minutes
minutes of hour (range 0-59) [minutes]
Definition: navigation.h:88
s32 y
Velocity ECEF Y coordinate [mm/s].
Definition: navigation.h:288
u32 tow
GPS Time of Week [ms].
Definition: navigation.h:202
u16 h_accuracy
Horizontal velocity accuracy estimate (not implemented).
Definition: navigation.h:566
u32 tow
GPS Time of Week [ms].
Definition: navigation.h:496
float cov_n_n
Estimated variance of northward measurement [m^2].
Definition: navigation.h:338
u16 vdop
Vertical Dilution of Precision [0.01].
Definition: navigation.h:108
u32 tow
GPS Time of Week [ms].
Definition: navigation.h:178
s32 x
Velocity ECEF X coordinate [mm/s].
Definition: navigation.h:287
s32 z
Velocity ECEF Z coordinate [mm/s].
Definition: navigation.h:544
u8 flags
Status flags.
Definition: navigation.h:132
u8 flags
Status flags.
Definition: navigation.h:319
u16 tdop
Time Dilution of Precision [0.01].
Definition: navigation.h:106
u16 pdop
Position Dilution of Precision [0.01].
Definition: navigation.h:105
s32 y
Baseline ECEF Y coordinate [mm].
Definition: navigation.h:498
float cov_e_d
Covariance of easting and downward measurement [m^2].
Definition: navigation.h:210
u8 flags
Status flags.
Definition: navigation.h:373
s32 z
Velocity ECEF Z coordinate [mm/s].
Definition: navigation.h:289
double x
ECEF X coordinate [m].
Definition: navigation.h:447
u8 n_sats
Number of satellites used in solution.
Definition: navigation.h:273
u8 flags
Status flags (reserved)
Definition: navigation.h:412
s32 e
Velocity East coordinate [mm/s].
Definition: navigation.h:312
float cov_x_z
Covariance of x and z [m^2].
Definition: navigation.h:368
double z
ECEF Z coordinate [m].
Definition: navigation.h:449
u16 age
Age of the corrections (0xFFFF indicates invalid) [deciseconds].
Definition: navigation.h:385
float cov_y_y
Estimated variance of y [m^2/s^2].
Definition: navigation.h:293
double x
ECEF X coordinate [m].
Definition: navigation.h:127
uint8_t u8
Unsigned 8-bit integer.
Definition: common.h:40
s32 y
Velocity ECEF Y coordinate [mm/s].
Definition: navigation.h:543
u8 n_sats
Number of satellites used in solution.
Definition: navigation.h:232
u8 n_sats
Number of satellites used in solution.
Definition: navigation.h:572
float cov_y_z
Covariance of y and z [m^2].
Definition: navigation.h:370
float cov_x_z
Estimated covariance of x and z [m^2/s^2].
Definition: navigation.h:292
u8 n_sats
Number of satellites used in solution.
Definition: navigation.h:318
s32 x
Velocity ECEF X coordinate [mm/s].
Definition: navigation.h:268
u16 h_accuracy
Horizontal position estimated standard deviation [mm].
Definition: navigation.h:252
double y
ECEF Y coordinate [m].
Definition: navigation.h:448
s32 d
Velocity Down coordinate [mm/s].
Definition: navigation.h:337
float cov_n_d
Covariance of northing and downward measurement [m^2].
Definition: navigation.h:208
u8 flags
Status flags.
Definition: navigation.h:233
s32 x
Baseline ECEF X coordinate [mm].
Definition: navigation.h:497
u8 n_sats
Number of satellites used in solution.
Definition: navigation.h:254
u16 accuracy
Position estimated standard deviation [mm].
Definition: navigation.h:231
float cov_x_z
Estimated covariance of x and z [m^2].
Definition: navigation.h:156
u8 n_sats
Number of satellites used in solution.
Definition: navigation.h:184
u16 v_accuracy
Vertical position estimated standard deviation [mm].
Definition: navigation.h:183
u8 flags
Indicates the position solution with which the DOPS message corresponds.
Definition: navigation.h:109
u32 tow
GPS Time of Week [ms].
Definition: navigation.h:424
u16 gdop
Geometric Dilution of Precision [0.01].
Definition: navigation.h:104
u8 flags
Status flags.
Definition: navigation.h:255
float cov_n_d
Covariance of northward and downward measurement [m^2].
Definition: navigation.h:340
u16 accuracy
Position accuracy estimate [mm].
Definition: navigation.h:500
u8 n_sats
Number of satellites used in solution.
Definition: navigation.h:344
s32 n
Velocity North coordinate [mm/s].
Definition: navigation.h:563
float cov_x_y
Covariance of x and y [m^2].
Definition: navigation.h:367
u32 tow
GPS Time of Week [ms].
Definition: navigation.h:227
u8 month
Month (range 1 .
Definition: navigation.h:85
s32 n
Baseline North coordinate [mm].
Definition: navigation.h:249
s32 x
Baseline ECEF X coordinate [mm].
Definition: navigation.h:228
u32 tow
GPS Time of Week [ms].
Definition: navigation.h:126
u32 tow
GPS Time of Week [ms].
Definition: navigation.h:541
uint16_t u16
Unsigned 16-bit integer.
Definition: common.h:42
double height
Height above WGS84 ellipsoid [m].
Definition: navigation.h:181
u16 v_accuracy
Vertical position accuracy estimate (not implemented).
Definition: navigation.h:478
float cov_e_e
Estimated variance of eastward measurement [m^2].
Definition: navigation.h:341
s32 e
Velocity East coordinate [mm/s].
Definition: navigation.h:564
u8 flags
Status flags (reserved)
Definition: navigation.h:573
s32 y
Velocity ECEF Y coordinate [mm/s].
Definition: navigation.h:269
u8 n_sats
Number of satellites used in solution.
Definition: navigation.h:212
u16 h_accuracy
Horizontal position accuracy estimate (not implemented).
Definition: navigation.h:475
u16 wn
GPS week number [weeks].
Definition: navigation.h:407
u16 v_accuracy
Vertical velocity accuracy estimate (not implemented).
Definition: navigation.h:569
double z
ECEF Z coordinate [m].
Definition: navigation.h:153
uint32_t u32
Unsigned 32-bit integer.
Definition: common.h:44
u32 tow
GPS Time of Week [ms].
Definition: navigation.h:286
u16 h_accuracy
Horizontal position estimated standard deviation [mm].
Definition: navigation.h:182
s32 d
Baseline Down coordinate [mm].
Definition: navigation.h:521
double lon
Longitude [deg].
Definition: navigation.h:473
u32 tow
GPS Time of Week [ms].
Definition: navigation.h:518
u16 vdop
Vertical Dilution of Precision [0.01].
Definition: navigation.h:429
s32 z
Baseline ECEF Z coordinate [mm].
Definition: navigation.h:499
u8 n_sats
Number of satellites used in solution.
Definition: navigation.h:502
u8 n_sats
Number of satellites used in solution.
Definition: navigation.h:160
u8 flags
Status flags.
Definition: navigation.h:274
s32 d
Baseline Down coordinate [mm].
Definition: navigation.h:251
u8 n_sats
Number of satellites used in solution.
Definition: navigation.h:481
u8 flags
Indicates source and time validity.
Definition: navigation.h:82
u32 tow
GPS Time of Week [ms].
Definition: navigation.h:384
float cov_x_x
Estimated variance of x [m^2].
Definition: navigation.h:154
float cov_n_e
Covariance of northward and eastward measurement [m^2].
Definition: navigation.h:339
u8 n_sats
Number of satellites used in solution.
Definition: navigation.h:131
u16 v_accuracy
Vertical velocity estimated standard deviation [mm/s].
Definition: navigation.h:316
u8 n_sats
Number of satellites used in solution.
Definition: navigation.h:296
u8 flags
Status flags (reserved)
Definition: navigation.h:71
s32 n
Baseline North coordinate [mm].
Definition: navigation.h:519
u8 flags
Status flags.
Definition: navigation.h:185
float cov_z_z
Estimated variance of z [m^2].
Definition: navigation.h:371
u16 v_accuracy
Vertical position estimated standard deviation [mm].
Definition: navigation.h:253
float cov_x_x
Estimated variance of x [m^2].
Definition: navigation.h:366
u16 hdop
Horizontal Dilution of Precision [0.01].
Definition: navigation.h:107
float cov_d_d
Estimated variance of downward measurement [m^2].
Definition: navigation.h:343
double y
ECEF Y coordinate [m].
Definition: navigation.h:128
u32 ns
nanoseconds of second (range 0-999999999) [nanoseconds]
Definition: navigation.h:90
float cov_y_y
Estimated variance of y [m^2].
Definition: navigation.h:369
u8 flags
Status flags.
Definition: navigation.h:297
double lon
Longitude [deg].
Definition: navigation.h:204
double x
ECEF X coordinate [m].
Definition: navigation.h:151
float cov_y_z
Estimated covariance of y and z [m^2/s^2].
Definition: navigation.h:294
float cov_z_z
Estimated variance of z [m^2].
Definition: navigation.h:159
u32 tow
GPS Time of Week [ms].
Definition: navigation.h:267
u8 day
days in the month (range 1-31) [day]
Definition: navigation.h:86
u32 tow
GPS Time of Week [ms].
Definition: navigation.h:248
u32 tow
GPS time of week rounded to the nearest millisecond [ms].
Definition: navigation.h:83
float cov_n_n
Estimated variance of northing [m^2].
Definition: navigation.h:206
u8 n_sats
Number of satellites used in solution.
Definition: navigation.h:548
u32 tow
GPS Time of Week [ms].
Definition: navigation.h:446
float cov_n_e
Covariance of northing and easting [m^2].
Definition: navigation.h:207
float cov_z_z
Estimated variance of z [m^2/s^2].
Definition: navigation.h:295
u8 n_sats
Number of satellites used in solution.
Definition: navigation.h:587
u8 seconds
seconds of minute (range 0-60) rounded down [seconds]
Definition: navigation.h:89
float cov_x_x
Estimated variance of x [m^2/s^2].
Definition: navigation.h:290
u16 accuracy
Velocity accuracy estimate (not implemented).
Definition: navigation.h:545
u8 flags
Status flags.
Definition: navigation.h:345
float cov_e_e
Estimated variance of easting [m^2].
Definition: navigation.h:209
u8 flags
Status flags.
Definition: navigation.h:482
u16 v_accuracy
Vertical position accuracy estimate (not implemented).
Definition: navigation.h:525
u8 flags
Status flags.
Definition: navigation.h:213
u32 tow
GPS Time of Week [ms].
Definition: navigation.h:362
u32 heading
Heading [mdeg].
Definition: navigation.h:586
s32 n
Velocity North coordinate [mm/s].
Definition: navigation.h:311
double height
Height [m].
Definition: navigation.h:474
int32_t s32
Signed 32-bit integer.
Definition: common.h:36
s32 e
Baseline East coordinate [mm].
Definition: navigation.h:250
double lat
Latitude [deg].
Definition: navigation.h:472
double z
ECEF Z coordinate [m].
Definition: navigation.h:129
double lat
Latitude [deg].
Definition: navigation.h:203
u16 year
Year [year].
Definition: navigation.h:84
u16 accuracy
Position accuracy estimate (not implemented).
Definition: navigation.h:450
u32 tow
GPS Time of Week [ms].
Definition: navigation.h:585
u32 tow
GPS Time of Week [ms].
Definition: navigation.h:103
s32 e
Baseline East coordinate [mm].
Definition: navigation.h:520
float cov_x_y
Estimated covariance of x and y [m^2].
Definition: navigation.h:155
float cov_d_d
Estimated variance of downward measurement [m^2].
Definition: navigation.h:211
s32 z
Velocity ECEF Z coordinate [mm/s].
Definition: navigation.h:270
u16 accuracy
Velocity estimated standard deviation [mm/s].
Definition: navigation.h:271