mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-12 01:23:56 -03:00
Sub: Check all EKF cores are healthy before arming
This commit is contained in:
parent
f5511d6119
commit
75e5efc16e
@ -31,7 +31,7 @@ bool AP_Arming_Sub::ins_checks(bool display_failure)
|
|||||||
// additional sub-specific checks
|
// additional sub-specific checks
|
||||||
if ((checks_to_perform & ARMING_CHECK_ALL) ||
|
if ((checks_to_perform & ARMING_CHECK_ALL) ||
|
||||||
(checks_to_perform & ARMING_CHECK_INS)) {
|
(checks_to_perform & ARMING_CHECK_INS)) {
|
||||||
if (!AP::ahrs().healthy()) {
|
if (!AP::ahrs().prearm_healthy()) {
|
||||||
const char *reason = AP::ahrs().prearm_failure_reason();
|
const char *reason = AP::ahrs().prearm_failure_reason();
|
||||||
if (reason == nullptr) {
|
if (reason == nullptr) {
|
||||||
reason = "AHRS not healthy";
|
reason = "AHRS not healthy";
|
||||||
|
Loading…
Reference in New Issue
Block a user