summaryrefslogtreecommitdiff
path: root/gps
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2016-07-25 12:06:43 -0700
committerGary E. Miller <gem@rellim.com>2016-07-25 12:06:43 -0700
commitf42e7ea230d1e0040e29ced54c9b13d140e30e09 (patch)
tree68b9bb44c0ead892a55b509a562517ebed7bfecd /gps
parent7d795276794a131df93dfc89194de6d596b3fe24 (diff)
downloadgpsd-f42e7ea230d1e0040e29ced54c9b13d140e30e09.tar.gz
Add comments on EarthDistance computations.
Funny, in Texas a foot is not the same as everywhere else!
Diffstat (limited to 'gps')
-rw-r--r--gps/misc.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/gps/misc.py b/gps/misc.py
index ac083612..9aaf151b 100644
--- a/gps/misc.py
+++ b/gps/misc.py
@@ -70,6 +70,9 @@ else: # Otherwise we do something real
# some multipliers for interpreting GPS output
+# Note: A Texas Foot is ( meters * 3937/1200)
+# (Texas Natural Resources Code, Subchapter D, §21.071 – 79)
+# not the same as an international fooot.
METERS_TO_FEET = 3.28083989501312 # Meters to U.S./British feet
METERS_TO_MILES = 0.000621371192237334 # Meters to miles
METERS_TO_FATHOMS = 0.546806649168854 # Meters to fathoms
@@ -80,6 +83,9 @@ MPS_TO_KPH = 3.6 # Meters per second to klicks/hr
MPS_TO_MPH = 2.2369362920544 # Meters/second to miles per hour
MPS_TO_KNOTS = 1.9438444924406 # Meters per second to knots
+# for high precision the geoid height should be used.
+# this code does not do that,
+
# EarthDistance code swiped from Kismet and corrected