From fdd951a0a154acb7f6cf754a7e11567319507317 Mon Sep 17 00:00:00 2001 From: "Gary E. Miller" Date: Fri, 1 Apr 2005 19:05:56 +0000 Subject: Make geoid separation availble to the Garmin. --- geoid.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'geoid.c') diff --git a/geoid.c b/geoid.c index 74599dd4..55d6901b 100644 --- a/geoid.c +++ b/geoid.c @@ -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 -- cgit v1.2.1