summaryrefslogtreecommitdiff
path: root/geoid.c
diff options
context:
space:
mode:
authorChris Kuethe <chris.kuethe@gmail.com>2009-01-08 17:45:01 +0000
committerChris Kuethe <chris.kuethe@gmail.com>2009-01-08 17:45:01 +0000
commit10897dfeebd5cb72304f137fb38c29d41b50912a (patch)
tree15d627cc44b14583aa55dc30031e7d4c52a6117f /geoid.c
parent38774f2acb77e9aafc552e8b1b1e6a0cb6728720 (diff)
downloadgpsd-10897dfeebd5cb72304f137fb38c29d41b50912a.tar.gz
break apart the geoid test driver from the main library.
hook it up to the makefile similar to the other _test drivers. now builds and packages cleanly
Diffstat (limited to 'geoid.c')
-rw-r--r--geoid.c35
1 files changed, 0 insertions, 35 deletions
diff --git a/geoid.c b/geoid.c
index e77a40b3..13f37e40 100644
--- a/geoid.c
+++ b/geoid.c
@@ -135,38 +135,3 @@ static double fix_minuz(double d)
{
return ((d == 0.0) ? 0.0 : d);
}
-
-#ifdef TESTMAIN
-#include <stdio.h>
-#include <stdlib.h>
-
-int main(int argc, char **argv)
-{
- double lat, lon;
-
- if (argc != 3) {
- fprintf(stderr,"Usage: %s lat lon\n",argv[0]);
- return 1;
- }
-
- lat=atof(argv[1]);
- lon=atof(argv[2]);
-
- if (lat > 90. || lat < -90.)
- {
- fprintf(stderr," -90 <= lat=%s(%.f) <= 90 ?\n",argv[1],lat);
- return 1;
- }
-
- if (lon > 180. || lat < -180.)
- {
- fprintf(stderr," -180 <= lon=%s(%.f) <= 180 ?\n",argv[2],lon);
- return 1;
- }
-
- printf(" lat= %f lon= %f geoid correction= %f\n",
- lat, lon, wgs84_separation(lat, lon));
-
- return 0;
-}
-#endif /* TESTMAIN */