AP_Arming: check for AHRS health and calibration for arming
This commit is contained in:
parent
6e62e1ca7b
commit
a2adb9b1b0
@ -132,6 +132,18 @@ bool AP_Arming::ins_checks(bool report)
|
||||
}
|
||||
return false;
|
||||
}
|
||||
if (!ahrs.healthy()) {
|
||||
if (report) {
|
||||
gcs_send_text_P(SEVERITY_HIGH,PSTR("PreArm: AHRS not healthy!"));
|
||||
}
|
||||
return false;
|
||||
}
|
||||
if (ahrs.have_inertial_nav() && !ins.calibrated()) {
|
||||
if (report) {
|
||||
gcs_send_text_P(SEVERITY_HIGH,PSTR("PreArm: EKF requires 3D accel cal"));
|
||||
}
|
||||
return false;
|
||||
}
|
||||
#if INS_MAX_INSTANCES > 1
|
||||
// check all accelerometers point in roughly same direction
|
||||
if (ins.get_accel_count() > 1) {
|
||||
|
Loading…
Reference in New Issue
Block a user