From ff1a623dbdca3fa26de67d88739d9a039b8e39ea Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 3 Sep 2009 10:16:43 +0000 Subject: 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. --- driver_italk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'driver_italk.c') 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)) -- cgit v1.2.1