Skip to content

comm_b: check raw fields for BDS 4,4 status consistency - #152

Merged
wiedehopf merged 1 commit into
wiedehopf:devfrom
joliverosh:pr5-bds44-raw-status
Sep 22, 2026
Merged

wiedehopf merged 1 commit into
wiedehopf:devfrom
joliverosh:pr5-bds44-raw-status

Conversation

@joliverosh

Copy link
Copy Markdown
Contributor

In decodeBDS44 the "field not valid" branches tested local variables that are always zero at that point (wind_speed, static_pressure, turbulence, humidity), so a reply with the status bit clear but non-zero bits in the field still scored instead of being rejected. Check the raw fields, as decodeBDS50/60 do: status clear requires the field to be zero-filled, otherwise the candidate is discarded.

No behaviour change for valid MRAR replies; reduces false BDS 4,4 matches on garbled Comm-B. Compiled with -Werror and running on our receiver.

@wiedehopf
wiedehopf merged commit 85a6985 into wiedehopf:dev Sep 22, 2026
1 check 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