mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-29 12:30:34 +08:00
Commander: Run continuous pre-flight checks silently
As we are checking the current pre-flight state and validate wether the system could be armed, we do not want to spam the console or user with continously failing checks. These checks are reported to the GCS separately and are processed and displayed there.
This commit is contained in:
@@ -2254,9 +2254,9 @@ Commander::run()
|
||||
|
||||
// Evaluate current prearm status
|
||||
if (!armed.armed) {
|
||||
bool preflight_check_res = PreFlightCheck::preflightCheck(nullptr, status, status_flags, true, true, true, 30_s);
|
||||
bool preflight_check_res = PreFlightCheck::preflightCheck(nullptr, status, status_flags, true, false, true, 30_s);
|
||||
bool prearm_check_res = PreFlightCheck::preArmCheck(nullptr, status_flags, _safety,
|
||||
_arm_requirements, status);
|
||||
_arm_requirements, status, false);
|
||||
set_health_flags(subsystem_info_s::SUBSYSTEM_TYPE_PREARM_CHECK, true, true, (preflight_check_res
|
||||
&& prearm_check_res), status);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user