summaryrefslogtreecommitdiff
path: root/driver_aivdm.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-05-26 08:31:50 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-05-26 08:31:50 -0400
commit3f1df8b8fd869c256c2c6bcbe4bcf066f6af7d84 (patch)
treed0d5ae29980c54950e34ad68532f91c75f13f882 /driver_aivdm.c
parentca9f363c457b42372fc10c2883535035bcd7a1fe (diff)
downloadgpsd-3f1df8b8fd869c256c2c6bcbe4bcf066f6af7d84.tar.gz
Back out AIS Tidal Window message support.
It wasn't dealing with the variable-length segment at the end properly.
Diffstat (limited to 'driver_aivdm.c')
-rw-r--r--driver_aivdm.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/driver_aivdm.c b/driver_aivdm.c
index b2dd168d..72f27675 100644
--- a/driver_aivdm.c
+++ b/driver_aivdm.c
@@ -359,17 +359,6 @@ bool aivdm_decode(const char *buf, size_t buflen,
/* skip 3 bits */
break;
case 14: /* IMO236 - Tidal window */
- /* use IMO289 structure because layout is nearly same */
- ais->type6.dac1fid32.month = UBITS(88, 4);
- ais->type6.dac1fid32.day = UBITS(92, 5);
- ais->type6.dac1fid32.lon = UBITS(97, 25);
- ais->type6.dac1fid32.lat = UBITS(122, 24);
- ais->type6.dac1fid32.from_hour = UBITS(146, 5);
- ais->type6.dac1fid32.from_min = UBITS(151, 6);
- ais->type6.dac1fid32.to_hour = UBITS(157, 5);
- ais->type6.dac1fid32.to_min = UBITS(162, 6);
- ais->type6.dac1fid32.cdir = UBITS(168, 9);
- ais->type6.dac1fid32.cspeed = UBITS(177, 7);
break;
case 15: /* IMO236 - Extended Ship Static and Voyage Related Data */
ais->type6.dac1fid15.airdraught = UBITS(56, 11);
@@ -453,16 +442,6 @@ bool aivdm_decode(const char *buf, size_t buflen,
ais->type6.dac1fid30.text);
break;
case 32: /* IMO289 - Tidal Window */
- ais->type6.dac1fid32.month = UBITS(88, 4);
- ais->type6.dac1fid32.day = UBITS(92, 5);
- ais->type6.dac1fid32.lat = UBITS(97, 27);
- ais->type6.dac1fid32.lon = UBITS(124, 28);
- ais->type6.dac1fid32.from_hour = UBITS(152, 5);
- ais->type6.dac1fid32.from_min = UBITS(152, 6);
- ais->type6.dac1fid32.to_hour = UBITS(157, 5);
- ais->type6.dac1fid32.to_min = UBITS(163, 6);
- ais->type6.dac1fid32.cdir = UBITS(174, 9);
- ais->type6.dac1fid32.cspeed = UBITS(183, 7);
break;
}
if (!imo)