diff options
author | Michael Ledford <michael@ledford.cc> | 2009-12-02 19:51:05 +0000 |
---|---|---|
committer | Michael Ledford <michael@ledford.cc> | 2009-12-02 19:51:05 +0000 |
commit | 0ffc1daa71a3ba96f62844e7ac07c62d4758563b (patch) | |
tree | ddb1b8c3065feff68d4d1acc62990761e3e172db /gpsutils.c | |
parent | e6ff4c9eee79ecbd22da442f410cfad139c8a448 (diff) | |
download | gpsd-0ffc1daa71a3ba96f62844e7ac07c62d4758563b.tar.gz |
More logging to find regression test error on OS X. Getting closer.
Diffstat (limited to 'gpsutils.c')
-rw-r--r-- | gpsutils.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -252,7 +252,13 @@ void unix_to_gpstime(double unixtime, /*@out@*/int *week, /*@out@*/double *tow) *tow = fmod(unixtime, SECS_PER_WEEK); } -#define Deg2Rad(n) ((n) * DEG_2_RAD) +// #define Deg2Rad(n) ((n) * DEG_2_RAD) +static double Deg2Rad(double deg) +{ + double rad = deg * DEG_2_RAD; + gpsd_report(LOG_RAW, "Deg2Rad(): deg = %2.30f; rad = %2.30f\n", deg, rad); + return rad; +} static double CalcRad(double lat) /* earth's radius of curvature in meters at specified latitude.*/ |