Copter: check all EKF cores for health on arming
This commit is contained in:
parent
4fda39a79a
commit
8290bd4e67
@ -286,8 +286,12 @@ bool AP_Arming_Copter::gps_checks(bool display_failure)
|
||||
const AP_AHRS_NavEKF &ahrs = AP::ahrs_navekf();
|
||||
|
||||
// always check if inertial nav has started and is ready
|
||||
if (!ahrs.healthy()) {
|
||||
check_failed(ARMING_CHECK_NONE, display_failure, "AHRS not healthy");
|
||||
if (!ahrs.prearm_healthy()) {
|
||||
const char *reason = ahrs.prearm_failure_reason();
|
||||
if (reason == nullptr) {
|
||||
reason = "AHRS not healthy";
|
||||
}
|
||||
check_failed(ARMING_CHECK_NONE, display_failure, "%s", reason);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user