mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-09 09:28:31 -04:00
Plane: integrate ahrs.pre_arm_check
This commit is contained in:
parent
49e1e8cc16
commit
60b4953751
@ -126,7 +126,7 @@ bool AP_Arming_Plane::ins_checks(bool display_failure)
|
|||||||
(checks_to_perform & ARMING_CHECK_INS)) {
|
(checks_to_perform & ARMING_CHECK_INS)) {
|
||||||
char failure_msg[50] = {};
|
char failure_msg[50] = {};
|
||||||
if (!AP::ahrs().pre_arm_check(failure_msg, sizeof(failure_msg))) {
|
if (!AP::ahrs().pre_arm_check(failure_msg, sizeof(failure_msg))) {
|
||||||
check_failed(ARMING_CHECK_INS, display_failure, "%s", failure_msg);
|
check_failed(ARMING_CHECK_INS, display_failure, "AHRS: %s", failure_msg);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user