mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AC_WPNav: WPNAV_LOIT_SPEED WPNAV_LOIT_MAXA take effect immediately
This commit is contained in:
parent
674bedd867
commit
f9c7f15052
@ -330,6 +330,11 @@ void AC_WPNav::update_loiter(float ekfGndSpdLimit, float ekfNavVelGainScaler)
|
||||
// initialise ekf position reset check
|
||||
check_for_ekf_position_reset();
|
||||
|
||||
// initialise pos controller speed and acceleration
|
||||
_pos_control.set_speed_xy(_loiter_speed_cms);
|
||||
_pos_control.set_accel_xy(_loiter_accel_cmss);
|
||||
_pos_control.set_jerk_xy(_loiter_jerk_max_cmsss);
|
||||
|
||||
calc_loiter_desired_velocity(dt,ekfGndSpdLimit);
|
||||
_pos_control.update_xy_controller(AC_PosControl::XY_MODE_POS_LIMITED_AND_VEL_FF, ekfNavVelGainScaler, true);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user