summaryrefslogtreecommitdiff
path: root/gps
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2017-07-26 16:05:26 -0700
committerGary E. Miller <gem@rellim.com>2017-07-26 16:05:26 -0700
commit5c077a4ff913ea6acffa5c139d0b24bcc635f556 (patch)
treed95b3666479c9f1b29312cc21cd5fd58a367f205 /gps
parent9adceda3214a316f88be4547844807483b894ba6 (diff)
downloadgpsd-5c077a4ff913ea6acffa5c139d0b24bcc635f556.tar.gz
gps.py: change FIXME -> TODO. Do the PPS TODO.
Not sure how to decode class DEVICES yet... pylint does not like FIXME, and not broken, just a TODO (enhancement).
Diffstat (limited to 'gps')
-rwxr-xr-xgps/gps.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/gps/gps.py b/gps/gps.py
index 1b5d6456..c13906fc 100755
--- a/gps/gps.py
+++ b/gps/gps.py
@@ -212,8 +212,6 @@ class gps(gpscommon, gpsdata, gpsjson):
self.driver_mode = default("native", 0)
self.mincycle = default("mincycle", NaN)
self.serialmode = default("serialmode", "8N1")
- # FIXME: decode DEVICES
- # FIXME: decode PPS
elif self.data.get("class") == "TPV":
self.device = default("device", "missing")
self.utc = default("time", None, TIME_SET)
@@ -254,6 +252,15 @@ class gps(gpscommon, gpsdata, gpsjson):
if sat.used:
self.satellites_used += 1
self.valid = ONLINE_SET | SATELLITE_SET
+ elif self.data.get("class") == "PPS":
+ self.device = default("device", "missing")
+ self.real_sec = default("real_sec", NaN)
+ self.real_nsec = default("real_nsec", NaN)
+ self.clock_sec = default("clock_sec", NaN)
+ self.clock_nsec = default("clock_nsec", NaN)
+ self.precision = default("precision", 0)
+ # elif self.data.get("class") == "DEVICES":
+ # TODO: handle class DEVICES
def read(self):
"Read and interpret data from the daemon."