mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AC_PosControl_Sub: do not reset I term when relaxing alt hold controller
This commit is contained in:
parent
7e46685986
commit
d592382057
@ -100,7 +100,6 @@ void AC_PosControl_Sub::relax_alt_hold_controllers()
|
||||
_accel_desired.z = 0.0f;
|
||||
_accel_last_z_cms = 0.0f;
|
||||
_flags.reset_rate_to_accel_z = true;
|
||||
_pid_accel_z.set_integrator(-_motors.get_throttle_hover() * 1000.0f);
|
||||
_accel_target.z = -(_ahrs.get_accel_ef_blended().z + GRAVITY_MSS) * 100.0f;
|
||||
_pid_accel_z.reset_filter();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user