diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-11-29 23:26:41 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-11-29 23:26:41 +0000 |
commit | 03e388a376837a9e278e1ed8efc0834f8a5eaf2f (patch) | |
tree | eccb70c578c236673468ce835ebfd34baf5568d5 /devtools | |
parent | bdf270760d545ac8981b04507516380dc9781d14 (diff) | |
download | gpsd-03e388a376837a9e278e1ed8efc0834f8a5eaf2f.tar.gz |
Improved handling of message 23 in the Python decoder.
Diffstat (limited to 'devtools')
-rwxr-xr-x | devtools/ais.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/devtools/ais.py b/devtools/ais.py index 06b3f09b..6f63a097 100755 --- a/devtools/ais.py +++ b/devtools/ais.py @@ -608,10 +608,10 @@ type23 = ( formatter=short_latlon_format), bitfield("sw_lat", 17, 'unsigned', 0xd548, "SW Latitude", formatter=short_latlon_format), - bitfield("stationtype",9,'unsigned', 0, "Station Type", + bitfield("stationtype",4, 'unsigned', 0, "Station Type", validator=lambda n: n >= 0 and n <= 31, formatter=station_type_legends), - bitfield("shiptype", 9, 'unsigned', 0, "Ship Type", + bitfield("shiptype", 8, 'unsigned', 0, "Ship Type", validator=lambda n: n >= 0 and n <= 99, formatter=ship_type_legends), spare(22), @@ -655,7 +655,7 @@ type24 = ( aivdm_decode = ( bitfield('msgtype', 6, 'unsigned', 0, "Message Type", - validator=lambda n: n > 0 and n <= 24 and n != 23), + validator=lambda n: n > 0 and n <= 24), bitfield('repeat', 2, 'unsigned', None, "Repeat Indicator"), bitfield('mmsi', 30, 'unsigned', 0, "MMSI"), # This is the master dispatch on AIS message type |