summaryrefslogtreecommitdiff
path: root/gps.h
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-09-01 09:41:37 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-09-01 09:41:37 +0000
commit17a2237540735cfe3284226e4422bb1d09e71b4e (patch)
tree14f4529031e2c64c6850bcf9ca3bd6704f9c3af9 /gps.h
parentafb11120aba9cbe40e2e3e0f04550833817253e5 (diff)
downloadgpsd-17a2237540735cfe3284226e4422bb1d09e71b4e.tar.gz
Fix dumping of AIS message 19 (dte was missing).
Code generation for AIS messages up to 19. Rebuild two affected regression tests (all tests pass).
Diffstat (limited to 'gps.h')
-rw-r--r--gps.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/gps.h b/gps.h
index becc2ea2..9e50da98 100644
--- a/gps.h
+++ b/gps.h
@@ -660,16 +660,18 @@ struct ais_t
uint speed; /* speed over ground in deciknots */
bool accuracy; /* position accuracy */
int lon; /* longitude */
+#define AIS_GNS_LON_NOT_AVAILABLE 0x1a838
int lat; /* latitude */
+#define AIS_GNS_LAT_NOT_AVAILABLE 0xd548
uint course; /* course over ground */
uint heading; /* true heading */
uint second; /* seconds of UTC timestamp */
uint regional; /* regional reserved */
- bool cs_flag; /* carrier sense unit flag */
- bool display_flag; /* unit has attached display? */
- bool dsc_flag; /* unit attached to radio with DSC? */
- bool band_flag; /* unit can switch frequency bands? */
- bool msg22_flag; /* can accept Message 22 management? */
+ bool cs; /* carrier sense unit flag */
+ bool display; /* unit has attached display? */
+ bool dsc; /* unit attached to radio with DSC? */
+ bool band; /* unit can switch frequency bands? */
+ bool msg22; /* can accept Message 22 management? */
bool assigned; /* assigned-mode flag */
bool raim; /* RAIM flag */
uint radio; /* radio status bits */