diff options
author | Gary E. Miller <gem@rellim.com> | 2018-02-08 19:09:14 -0800 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2018-02-08 19:09:14 -0800 |
commit | dd18103237b7089114aa6830f2abe85fb3420fde (patch) | |
tree | 4d1f5b12a4657c5f186ba57495776306db286dc0 /gps.h | |
parent | 9f6d73c779168a6ec276b02a3d08ece8bfc15d51 (diff) | |
download | gpsd-dd18103237b7089114aa6830f2abe85fb3420fde.tar.gz |
Add ECEF support to u-blocx driver, data comes out in json.
More work to do so cgps, xgps, etc. see the new data.
Diffstat (limited to 'gps.h')
-rw-r--r-- | gps.h | 17 |
1 files changed, 12 insertions, 5 deletions
@@ -36,7 +36,7 @@ extern "C" { * structure has changed to make working with the satellites-used * bits less confusing. (January 2015, release 3.12). * 6.1 - Add navdata_t for more (nmea2000) info. - * 7.0 - add gps_fix_t.ecef + * 7.0 - add gps_fix_t.ecef (February 2018) */ #define GPSD_API_MAJOR_VERSION 7 /* bump on incompatible changes */ #define GPSD_API_MINOR_VERSION 0 /* bump on compatible changes */ @@ -97,9 +97,14 @@ struct gps_fix_t { double eps; /* Speed uncertainty, meters/sec */ double climb; /* Vertical speed, meters/sec */ double epc; /* Vertical speed uncertainty */ - struct { /* ECEF data */ - bool valid; /* is message well-formed? */ - double x, y, z; + + /* ECEF data, all data in meters, and meters/second, or NaN */ + struct { + bool valid; /* is ECEF data valid */ + double x, y, z; /* ECEF x, y, z */ + double vx, vy, vz; /* ECEF x, y, z velocity */ + double pAcc; /* 3D Position Accuracy Estimate, probably SEP */ + double vAcc; /* Velocity Accuracy Estimate, probably SEP */ } ecef; }; @@ -2002,7 +2007,9 @@ struct gps_data_t { #define PPS_SET (1llu<<33) #define NAVDATA_SET (1llu<<34) #define OSCILLATOR_SET (1llu<<35) -#define SET_HIGH_BIT 36 +#define ECEF_SET (1llu<<36) +#define VECEF_SET (1llu<<37) +#define SET_HIGH_BIT 38 timestamp_t online; /* NZ if GPS is on line, 0 if not. * * Note: gpsd clears this time when sentences |