summaryrefslogtreecommitdiff
path: root/geoid.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2005-05-05 23:53:25 +0000
committerEric S. Raymond <esr@thyrsus.com>2005-05-05 23:53:25 +0000
commit410cf597ec2e1b699a88938c515a82c13e73d543 (patch)
tree06e856364f9f48a13e47a15616694571ddf3ab8e /geoid.c
parentc523de0f0712d3938e8452a7655b447c251eb524 (diff)
downloadgpsd-410cf597ec2e1b699a88938c515a82c13e73d543.tar.gz
Remove bogus RAD2DEG factor in speed computation.
Diffstat (limited to 'geoid.c')
-rw-r--r--geoid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/geoid.c b/geoid.c
index ffe3215e..9a201326 100644
--- a/geoid.c
+++ b/geoid.c
@@ -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;