diff options
author | Gary E. Miller <gem@rellim.com> | 2019-03-07 18:30:53 -0800 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2019-03-07 18:30:53 -0800 |
commit | f9621160cc83851ca8e8c8672c7df46dad5505f1 (patch) | |
tree | d644033415895e7dcd65d6c479a1406ee499874c /gpsd.h | |
parent | 05671b42d51a81f36a6e62a605817019be134ef3 (diff) | |
download | gpsd-f9621160cc83851ca8e8c8672c7df46dad5505f1.tar.gz |
Change NMEA mode setting, thus major changes in gpsd_error_model().
The start of this overly large patch was to simply move the test
for MODE_2D/3D flipping, which only affect NMEA 183, back into
driver_nmea0813.c
But that was intertwined with how gpsd_error_model() computes
derived variables, which required major changes to how NMEA 183
mode_2D/3D are set.
This ultimatly led to major regression test results. Almost all for
the better.
I tried to break it up, but moving from one paradigm to another
needed one big jump...
Diffstat (limited to 'gpsd.h')
-rw-r--r-- | gpsd.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -54,6 +54,7 @@ extern "C" { * time added to ATT * 3.14 Added RAW message class. * Add cfg_stage and cfg_step, for initialization + * Add oldfix2 for better oldfix */ /* Keep in sync with api_major_version and api_minor gps/__init__.py */ #define GPSD_PROTO_MAJOR_VERSION 3 /* bump on incompatible changes */ @@ -546,6 +547,7 @@ struct gps_device_t { bool cycle_end_reliable; /* does driver signal REPORT_MASK */ int fixcnt; /* count of fixes from this device */ struct gps_fix_t newdata; /* where drivers put their data */ + struct gps_fix_t lastfix; /* not qute yet ready for oldfix */ struct gps_fix_t oldfix; /* previous fix for error modeling */ #ifdef NMEA0183_ENABLE struct { |