mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-24 17:48:35 -04:00
Copter: remove redundant terrain checks
Now taken care of by continuous prearm checks
This commit is contained in:
parent
d537461934
commit
3846da5e23
@ -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
|
// check adsb
|
||||||
if ((checks_to_perform == ARMING_CHECK_ALL) || (checks_to_perform & ARMING_CHECK_PARAMETERS)) {
|
if ((checks_to_perform == ARMING_CHECK_ALL) || (checks_to_perform & ARMING_CHECK_PARAMETERS)) {
|
||||||
if (copter.failsafe.adsb) {
|
if (copter.failsafe.adsb) {
|
||||||
|
Loading…
Reference in New Issue
Block a user