summaryrefslogtreecommitdiff
path: root/test/sample.aivdm.chk
diff options
context:
space:
mode:
authorJon Schlueter <jschlueter@redhat.com>2016-01-05 00:05:34 -0500
committerJon Schlueter <jschlueter@redhat.com>2016-01-05 02:09:34 -0500
commitdb5a1d5c9d23ce0e3ff8eab219c91ff425def344 (patch)
treee7b3a27db8dc06d661592ba15d370377a586ed1e /test/sample.aivdm.chk
parent39d128cc124bfe0f85b1d7752bbf3fcefce7c425 (diff)
downloadgpsd-db5a1d5c9d23ce0e3ff8eab219c91ff425def344.tar.gz
[aivdm] Expand driver type 16 to handle 168 bits
Found a live sample that was not handled right by the ais driver for type=16 max size had to be increased to 168 bits from 144 this looks sane as the samples of this type of message as follows shows that the increment1, mmsi2, offset2, and increment2 have a value. It also matches results from http://www.aggsoft.com/ais-decoder.htm test/sample.aivdm.js.chk 42:{"class":"AIS","device":"stdin","type":16,"repeat":0,"mmsi":2053501,"scaled":true,"mmsi1":224251000,"offset1":200,"increment1":0,"mmsi2":0,"offset2":0,"increment2":0} 92:{"class":"AIS","device":"stdin","type":16,"repeat":0,"mmsi":439952844,"scaled":true,"mmsi1":315920,"offset1":2049,"increment1":681,"mmsi2":230137673,"offset2":424,"increment2":419}
Diffstat (limited to 'test/sample.aivdm.chk')
-rw-r--r--test/sample.aivdm.chk1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/sample.aivdm.chk b/test/sample.aivdm.chk
index 684d496a..7801eb5d 100644
--- a/test/sample.aivdm.chk
+++ b/test/sample.aivdm.chk
@@ -89,3 +89,4 @@
8|0|002391100|1|16|240:0000e56a780022b4440a903c3bbf00000130ac568022bab80ad35f803f00
8|0|002711009|1|16|720:00025e8d136025bd890d5520b2ff0ac000000070202580430d4bbf003f000001027cc3302597b60d4b15003f000000c5c4a9802584cf0d3f45803f000000f47ba58025cdf40d4391003f0000010272bb00258e5f0d44f7c9ff0a
21|0|004000003|30|IBC G BUOY|1|75943336|22448680|2|2|2|2|1|31|0|0x0|0|0
+16|0|439952844|315920|2049|681|230137673|424|419