diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-05-28 09:37:15 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-05-28 09:37:15 -0400 |
commit | fe0e01c42d8555515e9b1cfe11ebcdf35a42c459 (patch) | |
tree | bd018c6160a1c34f2b5d16bb27c465e511609b1f /gps.h | |
parent | b9f7b38c9408d912f39f5c611de6de25cd19bf01 (diff) | |
download | gpsd-fe0e01c42d8555515e9b1cfe11ebcdf35a42c459.tar.gz |
In AIS, IMO289 Tidal Window support. All regression tests pass.
Diffstat (limited to 'gps.h')
-rw-r--r-- | gps.h | 26 |
1 files changed, 26 insertions, 0 deletions
@@ -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 */ |