From 3846da5e23e38b9163917e1503af5e9914bad53b Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Mon, 4 Sep 2017 14:45:33 +1000 Subject: [PATCH] Copter: remove redundant terrain checks Now taken care of by continuous prearm checks --- ArduCopter/AP_Arming.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/ArduCopter/AP_Arming.cpp b/ArduCopter/AP_Arming.cpp index f7c3c50d92..953b394a49 100644 --- a/ArduCopter/AP_Arming.cpp +++ b/ArduCopter/AP_Arming.cpp @@ -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) {