diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-10-05 01:02:35 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-10-05 01:02:35 -0400 |
commit | 9e020f0ffaab9ddea6f9129ebb98833c070ebb03 (patch) | |
tree | b86be20087666a240b25dc45ff3b56ae76311b4b /gpsprof | |
parent | 4661ae2e5fab924cca340da2f7a67cab05450026 (diff) | |
download | gpsd-9e020f0ffaab9ddea6f9129ebb98833c070ebb03.tar.gz |
Emit a count of used satellites in the extra timing attributes.
We'll use this to check Gary's Miller's suspicion that time to compute a
fix varies significantly with the number of sats in the skyview.
Diffstat (limited to 'gpsprof')
-rwxr-xr-x | gpsprof | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -255,19 +255,20 @@ class instrumented(plotter): self.fixes.append((self.session.data['tag'], gps.misc.isotime(self.session.data['time']), self.session.data["cycle_count"], + self.session.data['sats'], self.session.data['cycle_start'], self.session.data['xmit_time'], time.time())) return True def header(self): res = "# Analyzed latency, " + self.whatami() + "\n" - res += "#- Tag - -- Fix time -- - Chars - - Latency - -- RS232 -- --Analysis- --- Recv --\n" + res += "# Tag -- Fix time -- - Chars - -- Latency - RS232- Analysis - Recv -\n" return res def data(self): res = "" - for (tag, time, chars, start, xmit, recv) in self.fixes: + for (tag, time, chars, sats, start, xmit, recv) in self.fixes: rs232_time = (chars * 10.0) / self.device['bps'] - res += "% 8s %.3f %9u %.9f %.9f %.9f %.9f\n" % (tag, time, chars, start-time, (start-time)+rs232_time, xmit-time, recv-time) + res += "%-6s %.3f %9u %2u %.6f %.6f %.6f %.6f\n" % (tag, time, chars, sats, start-time, (start-time)+rs232_time, xmit-time, recv-time) return res def plot(self): legends = ( |