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

AP_ADSB: add ability to force Mode3AC Only #28739

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

magicrub
Copy link
Contributor

Add ability to force Mode3AC Only (disable Mode-S aka ADSB). Technically this can be controlled by the GCS via MAVLink but none implement it and it can totally ground your aircraft if you can't do it immediately, no matter what GCS you're running.

variable description says it all:

// @Description: Transmit in traditional Mode 3A/C only and inhibit Mode-S and ES (ADSB) transmissions. This is useful when an ATC (Air Traffic control) requests it in certain scenarios.
// @Values: 0:Transmit all Modes (3A 3C S ES), 1:Transmit Mode 3A/C only (no ADSB).

I also added a minor refactor.

Copy link
Contributor

@peterbarker peterbarker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

... also, the refactor is completely unrelated and shouldn't be in here. Shift it to a new PR, it looks like an easy merge.

libraries/AP_ADSB/AP_ADSB.cpp Outdated Show resolved Hide resolved
@magicrub
Copy link
Contributor Author

refactor is in PR #28763

@Hwurzburg Hwurzburg added the WikiNeeded needs wiki update label Nov 28, 2024
@magicrub
Copy link
Contributor Author

magicrub commented Dec 2, 2024

I don't think a wiki update is needed. It's just an option and all the text that is needed is already captured in the options param

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants