mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-28 19:20:35 +08:00
FlightModeManager: fix takeoff ramp from zero
This commit is contained in:
committed by
Daniel Agar
parent
88c274b3cd
commit
8329208b84
@@ -248,6 +248,7 @@ void MulticopterPositionControl::Run()
|
||||
vehicle_constraints_s constraints;
|
||||
_vehicle_constraints_sub.update(&constraints);
|
||||
_control.setConstraints(constraints);
|
||||
_control.setThrustLimits(constraints.minimum_thrust, _param_mpc_thr_max.get());
|
||||
|
||||
// Run position control
|
||||
if (!_control.update(dt)) {
|
||||
|
||||
Reference in New Issue
Block a user