diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2005-05-05 23:53:25 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2005-05-05 23:53:25 +0000 |
commit | 410cf597ec2e1b699a88938c515a82c13e73d543 (patch) | |
tree | 06e856364f9f48a13e47a15616694571ddf3ab8e /geoid.c | |
parent | c523de0f0712d3938e8452a7655b447c251eb524 (diff) | |
download | gpsd-410cf597ec2e1b699a88938c515a82c13e73d543.tar.gz |
Remove bogus RAD2DEG factor in speed computation.
Diffstat (limited to 'geoid.c')
-rw-r--r-- | geoid.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -95,7 +95,7 @@ void ecef_to_wgs84fix(struct gps_fix_t *fix, vnorth = -vx*sin(phi)*cos(lambda)-vy*sin(phi)*sin(lambda)+vz*cos(phi); veast = -vx*sin(lambda)+vy*cos(lambda); fix->climb = vx*cos(phi)*cos(lambda)+vy*cos(phi)*sin(lambda)+vz*sin(phi); - fix->speed = RAD_2_DEG * sqrt(pow(vnorth,2) + pow(veast,2)); + fix->speed = sqrt(pow(vnorth,2) + pow(veast,2)); heading = atan2(veast,vnorth); if (heading < 0) heading += 2 * PI; |