Commander: strictly separate GNSS checks from global position ones#27374
Commander: strictly separate GNSS checks from global position ones#27374sfuhrer wants to merge 2 commits into
Conversation
…_GPS for GPS checks Reject arming if SYS_HAS_NUM_GNSS is >0 and a GNSS quality check is failing. Do not distinguish between modes, treat all modes the same. Never publish a warning only. Signed-off-by: Silvan <silvan@auterion.com>
Strictly separate GNSS checks from global position. Arming logic around needing global position: add warning level, as the paramter already had it. Signed-off-by: Silvan <silvan@auterion.com>
💡 Commit messages could be improvedNot blocking, but these commit messages could use some cleanup.
See the commit message convention for details. This comment will be automatically removed once the issues are resolved. |
❌ PR title needs conventional commit formatExpected format: Your title:
Suggested fix:
To fix this: click the ✏️ next to the PR title at the top of this page and update it. See CONTRIBUTING.md for details. This comment will be automatically removed once the issue is resolved. |
🔎 FLASH Analysispx4_fmu-v5x [Total VM Diff: 144 byte (0.01 %)]px4_fmu-v6x [Total VM Diff: 200 byte (0.01 %)]Updated: 2026-05-18T09:23:25 |
|
No broken links found in changed files. |
|
|
||
| } else { | ||
| required_modes.message_modes = required_modes.fail_modes = NavModes::None; | ||
| log_level = events::Log::Disabled; |
There was a problem hiding this comment.
The description for SYS_HAS_NUM_GNSS says it will warn, and it does below via mavlink_log_warning, shouldn't we mark this as warn for all modes?
Solved Problem
Name of COM_ARM_WO_GPS is confusing and partially wrong.
Solution
COM_ARM_WO_GPStoCOM_ARM_WO_GPOS.This follows up on #26863: If the system is expected to never be flown without a valid GNSS,
SYS_HAS_NUM_GNSSshould be set to >0. The system then rejects arming, and can failsafe if it looses it in-air (separate config,COM_GNSSLOSS_ACT).Changelog Entry
For release notes:
Alternatives
Test coverage
Untested.