Skip to content

Correct EMMA warning dates and signed minimum/maximum values - #273

Open
Solarboaters wants to merge 1 commit into
schwehr:mainfrom
Solarboaters:fix/emma-dates-and-signed-values
Open

Solarboaters wants to merge 1 commit into
schwehr:mainfrom
Solarboaters:fix/emma-dates-and-signed-values

Conversation

@Solarboaters

Copy link
Copy Markdown

Correct the month/day offsets and decode sign-magnitude minimum/maximum values in EMMA warning messages (8:200:23), addressing @schwehr's #39 and #40 together. The 17-bit dates use 8/4/5-bit fields, and the values use one sign bit plus eight magnitude bits, following ECE/TRANS/SC.3/176, Table 2.11.

Four synthetic messages reproduce a debug assertion failure and incorrect release-build dates/negative values before the change. Afterward, all 30 native test programs pass with AddressSanitizer; the release regression, 90 Python tests and four Python-binding fixture checks also pass. Fixtures cover both signs, signed zero, magnitude limits and unchanged adjacent fields. No live AIS reception was tested.

Fixes #39. Fixes #40.

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.

8:200:23 sign bit not used 8:200:23 not decoding all the bits

1 participant