schwehr / libais

C++ decoder for Automatic Identification System for tracking ships and decoding maritime information
Other
215 stars 94 forks source link

ais.h assigned_mode is type int for messages 9 & 19, boolean for type 21 #201

Open kiwibrew opened 4 years ago

kiwibrew commented 4 years ago

My reading of ITU-R M.1371-5 assigned_mode is that it's a boolean variable. This (fantastic and much appreciated) decoder treats assigned_mode as type int for messages 9 & 19, and type boolean for message 21. It'd be super awesome if it could be either boolean or int for all three message types. Is it just a matter of changing ais.h, or are there other parts of the application that would need updating?

kiwibrew commented 3 years ago

Hi, just asking for advice here so I know where to start.