summaryrefslogtreecommitdiff
path: root/gps
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-11-20 07:23:43 -0500
committerEric S. Raymond <esr@thyrsus.com>2013-11-20 07:23:43 -0500
commit35c31e25ece7cdfc64755f8721198b2714cc89ec (patch)
tree4de30544345f8a5e19f0da292c86c49f8f56b36e /gps
parent4b85f3b799839053c79d987c3fb5f542e882bbe4 (diff)
downloadgpsd-35c31e25ece7cdfc64755f8721198b2714cc89ec.tar.gz
Resync the Python interface's list of various magic constants.
Diffstat (limited to 'gps')
-rwxr-xr-xgps/gps.py16
1 files changed, 15 insertions, 1 deletions
diff --git a/gps/gps.py b/gps/gps.py
index c0082268..6e495620 100755
--- a/gps/gps.py
+++ b/gps/gps.py
@@ -50,7 +50,10 @@ SUBFRAME_SET = (1<<26)
GST_SET = (1<<27)
VERSION_SET = (1<<28)
POLICY_SET = (1<<29)
-ERROR_SET = (1<<30)
+LOGMESSAGE_SET = (1<<30)
+ERROR_SET = (1<<31)
+TIMEDRIFT_SET = (1<<32)
+SET_HIGH_BIT = 33
UNION_SET = (RTCM2_SET|RTCM3_SET|SUBFRAME_SET|AIS_SET|VERSION_SET|DEVICELIST_SET|ERROR_SET|GST_SET)
STATUS_NO_FIX = 0
STATUS_FIX = 1
@@ -61,6 +64,17 @@ MODE_3D = 3
MAXCHANNELS = 20
SIGNAL_STRENGTH_UNKNOWN = NaN
+WATCH_ENABLE = 0x000001 # enable streaming
+WATCH_DISABLE = 0x000002 # disable watching
+WATCH_JSON = 0x000010 # JSON output
+WATCH_NMEA = 0x000020 # output in NMEA
+WATCH_RARE = 0x000040 # output of packets in hex
+WATCH_RAW = 0x000080 # output of raw packets
+WATCH_SCALED = 0x000100 # scale output to floats
+WATCH_TIMING = 0x000200 # timing information
+WATCH_DEVICE = 0x000800 # watch specific device
+WATCH_SPLIT24 = 0x001000 # split AIS Type 24s
+WATCH_PPS = 0x002000 # enable PPS JSON
WATCH_NEWSTYLE = 0x010000 # force JSON streaming
WATCH_OLDSTYLE = 0x020000 # force old-style streaming