mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
Report preflight and pre-arm checks from period checks
With this change we are reporting any issues we find with the periodic check. Co-Authored-By: Beat Küng <beat-kueng@gmx.net>
This commit is contained in:
parent
ed0a01d5da
commit
21435bd32b
@ -2255,8 +2255,8 @@ 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 prearm_check_res = PreFlightCheck::preArmCheck(nullptr, status_flags, safety_s{},
|
||||
PreFlightCheck::arm_requirements_t{}, status);
|
||||
bool prearm_check_res = PreFlightCheck::preArmCheck(nullptr, status_flags, _safety,
|
||||
_arm_requirements, status);
|
||||
set_health_flags(subsystem_info_s::SUBSYSTEM_TYPE_PREARM_CHECK, true, true, (preflight_check_res
|
||||
&& prearm_check_res), status);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user