summaryrefslogtreecommitdiff
path: root/test/sample.aivdm.js.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.js.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.js.chk')
-rw-r--r--test/sample.aivdm.js.chk1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/sample.aivdm.js.chk b/test/sample.aivdm.js.chk
index ce8b7b1e..a5005353 100644
--- a/test/sample.aivdm.js.chk
+++ b/test/sample.aivdm.js.chk
@@ -89,3 +89,4 @@
{"class":"AIS","device":"stdin","type":8,"repeat":0,"mmsi":2391100,"scaled":true,"dac":1,"fid":16,"data":"240:0000e56a780022b4440a903c3bbf00000130ac568022bab80ad35f803f00"}
{"class":"AIS","device":"stdin","type":8,"repeat":0,"mmsi":2711009,"scaled":true,"dac":1,"fid":16,"data":"720:00025e8d136025bd890d5520b2ff0ac000000070202580430d4bbf003f000001027cc3302597b60d4b15003f000000c5c4a9802584cf0d3f45803f000000f47ba58025cdf40d4391003f0000010272bb00258e5f0d44f7c9ff0a"}
{"class":"AIS","device":"stdin","type":21,"repeat":0,"mmsi":4000003,"scaled":true,"aid_type":30,"aid_type_text":"Special Mark","name":"IBC G BUOY","lon":126.5722,"lat":37.4145,"accuracy":true,"to_bow":2,"to_stern":2,"to_port":2,"to_starboard":2,"epfd":1,"epfd_text":"GPS","second":31,"regional":0,"off_position":false,"raim":false,"virtual_aid":false}
+{"class":"AIS","device":"stdin","type":16,"repeat":0,"mmsi":439952844,"scaled":true,"mmsi1":315920,"offset1":2049,"increment1":681,"mmsi2":230137673,"offset2":424,"increment2":419}