watch_options.py 763 B

1234567891011121314151617
  1. """WATCH options - controls what data is streamed, and how it's converted."""
  2. WATCH_ENABLE = 0x000001 # enable streaming
  3. WATCH_DISABLE = 0x000002 # disable watching
  4. WATCH_JSON = 0x000010 # JSON output
  5. WATCH_NMEA = 0x000020 # output in NMEA
  6. WATCH_RARE = 0x000040 # output of packets in hex
  7. WATCH_RAW = 0x000080 # output of raw packets
  8. WATCH_SCALED = 0x000100 # scale output to floats
  9. WATCH_TIMING = 0x000200 # timing information
  10. WATCH_DEVICE = 0x000800 # watch specific device
  11. WATCH_SPLIT24 = 0x001000 # split AIS Type 24s
  12. WATCH_PPS = 0x002000 # enable PPS JSON
  13. WATCH_NEWSTYLE = 0x010000 # force JSON streaming
  14. WATCH_OLDSTYLE = 0x020000 # force old-style streaming