summaryrefslogtreecommitdiff
path: root/gps.py
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2005-02-17 06:21:58 +0000
committerEric S. Raymond <esr@thyrsus.com>2005-02-17 06:21:58 +0000
commitfbc36bec5ed0a6826d75475ad5aaf12a7b6b4d81 (patch)
tree3a00b2f6ae7dcaa5fa6810318cb32247f8c587e0 /gps.py
parent4a0ff9adfe41106e87a2daa97b34c4832c785325 (diff)
downloadgpsd-fbc36bec5ed0a6826d75475ad5aaf12a7b6b4d81.tar.gz
Measure RS232 transmission time rather than deducing it.
Diffstat (limited to 'gps.py')
-rwxr-xr-xgps.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gps.py b/gps.py
index 28402590..f203aacd 100755
--- a/gps.py
+++ b/gps.py
@@ -265,9 +265,10 @@ class gps(gpsdata):
elif cmd in ('Z', 'z'):
self.profiling = (data[0] == '1')
elif cmd == '$':
- (self.tag, length, gps_time, recv_time, decode_time, poll_time, emit_time) = data.split()
+ (self.tag, length, gps_time, xmit_time, recv_time, decode_time, poll_time, emit_time) = data.split()
self.length = int(length)
self.gps_time = float(gps_time)
+ self.d_xmit_time = float(xmit_time)
self.d_recv_time = float(recv_time)
self.d_decode_time = float(decode_time)
self.poll_time = float(poll_time)