summaryrefslogtreecommitdiff
path: root/driver_ais.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-10-06 08:50:53 -0400
committerEric S. Raymond <esr@thyrsus.com>2013-10-06 08:50:53 -0400
commit1dfb1154882170136dc633b1781dbddbb8e634c5 (patch)
tree519d7627044f3fcab52bda16e96a71d49b82b383 /driver_ais.c
parenta8537e5c3598fb092b7f816be3945921673162d6 (diff)
downloadgpsd-1dfb1154882170136dc633b1781dbddbb8e634c5.tar.gz
Inland AIS full support (untested).
Diffstat (limited to 'driver_ais.c')
-rw-r--r--driver_ais.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/driver_ais.c b/driver_ais.c
index 17d5cb89..af4b25b8 100644
--- a/driver_ais.c
+++ b/driver_ais.c
@@ -693,6 +693,16 @@ bool ais_binary_decode(const int debug,
/* skip 6 bits */
imo = true;
break;
+ case 40:
+ ais->type8.dac200fid40.lon = SBITS(56, 28);
+ ais->type8.dac200fid40.lat = SBITS(84, 27);
+ ais->type8.dac200fid40.form = UBITS(111, 4);
+ ais->type8.dac200fid40.facing = UBITS(115, 9);
+ ais->type8.dac200fid40.direction = UBITS(124, 3);
+ ais->type8.dac200fid40.status = UBITS(127, 30);
+ /* skip 11 bits */
+ imo = true;
+ break;
}
}
/* land here if we failed to match a known DAC/FID */