summaryrefslogtreecommitdiff
path: root/ais.py
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-06-17 04:32:51 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-06-17 04:32:51 +0000
commit66a9055827ad0329be90d17c10ae4ab9fa401c6f (patch)
treeee4abd212b4d68f711d690a77c4bec0e57474d98 /ais.py
parent1dfe31550da7c1b5cbe95e1aac0ece5687192a50 (diff)
downloadgpsd-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-xais.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/ais.py b/ais.py
index 8f665cbb..89bc5609 100755
--- a/ais.py
+++ b/ais.py
@@ -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 = (