summaryrefslogtreecommitdiff
path: root/gpsprof
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2016-07-26 12:01:00 -0700
committerGary E. Miller <gem@rellim.com>2016-07-26 12:01:00 -0700
commit2cc9772319091b48df23ca60ced005c531afc06b (patch)
treefb516e1e5169428d24dc07b252f6dc85bebd3274 /gpsprof
parentfb0c35f49a40db872ed3bf729fcb238e31b2e6bc (diff)
downloadgpsd-2cc9772319091b48df23ca60ced005c531afc06b.tar.gz
Make gpsplot use the EarthDistanceSmall() from gps/misc.py
Diffstat (limited to 'gpsprof')
-rwxr-xr-xgpsprof6
1 files changed, 3 insertions, 3 deletions
diff --git a/gpsprof b/gpsprof
index 9940056c..9f79a924 100755
--- a/gpsprof
+++ b/gpsprof
@@ -201,9 +201,9 @@ class spaceplot(plotter):
def plot(self):
# Compute CEP(50%)
- cep_meters = EarthDistanceSmall(self.centroid[:2], self.fixes[int(len(self.fixes) * 0.50)][:2])
- cep95_meters = EarthDistanceSmall(self.centroid[:2], self.fixes[int(len(self.fixes) * 0.95)][:2])
- cep99_meters = EarthDistanceSmall(self.centroid[:2], self.fixes[int(len(self.fixes) * 0.99)][:2])
+ cep_meters = gps.misc.EarthDistanceSmall(self.centroid[:2], self.fixes[int(len(self.fixes) * 0.50)][:2])
+ cep95_meters = gps.misc.EarthDistanceSmall(self.centroid[:2], self.fixes[int(len(self.fixes) * 0.95)][:2])
+ cep99_meters = gps.misc.EarthDistanceSmall(self.centroid[:2], self.fixes[int(len(self.fixes) * 0.99)][:2])
alt_sum = 0
alt_num = 0
alt_fixes = []