summaryrefslogtreecommitdiff
path: root/gpsprof
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2016-07-27 00:25:26 -0700
committerGary E. Miller <gem@rellim.com>2016-07-27 00:26:55 -0700
commita4dae6f19bd287764d2df1a5ac7510ca5ba67372 (patch)
tree066a6bc2dc79337adc05d46aee3cbfef8ae9784e /gpsprof
parent28989c89175c3a1b558fa4e1d77a30d129d66f43 (diff)
downloadgpsd-a4dae6f19bd287764d2df1a5ac7510ca5ba67372.tar.gz
Now that EarthDistance() works well, use it in gpsprof
Diffstat (limited to 'gpsprof')
-rwxr-xr-xgpsprof6
1 files changed, 3 insertions, 3 deletions
diff --git a/gpsprof b/gpsprof
index 9f79a924..7638e0ff 100755
--- a/gpsprof
+++ b/gpsprof
@@ -201,9 +201,9 @@ class spaceplot(plotter):
def plot(self):
# Compute CEP(50%)
- 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])
+ cep_meters = gps.misc.EarthDistance(self.centroid[:2], self.fixes[int(len(self.fixes) * 0.50)][:2])
+ cep95_meters = gps.misc.EarthDistance(self.centroid[:2], self.fixes[int(len(self.fixes) * 0.95)][:2])
+ cep99_meters = gps.misc.EarthDistance(self.centroid[:2], self.fixes[int(len(self.fixes) * 0.99)][:2])
alt_sum = 0
alt_num = 0
alt_fixes = []