summaryrefslogtreecommitdiff
path: root/monitor_sirf.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-11-05 07:30:21 -0500
committerEric S. Raymond <esr@thyrsus.com>2013-11-05 07:33:18 -0500
commit18358ea6480ee6d952e8074f9dc1d0bff0745229 (patch)
tree22a9fbc4d110dfb7ad695aacda6f5771812ae5fd /monitor_sirf.c
parent60f12bd390179fa8d9049e51aaf27160aeb48c97 (diff)
downloadgpsd-18358ea6480ee6d952e8074f9dc1d0bff0745229.tar.gz
Add PPS offset display to the SiRF monitor.
It's not a CSD output field, but there isn't any better place to put it on the display.
Diffstat (limited to 'monitor_sirf.c')
-rw-r--r--monitor_sirf.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/monitor_sirf.c b/monitor_sirf.c
index f253a279..b6f212f6 100644
--- a/monitor_sirf.c
+++ b/monitor_sirf.c
@@ -169,7 +169,8 @@ static bool sirf_initialize(void)
display(mid7win, 1, 1, "SVs: ");
display(mid7win, 1, 9, "Drift: ");
display(mid7win, 1, 23, "Bias: ");
- display(mid7win, 2, 1, "Estimated GPS Time: ");
+ display(mid7win, 2, 1, "Est. GPS Time: ");
+ display(mid7win, 2, 27, "PPS Offset: ");
display(mid7win, 3, 8, " Packet type 7 (0x07) ");
(void)wattrset(mid7win, A_NORMAL);
@@ -383,7 +384,10 @@ static void sirf_update(void)
display(mid7win, 1, 5, "%2d", getub(buf, 7)); /* SVs */
display(mid7win, 1, 16, "%lu", getbeu32(buf, 8)); /* Clock drift */
display(mid7win, 1, 29, "%lu", getbeu32(buf, 12)); /* Clock Bias */
- display(mid7win, 2, 21, "%lu", getbeu32(buf, 16)); /* Estimated Time */
+ display(mid7win, 2, 16, "%lu", getbeu32(buf, 16)); /* Estimated Time */
+ /* Not a CSD field, but there's no better place to put it */
+ if (timedelta)
+ display(mid7win, 2, 39, "%f", timedelta); /* PPS offset */
monitor_log("CSD 0x07=");
break;