Skip to content

Commit

Permalink
FW Position Control: keep flaps in landing config during abort if bel…
Browse files Browse the repository at this point in the history
…ow AIRSPD_MIN (#23877)

Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
  • Loading branch information
sfuhrer authored Feb 20, 2025
1 parent 29317d9 commit 24da87d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/modules/fw_pos_control/FixedwingPositionControl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1316,7 +1316,15 @@ FixedwingPositionControl::control_auto_loiter(const float control_interval, cons

} else {
// continue straight until vehicle has sufficient altitude
// keep flaps in landing configuration if the airspeed is below the min airspeed (keep deployed if airspeed not valid)
roll_body = 0.0f;

if (!_airspeed_valid || _airspeed_eas < _performance_model.getMinimumCalibratedAirspeed()) {
_flaps_setpoint = _param_fw_flaps_lnd_scl.get();

} else {
_flaps_setpoint = 0.f;
}
}

is_low_height = true; // In low-height flight, TECS will control altitude tighter
Expand Down

0 comments on commit 24da87d

Please sign in to comment.