summaryrefslogtreecommitdiff
path: root/gps.h
diff options
context:
space:
mode:
Diffstat (limited to 'gps.h')
-rw-r--r--gps.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/gps.h b/gps.h
index 87d0d9fd..0e817677 100644
--- a/gps.h
+++ b/gps.h
@@ -1221,6 +1221,22 @@ struct ais_t
char bitdata[(AIS_TYPE26_BINARY_MAX + 7) / 8];
unsigned int radio; /* radio status bits */
} type26;
+ /* Type 27 - Long Range AIS Broadcast message */
+ struct {
+ bool accuracy; /* position accuracy */
+ bool raim; /* RAIM flag */
+ unsigned int status; /* navigation status */
+#define AIS_LONGRANGE_LATLON_SCALE 600.0
+ int lon; /* longitude */
+#define AIS_LONGRANGE_LON_NOT_AVAILABLE 0x1a838
+ int lat; /* latitude */
+#define AIS_LONGRANGE_LAT_NOT_AVAILABLE 0xd548
+ unsigned int speed; /* speed over ground in deciknots */
+#define AIS_LONGRANGE_SPEED_NOT_AVAILABLE 63
+ unsigned int course; /* course over ground */
+#define AIS_LONGRANGE_COURSE_NOT_AVAILABLE 511
+ bool gnss; /* are we reporting GNSS position? */
+ } type27;
};
};