diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-09-20 09:11:57 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-09-20 09:11:57 +0000 |
commit | da2351098ae281aa0e44dcf1069c8bd4356ebc01 (patch) | |
tree | 277b09daf2fbb7c686f62273237d5653c3630a5e /gps.py | |
parent | edf73084048750021bd3438ac38963027c7142b9 (diff) | |
download | gpsd-da2351098ae281aa0e44dcf1069c8bd4356ebc01.tar.gz |
Ensure that the C and Python flag masks are consistent.
Diffstat (limited to 'gps.py')
-rwxr-xr-x | gps.py | 64 |
1 files changed, 32 insertions, 32 deletions
@@ -11,38 +11,38 @@ api_minor_version = 1 # bumped on compatible changes NaN = float('nan') def isnan(x): return str(x) == 'nan' -ONLINE_SET = 0x00000001 -TIME_SET = 0x00000002 -TIMERR_SET = 0x00000004 -LATLON_SET = 0x00000008 -ALTITUDE_SET = 0x00000010 -SPEED_SET = 0x00000020 -TRACK_SET = 0x00000040 -CLIMB_SET = 0x00000080 -STATUS_SET = 0x00000100 -MODE_SET = 0x00000200 -HDOP_SET = 0x00000400 -VDOP_SET = 0x00000800 -PDOP_SET = 0x00001000 -VERSION_SET = 0x00002000 -GDOP_SET = 0x00004000 -HERR_SET = 0x00008000 -VERR_SET = 0x00010000 -POLICY_SET = 0x00020000 -SATELLITE_SET = 0x00040000 -RAW_SET = 0x00080000 -USED_SET = 0x00100000 -SPEEDERR_SET = 0x00200000 -TRACKERR_SET = 0x00400000 -CLIMBERR_SET = 0x00800000 -DEVICE_SET = 0x01000000 -DEVICELIST_SET = 0x02000000 -DEVICEID_SET = 0x04000000 -ERROR_SET = 0x08000000 -RTCM2_SET = 0x10000000 -RTCM3_SET = 0x20000000 -AIS_SET = 0x40000000 -FIX_SET = (TIME_SET|MODE_SET|TIMERR_SET|LATLON_SET|HERR_SET|ALTITUDE_SET|VERR_SET|TRACK_SET|TRACKERR_SET|SPEED_SET|SPEEDERR_SET|CLIMB_SET|CLIMBERR_SET) +# Don't hand-hack this list, it's generated. +ONLINE_SET = 0x00000001 +TIME_SET = 0x00000002 +TIMERR_SET = 0x00000004 +LATLON_SET = 0x00000008 +ALTITUDE_SET = 0x00000010 +SPEED_SET = 0x00000020 +TRACK_SET = 0x00000040 +CLIMB_SET = 0x00000080 +STATUS_SET = 0x00000100 +MODE_SET = 0x00000200 +DOP_SET = 0x00000400 +VERSION_SET = 0x00000800 +HERR_SET = 0x00001000 +VERR_SET = 0x00002000 +PERR_SET = 0x00004000 +POLICY_SET = 0x00020000 +ERR_SET = (HERR_SET|VERR_SET|PERR_SET +SATELLITE_SET = 0x00040000 +RAW_SET = 0x00080000 +USED_SET = 0x00100000 +SPEEDERR_SET = 0x00200000 +TRACKERR_SET = 0x00400000 +CLIMBERR_SET = 0x00800000 +DEVICE_SET = 0x01000000 +DEVICELIST_SET = 0x02000000 +DEVICEID_SET = 0x04000000 +ERROR_SET = 0x08000000 +RTCM2_SET = 0x10000000 +RTCM3_SET = 0x20000000 +AIS_SET = 0x40000000 +FIX_SET = (TIME_SET|MODE_SET|TIMERR_SET|LATLON_SET|HERR_SET|ALTITUDE_SET|VERR_SET|TRACK_SET|TRACKERR_SET|SPEED_SET|SPEEDERR_SET|CLIMB_SET|CLIMBERR_SET STATUS_NO_FIX = 0 STATUS_FIX = 1 |