mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-24 11:13:34 +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:
co-authored by
Beat Küng
parent
ed0a01d5da
commit
21435bd32b
@@ -2255,8 +2255,8 @@ Commander::run()
|
|||||||
// Evaluate current prearm status
|
// Evaluate current prearm status
|
||||||
if (!armed.armed) {
|
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, true, true, 30_s);
|
||||||
bool prearm_check_res = PreFlightCheck::preArmCheck(nullptr, status_flags, safety_s{},
|
bool prearm_check_res = PreFlightCheck::preArmCheck(nullptr, status_flags, _safety,
|
||||||
PreFlightCheck::arm_requirements_t{}, status);
|
_arm_requirements, status);
|
||||||
set_health_flags(subsystem_info_s::SUBSYSTEM_TYPE_PREARM_CHECK, true, true, (preflight_check_res
|
set_health_flags(subsystem_info_s::SUBSYSTEM_TYPE_PREARM_CHECK, true, true, (preflight_check_res
|
||||||
&& prearm_check_res), status);
|
&& prearm_check_res), status);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user