Browse Source

Plane: integrate ahrs.pre_arm_check

zr-v5.1
Randy Mackay 4 years ago committed by Peter Barker
parent
commit
60b4953751
  1. 2
      ArduPlane/AP_Arming.cpp

2
ArduPlane/AP_Arming.cpp

@ -126,7 +126,7 @@ bool AP_Arming_Plane::ins_checks(bool display_failure) @@ -126,7 +126,7 @@ bool AP_Arming_Plane::ins_checks(bool display_failure)
(checks_to_perform & ARMING_CHECK_INS)) {
char failure_msg[50] = {};
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;
}
}

Loading…
Cancel
Save