diff options
author | Michael Ledford <michael@ledford.cc> | 2009-11-29 14:28:17 +0000 |
---|---|---|
committer | Michael Ledford <michael@ledford.cc> | 2009-11-29 14:28:17 +0000 |
commit | afa132cefb5e5d553e7f79491a8eaffd3365be77 (patch) | |
tree | 5c656b65494e54285c32ab2bd2a5508d25a603ec /libgpsd_core.c | |
parent | f3cf60c06aabdb3c41275ca2288ffb3d2ffda533 (diff) | |
download | gpsd-afa132cefb5e5d553e7f79491a8eaffd3365be77.tar.gz |
Added logging in gpsd_error_model()...
...to assist with debugging failing regression tests on Mac OS X.
Diffstat (limited to 'libgpsd_core.c')
-rw-r--r-- | libgpsd_core.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |