summaryrefslogtreecommitdiff
path: root/monitor_sirf.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-09-21 14:27:29 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-09-21 14:27:29 -0400
commitefeb43dfa052fec37fd81ca659e47eda1220b114 (patch)
tree94c68d4eb1fd23e624f2fc6995516ab93496ec04 /monitor_sirf.c
parent05a4655da1a5e557c717a22abe0ef3211fb3fb44 (diff)
downloadgpsd-efeb43dfa052fec37fd81ca659e47eda1220b114.tar.gz
Remove ancient unused code.
Diffstat (limited to 'monitor_sirf.c')
-rw-r--r--monitor_sirf.c65
1 files changed, 0 insertions, 65 deletions
diff --git a/monitor_sirf.c b/monitor_sirf.c
index f176fb38..5140e53b 100644
--- a/monitor_sirf.c
+++ b/monitor_sirf.c
@@ -541,71 +541,6 @@ static void sirf_update(void)
monitor_log("PPS 0x34=");
break;
-#ifdef __UNUSED__
- case 0x62:
- attrset(A_BOLD);
- move(2, 40);
- printw("%9.5f %9.5f", (double)(RAD_2_DEG * 1e8 * getbes32(buf, 1)),
- (double)(RAD_2_DEG * 1e8 * getbes32(buf, 5)));
- move(2, 63);
- printw("%8d", getbes32(buf, 9) / 1000);
-
- move(3, 63);
-
- printw("%8.1f", (double)getbes32(buf, 17) / 1000);
-
- move(4, 54);
- if (getbeu32(buf, 13) > 50) {
- double heading = RAD_2_DEG * 1e8 * getbes32(buf, 21);
- if (heading < 0)
- heading += 360;
- printw("%5.1f", heading);
- } else
- printw(" 0.0");
-
- move(4, 63);
- printw("%8.1f", (double)getbes32(buf, 13) / 1000);
- attrset(A_NORMAL);
-
- move(5, 13);
- printw("%04d-%02d-%02d %02d:%02d:%02d.%02d",
- (int)getbeu16(buf, 26), getub(buf, 28), getub(buf, 29),
- getub(buf, 30), getub(buf, 31), (unsigned short)getbeu16(buf,
- 32) /
- 1000, ((unsigned short)getbeu16(buf, 32) % 1000) / 10);
- {
- struct timeval clk, gps;
- struct tm tm;
-
- gettimeofday(&clk, NULL);
-
- memset(&tm, 0, sizeof(tm));
- tm.tm_sec = (unsigned short)getbeu16(buf, 32) / 1000;
- tm.tm_min = (int)getub(buf, 31);
- tm.tm_hour = (int)getub(buf, 30);
- tm.tm_mday = (int)getub(buf, 29);
- tm.tm_mon = (int)getub(buf, 28) - 1;
- tm.tm_year = (int)getbeu16(buf, 26) - 1900;
-
- gps.tv_sec = mkgmtime(&tm);
- gps.tv_usec =
- (((unsigned short)getbeu16(buf, 32) % 1000) / 10) * 10000;
-
- move(5, 2);
- printw(" ");
- move(5, 2);
-#if 1
- printw("%ld", (gps.tv_usec - clk.tv_usec) +
- ((gps.tv_sec - clk.tv_sec) % 3600) * 1000000);
-#else
- printw("%ld %ld %ld %ld", gps.tv_sec % 3600, gps.tv_usec,
- clk.tv_sec % 3600, clk.tv_usec);
-#endif
- }
- monitor_log("??? 0x62=");
- break;
-#endif /* __UNUSED__ */
-
case 0xff: /* Development Data */
/*@ +ignoresigns @*/
while (len > 0 && buf[len - 1] == '\n')