diff options
author | Gary E. Miller <gem@rellim.com> | 2018-02-07 17:50:23 -0800 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2018-02-07 17:50:23 -0800 |
commit | 9f6d73c779168a6ec276b02a3d08ece8bfc15d51 (patch) | |
tree | a2229ecccca1c057ef7465c9ae8c23ee1b263c4e /gps.h | |
parent | 98c8f5f4429ac3bfc09eee235fee08b9aaff8c52 (diff) | |
download | gpsd-9f6d73c779168a6ec276b02a3d08ece8bfc15d51.tar.gz |
Major API change: add ECEF into gps_fix_t
Time to stop throwing away the ecef data from GPS devices. u-blox
sends ECEF date to mm precision.
Major API change as this moves things down in gps_data_t
Until this works end to end, don't expect the API to be binary stable.
Diffstat (limited to 'gps.h')
-rw-r--r-- | gps.h | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -36,9 +36,10 @@ 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 */ -#define GPSD_API_MAJOR_VERSION 6 /* bump on incompatible changes */ -#define GPSD_API_MINOR_VERSION 1 /* bump on compatible changes */ +#define GPSD_API_MAJOR_VERSION 7 /* bump on incompatible changes */ +#define GPSD_API_MINOR_VERSION 0 /* bump on compatible changes */ #define MAXCHANNELS 72 /* must be > 12 GPS + 12 GLONASS + 2 WAAS */ #define MAXUSERDEVS 4 /* max devices per user */ @@ -96,6 +97,10 @@ 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; }; /* |