Copter: use accel_calibrated_ok_all

This commit is contained in:
Randy Mackay 2015-05-12 15:19:01 +09:00
parent 1f14eec4ea
commit ae87f9be6e

View File

@ -393,9 +393,9 @@ static bool pre_arm_checks(bool display_failure)
// check INS
if ((g.arming_check == ARMING_CHECK_ALL) || (g.arming_check & ARMING_CHECK_INS)) {
// check accelerometers have been calibrated
if(!ins.calibrated()) {
if(!ins.accel_calibrated_ok_all()) {
if (display_failure) {
gcs_send_text_P(SEVERITY_HIGH,PSTR("PreArm: INS not calibrated"));
gcs_send_text_P(SEVERITY_HIGH,PSTR("PreArm: Accels not calibrated"));
}
return false;
}