From 93ae6f17399dc14fce80205c5dc0cb8248e15be5 Mon Sep 17 00:00:00 2001 From: Paul Riseborough Date: Tue, 29 Nov 2022 10:29:32 +1100 Subject: [PATCH] AP_TECS: Remove duplicate setting of flare pitch upper limit --- libraries/AP_TECS/AP_TECS.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/libraries/AP_TECS/AP_TECS.cpp b/libraries/AP_TECS/AP_TECS.cpp index da04c20bfa..4986e1bb99 100644 --- a/libraries/AP_TECS/AP_TECS.cpp +++ b/libraries/AP_TECS/AP_TECS.cpp @@ -1262,13 +1262,6 @@ void AP_TECS::update_pitch_throttle(int32_t hgt_dem_cm, _PITCHminf = MAX(_land_pitch_min, _PITCHminf); } - if (_landing.is_flaring()) { - // ensure we don't violate the limits for flare pitch - if (_land_pitch_max != 0) { - _PITCHmaxf = MIN(_land_pitch_max, _PITCHmaxf); - } - } - if (flight_stage == AP_FixedWing::FlightStage::TAKEOFF || flight_stage == AP_FixedWing::FlightStage::ABORT_LANDING) { if (!_flags.reached_speed_takeoff && _TAS_state >= _TAS_dem_adj) { // we have reached our target speed in takeoff, allow for