diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2005-03-26 21:26:10 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2005-03-26 21:26:10 +0000 |
commit | ed29b757aabf3ca64ad968d2283056e1f86ad125 (patch) | |
tree | 0893ce9f2c030725851158c1c0737b53ac76e20e /gpsprof | |
parent | 72d34de3db604346cf6074aef09169e92ad9f63e (diff) | |
download | gpsd-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-x | gpsprof | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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...") |