diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-06-17 04:32:51 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-06-17 04:32:51 +0000 |
commit | 66a9055827ad0329be90d17c10ae4ab9fa401c6f (patch) | |
tree | ee4abd212b4d68f711d690a77c4bec0e57474d98 /ais.py | |
parent | 1dfe31550da7c1b5cbe95e1aac0ece5687192a50 (diff) | |
download | gpsd-66a9055827ad0329be90d17c10ae4ab9fa401c6f.tar.gz |
Message 4 latitude and lomngitude were being dumped in the wrong order.
Add message types 10 and 11 in pure Python.
Diffstat (limited to 'ais.py')
-rwxr-xr-x | ais.py | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -326,13 +326,20 @@ type9 = ( bitfield("radio", 20, 'unsigned', None, "Radio status"), ) +type10 = ( + spare(2), + bitfield("dest_mmsi", 30, 'unsigned', None, "Destination MMSI"), + spare(2), + ) + aivdm_decode = [ bitfield('msgtype', 6, 'unsigned', 0, "Message Type", - validator=lambda n: n>0 and n<=9), + validator=lambda n: n>0 and n<=11), bitfield('repeat', 2, 'unsigned', None, "Repeat Indicator"), bitfield('mmsi', 30, 'unsigned', 0, "MMSI"), dispatch('msgtype', [None, cnb, cnb, cnb, type4, type5, - type6, type7, type8, type9]), + type6, type7, type8, type9, type10, + type4,]), ] field_groups = ( |