From fe0e01c42d8555515e9b1cfe11ebcdf35a42c459 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sat, 28 May 2011 09:37:15 -0400 Subject: In AIS, IMO289 Tidal Window support. All regression tests pass. --- gps.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'gps.h') 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 */ -- cgit v1.2.1