Copter: remove redundant terrain checks

Now taken care of by continuous prearm checks
This commit is contained in:
Peter Barker 2017-09-04 14:45:33 +10:00 committed by Randy Mackay
parent d537461934
commit 3846da5e23

View File

@ -571,13 +571,6 @@ bool AP_Arming_Copter::arm_checks(bool display_failure, bool arming_from_gcs)
}
}
// check for missing terrain data
if ((checks_to_perform == ARMING_CHECK_ALL) || (checks_to_perform & ARMING_CHECK_PARAMETERS)) {
if (!pre_arm_terrain_check(display_failure)) {
return false;
}
}
// check adsb
if ((checks_to_perform == ARMING_CHECK_ALL) || (checks_to_perform & ARMING_CHECK_PARAMETERS)) {
if (copter.failsafe.adsb) {