mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-28 11:50:35 +08:00
mc_pos_control: fix potential thrust spike on hover thrust change
Co-authored-by: Josh Henderson <hendjoshsr71@gmail.com> Co-authored-by: Matthias Grob <maetugr@gmail.com>
This commit is contained in:
committed by
GitHub
parent
da14650aa2
commit
1e4fcfc614
@@ -506,7 +506,6 @@ void MulticopterPositionControl::Run()
|
||||
|
||||
// Allow ramping from zero thrust on takeoff
|
||||
const float minimum_thrust = flying ? _param_mpc_thr_min.get() : 0.f;
|
||||
|
||||
_control.setThrustLimits(minimum_thrust, _param_mpc_thr_max.get());
|
||||
|
||||
float max_speed_xy = _param_mpc_xy_vel_max.get();
|
||||
|
||||
Reference in New Issue
Block a user