feat(commander): add failsafe for traffic avoidance system#27887
Open
anilkir wants to merge 2 commits into
Open
feat(commander): add failsafe for traffic avoidance system#27887anilkir wants to merge 2 commits into
anilkir wants to merge 2 commits into
Conversation
Contributor
🔎 FLASH Analysispx4_fmu-v5x [Total VM Diff: 304 byte (0.02 %)]px4_fmu-v6x [Total VM Diff: 288 byte (0.01 %)]Updated: 2026-07-14T21:23:15 |
Contributor
|
No broken links found in changed files. |
42a54c0 to
25a96de
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Solved Problem
COM_ARM_TRAFFonly ever gated arming. It didn't have a way to trigger an in-flight failsafe (Warn/RTL/Land) if a previously-detected ADS-B/FLARM traffic avoidance system stopped reporting mid-flight.Solution
Replaced
COM_ARM_TRAFFwithCOM_TRAFF_AVOID, a single parameter that drives both the arming check and a new in-flight failsafe. Addstraffic_avoidance_unhealthytoFailsafeFlags.msg, wiresFailsafe::fromTrafficAvoidanceActParam()in failsafe.cpp/.h, updatestrafficAvoidanceCheck.cppto report both the health/arming result and the failsafe flag, and migrates existingCOM_ARM_TRAFFvalues viaparam_translation.cpp. Unit tests cover both the health-check boundary (arming block at value 2) and the failsafe action mapping (all 5 values).Changelog Entry
For release notes:
Alternatives
Test coverage
Context
Related links, screenshot before/after, video