Skip to content

Return successful USCG area notices from the Python decoder - #271

Open
Solarboaters wants to merge 1 commit into
schwehr:mainfrom
Solarboaters:fix/uscg-area-notice-python-status
Open

Solarboaters wants to merge 1 commit into
schwehr:mainfrom
Solarboaters:fix/uscg-area-notice-python-status

Conversation

@Solarboaters

Copy link
Copy Markdown

Valid USCG area notices (AIS 8:367:22) fail in ais.decode() with AIS_UNINITIALIZED, even when the C++ decoder succeeds. Return the decoder status from the Python helper and use it in the dispatch, matching the other supported message types. Malformed notices now report the actual decoder error.

Fixes #215, reported by @avanpelt.

Validation against 87dadfaa on Linux/Python 3.12:

  • Five regressions fail before the change and pass afterward: recorded circle, text and polyline notices from the existing C++ fixtures, plus truncated and reserved-shape error cases.
  • Full Python suite: 95 passed. CMake/CTest with AddressSanitizer: all 30 test executables passed.

No receiver hardware or live navigation system was tested. AI-assisted implementation and testing with OpenAI Codex; submitted for maintainer review.

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.

Status not set when processing 367_22 in ais8_to_pydict in ais_py.cpp.

1 participant