Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add support for ais msg type 16 #18

Merged

Conversation

salsabiljb
Copy link
Contributor

@salsabiljb salsabiljb commented Aug 20, 2024

added support for parsing AIS message type 16, following this documentation AIVDM/AIVDO protocol decoding. I tested on three message samples: one from the gpsd test file, an example from Arundale AIS, and a sample from the pyais library.

The implementation of this type consider an optional second station assignment. If the bitstream contains at least 52 bits after parsing the first station, the code proceeds to handle the second station. Otherwise, it assumes the message contains a single station assignment.

Here is a screenshot of testing a sample of messages with both pyais and ais rust after adding support for type 16
Pasted image

@salsabiljb salsabiljb force-pushed the Assignment_Mode_Command_Type_16 branch from bee7263 to 7210623 Compare August 21, 2024 09:16
@salsabiljb salsabiljb force-pushed the Assignment_Mode_Command_Type_16 branch from 7210623 to 72d8194 Compare September 9, 2024 14:50
@squidpickles squidpickles merged commit c1e7209 into squidpickles:main Oct 8, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants