diff options
author | Gary E. Miller <gem@rellim.com> | 2005-04-01 19:05:56 +0000 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2005-04-01 19:05:56 +0000 |
commit | fdd951a0a154acb7f6cf754a7e11567319507317 (patch) | |
tree | fc6700be66864b00d55ec98d6431745c1674c282 /geoid.c | |
parent | 491b7792e7bd6ef38ea405c33f2068ab1082415b (diff) | |
download | gpsd-fdd951a0a154acb7f6cf754a7e11567319507317.tar.gz |
Make geoid separation availble to the Garmin.
Diffstat (limited to 'geoid.c')
-rw-r--r-- | geoid.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -21,7 +21,9 @@ static double bilinear(double x1, double y1, double x2, double y2, double x, dou return (z22*(y-y1)*(x-x1)+z12*(y2-y)*(x-x1)+z21*(y-y1)*(x2-x)+z11*(y2-y)*(x2-x))/delta; } -static double wgs84_separation(double lat, double lon) + +/* return wgs84 to MSL geoid separtion in meters, given a lat/lot */ +double wgs84_separation(double lat, double lon) { #define GEOID_ROW 19 #define GEOID_COL 37 |