mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_TECS: Remove duplicate setting of flare pitch upper limit
This commit is contained in:
parent
dab61bf3ef
commit
93ae6f1739
@ -1262,13 +1262,6 @@ void AP_TECS::update_pitch_throttle(int32_t hgt_dem_cm,
|
|||||||
_PITCHminf = MAX(_land_pitch_min, _PITCHminf);
|
_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 (flight_stage == AP_FixedWing::FlightStage::TAKEOFF || flight_stage == AP_FixedWing::FlightStage::ABORT_LANDING) {
|
||||||
if (!_flags.reached_speed_takeoff && _TAS_state >= _TAS_dem_adj) {
|
if (!_flags.reached_speed_takeoff && _TAS_state >= _TAS_dem_adj) {
|
||||||
// we have reached our target speed in takeoff, allow for
|
// we have reached our target speed in takeoff, allow for
|
||||||
|
Loading…
Reference in New Issue
Block a user