From afa132cefb5e5d553e7f79491a8eaffd3365be77 Mon Sep 17 00:00:00 2001 From: Michael Ledford Date: Sun, 29 Nov 2009 14:28:17 +0000 Subject: Added logging in gpsd_error_model()... ...to assist with debugging failing regression tests on Mac OS X. --- libgpsd_core.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libgpsd_core.c') diff --git a/libgpsd_core.c b/libgpsd_core.c index 7a4a9f56..5d6eb461 100644 --- a/libgpsd_core.c +++ b/libgpsd_core.c @@ -506,6 +506,8 @@ void gpsd_error_model(struct gps_device_t *session, double adj = earth_distance( oldfix->latitude, oldfix->longitude, fix->latitude, fix->longitude); + gpsd_report(LOG_RAW, "gpsd_error_model(): %2.9f = earth_distance(%2.9f, %2.9f, %2.9f, %2.9f)\n", adj, oldfix->latitude, oldfix->longitude, fix->latitude, fix->longitude); + gpsd_report(LOG_RAW, "gpsd_error_model(): fix->epx = %2.9f; fix->epy = %2.9f\n", fix->epx, fix->epy); if (isnan(adj)==0 && adj > EMIX(fix->epx, fix->epy)) { double opp = EMIX(fix->epx, fix->epy); double hyp = sqrt(adj*adj + opp*opp); -- cgit v1.2.1