summaryrefslogtreecommitdiff
path: root/gpsprof
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2005-03-26 21:26:10 +0000
committerEric S. Raymond <esr@thyrsus.com>2005-03-26 21:26:10 +0000
commited29b757aabf3ca64ad968d2283056e1f86ad125 (patch)
tree0893ce9f2c030725851158c1c0737b53ac76e20e /gpsprof
parent72d34de3db604346cf6074aef09169e92ad9f63e (diff)
downloadgpsd-ed29b757aabf3ca64ad968d2283056e1f86ad125.tar.gz
Add a sentence_time member...
...so sentences can have associated timestamps even when they're not fixes.
Diffstat (limited to 'gpsprof')
-rwxr-xr-xgpsprof4
1 files changed, 2 insertions, 2 deletions
diff --git a/gpsprof b/gpsprof
index 051e1deb..7e5d70bf 100755
--- a/gpsprof
+++ b/gpsprof
@@ -44,7 +44,7 @@ class spaceplot:
def gather(self, session):
# Include altitude, not used here, for 3D plot experiments.
# Watch out for the ALTITUDE_NOT_VALID value from gps.py.
- self.fixes.append((session.latitude, session.longitude, session.altitude))
+ self.fixes.append((session.fix.latitude, session.fix.longitude, session.fix.altitude))
return True
def data(self, session):
self.fp.write("# Position uncertainty, %s, %s, %ds cycle\n" % \
@@ -314,7 +314,7 @@ def plotframe(await, fname, file, speed, threshold, title):
sys.stderr.write("gpsprof: gpsd has vanished.\n")
sys.exit(1)
baton.twirl()
- if session.mode <= gps.MODE_NO_FIX:
+ if session.fix.mode <= gps.MODE_NO_FIX:
continue
if countdown == await:
sys.stderr.write("gathering samples...")