mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-28 17:00:35 +08:00
FlightModeManager: fix integral reset on ground
This information could also be used for yaw and integral resets of the lower level controllers.
This commit is contained in:
committed by
Daniel Agar
parent
7de288877a
commit
fafbb687d8
@@ -254,6 +254,10 @@ void MulticopterPositionControl::Run()
|
||||
_control.setConstraints(constraints);
|
||||
_control.setThrustLimits(constraints.minimum_thrust, _param_mpc_thr_max.get());
|
||||
|
||||
if (constraints.reset_integral) {
|
||||
_control.resetIntegral();
|
||||
}
|
||||
|
||||
// Run position control
|
||||
if (_control.update(dt)) {
|
||||
_failsafe_land_hysteresis.set_state_and_update(false, time_stamp_now);
|
||||
|
||||
Reference in New Issue
Block a user