We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a69464 commit 78d45a5Copy full SHA for 78d45a5
libraries/AC_WPNav/AC_Loiter.cpp
@@ -118,8 +118,8 @@ void AC_Loiter::init_target()
118
_pos_control.set_correction_speed_accel_xy(LOITER_VEL_CORRECTION_MAX, _accel_cmss);
119
_pos_control.set_pos_error_max_xy_cm(LOITER_POS_CORRECTION_MAX);
120
121
- // initialise position controller
122
- _pos_control.init_xy_controller();
+ // initialise position controller and move target accelerations smoothly towards zero
+ _pos_control.relax_velocity_controller_xy();
123
124
// initialise predicted acceleration and angles from the position controller
125
_predicted_accel.x = _pos_control.get_accel_target_cmss().x;
0 commit comments