summaryrefslogtreecommitdiff
path: root/gps.h
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-05-28 09:37:15 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-05-28 09:37:15 -0400
commitfe0e01c42d8555515e9b1cfe11ebcdf35a42c459 (patch)
treebd018c6160a1c34f2b5d16bb27c465e511609b1f /gps.h
parentb9f7b38c9408d912f39f5c611de6de25cd19bf01 (diff)
downloadgpsd-fe0e01c42d8555515e9b1cfe11ebcdf35a42c459.tar.gz
In AIS, IMO289 Tidal Window support. All regression tests pass.
Diffstat (limited to 'gps.h')
-rw-r--r--gps.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/gps.h b/gps.h
index ad279f36..625c686f 100644
--- a/gps.h
+++ b/gps.h
@@ -1033,6 +1033,32 @@ struct ais_t
#define AIS_DAC1FID30_TEXT_MAX 154 /* 920 bits of six-bit, plus NUL */
char text[AIS_DAC1FID30_TEXT_MAX];
} dac1fid30;
+ /* IMO289 - Tidal Window */
+ struct {
+ unsigned int type; /* Message Type */
+ unsigned int repeat; /* Repeat Indicator */
+ unsigned int mmsi; /* Source MMSI */
+ unsigned int seqno; /* Sequence Number */
+ unsigned int dest_mmsi; /* Destination MMSI */
+ signed int retransmit; /* Retransmit flag */
+ unsigned int dac; /* DAC */
+ unsigned int fid; /* FID */
+ unsigned int month; /* Month */
+ unsigned int day; /* Day */
+ signed int ntidals;
+ struct tidal_t {
+ signed int lon; /* Longitude */
+ signed int lat; /* Latitude */
+ unsigned int from_hour; /* From UTC Hour */
+ unsigned int from_min; /* From UTC Minute */
+ unsigned int to_hour; /* To UTC Hour */
+ unsigned int to_min; /* To UTC Minute */
+#define DAC1FID32_CDIR_NOT_AVAILABLE 360
+ unsigned int cdir; /* Current Dir. Predicted */
+#define DAC1FID32_CSPEED_NOT_AVAILABLE 127
+ unsigned int cspeed; /* Current Speed Predicted */
+ } tidals[3];
+ } dac1fid32;
};
} type6;
/* Type 7 - Binary Acknowledge */