summaryrefslogtreecommitdiff
path: root/jsongen.py
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-09-03 22:06:39 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-09-03 22:06:39 +0000
commit6f7dfcf6f615ef4068493330edd12f20ff25cd03 (patch)
tree7c8db8a5e7c3fbdae9989ab8c743b6316d3ba34f /jsongen.py
parente2ee8609491bf6ce803183aa0c036460584ac404 (diff)
downloadgpsd-6f7dfcf6f615ef4068493330edd12f20ff25cd03.tar.gz
Use CYCLE_END condition for the 2-part mal-design of AIS message 24 properly.
Diffstat (limited to 'jsongen.py')
-rwxr-xr-xjsongen.py19
1 files changed, 9 insertions, 10 deletions
diff --git a/jsongen.py b/jsongen.py
index 727176fc..0f26500c 100755
--- a/jsongen.py
+++ b/jsongen.py
@@ -331,16 +331,15 @@ ais_specs = (
"structname": "ais->type24",
"fieldmap":(
# fieldname type default
- ('part', 'uinteger', '0'),
- ('a.shipname', 'string', None), # Part A
- ('b.shiptype', 'uinteger', '0'), # Part B
- ('b.vendorid', 'string', None), # Part B
- ('b.callsign', 'string', None), # Part B
- ('b.mothership_mmsi', 'uinteger', '0'), # Part B
- ('b.dim.to_bow', 'uinteger', '0'), # Part B
- ('b.dim.to_stern', 'uinteger', '0'), # Part B
- ('b.dim.to_port', 'uinteger', '0'), # Part B
- ('b.dim.to_starboard', 'uinteger', '0'), # Part B
+ ('shipname', 'string', None), # Part A
+ ('shiptype', 'uinteger', '0'), # Part B
+ ('vendorid', 'string', None), # Part B
+ ('callsign', 'string', None), # Part B
+ ('mothership_mmsi', 'uinteger', '0'), # Part B
+ ('dim.to_bow', 'uinteger', '0'), # Part B
+ ('dim.to_stern', 'uinteger', '0'), # Part B
+ ('dim.to_port', 'uinteger', '0'), # Part B
+ ('dim.to_starboard', 'uinteger', '0'), # Part B
),
},
)