AC_PosControl: init_z_controller_stopping_point: remove duplicate set_integrator

This commit is contained in:
Iampete1 2021-08-21 00:54:24 +01:00 committed by Randy Mackay
parent 9a26509eee
commit c47bc995d1
1 changed files with 0 additions and 3 deletions

View File

@ -765,9 +765,6 @@ void AC_PosControl::init_z_controller_stopping_point()
get_stopping_point_z_cm(_pos_target.z);
_vel_target.z = 0.0f;
// Set accel PID I term based on the current throttle
_pid_accel_z.set_integrator((_attitude_control.get_throttle_in() - _motors.get_throttle_hover()) * 1000.0f);
}
// relax_z_controller - initialise the position controller to the current position and velocity with decaying acceleration.