diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-09-03 10:16:43 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-09-03 10:16:43 +0000 |
commit | ff1a623dbdca3fa26de67d88739d9a039b8e39ea (patch) | |
tree | e5dd06d01abeba8e9210f65f79d4c19eeeb4cb94 /driver_italk.c | |
parent | d5755a55b8681c04ee0de3dc683124e581e47a9b (diff) | |
download | gpsd-ff1a623dbdca3fa26de67d88739d9a039b8e39ea.tar.gz |
Split eph into epx and epy internally...
...but still report eph by re-mixing them in the JSON dumper. This was
worth doing because all regression tests still pass, showing that
visible behavior for old-protocol users gas not changed.
Diffstat (limited to 'driver_italk.c')
-rw-r--r-- | driver_italk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/driver_italk.c b/driver_italk.c index 6bf17445..76a8f150 100644 --- a/driver_italk.c +++ b/driver_italk.c @@ -66,7 +66,7 @@ static gps_mask_t decode_itk_navfix(struct gps_device_t *session, unsigned char evz = (double)(getlesl(buf, 7 + 194)/1000.0); ecef_to_wgs84fix(&session->gpsdata, epx, epy, epz, evx, evy, evz); mask |= LATLON_SET | ALTITUDE_SET | SPEED_SET | TRACK_SET | CLIMB_SET ; - session->gpsdata.fix.eph = (double)(getlesl(buf, 7 + 252)/100.0); + session->gpsdata.fix.epx = session->gpsdata.fix.epy = (double)(getlesl(buf, 7 + 252)/100.0); session->gpsdata.fix.eps = (double)(getlesl(buf, 7 + 254)/100.0); #define MAX(a,b) (((a) > (b)) ? (a) : (b)) |