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:
Lorenz Meier
2020-03-14 23:01:19 +01:00
parent 21435bd32b
commit 9d5aebd235
3 changed files with 20 additions and 16 deletions
+2 -2
View File
@@ -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);
}