mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-01 07:14:07 +08:00
mc_pos_control: suppress vertical acceleration feed-forward during takeoff ramp
Because the takeoff ramp is a vertical velocity limit ramp for the nice user experience but the acceleration feed-forward can add on top of the output and depending on trajectory generation result in unwanted thrust changes during the ramp.
This commit is contained in:
parent
bcce75e691
commit
8e2c52a31a
@ -616,6 +616,7 @@ MulticopterPositionControl::Run()
|
||||
// limit tilt during takeoff ramupup
|
||||
if (_takeoff.getTakeoffState() < TakeoffState::flight) {
|
||||
constraints.tilt = math::radians(_param_mpc_tiltmax_lnd.get());
|
||||
setpoint.acceleration[2] = NAN;
|
||||
}
|
||||
|
||||
// limit altitude only if local position is valid
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user