mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-27 02:04:00 -04:00
AC_WPNav: make changes in WPNAV_ACCEL take effect immediately
this makes it easier to tune the waypoint controller in auto mode
This commit is contained in:
parent
2c7a113790
commit
f6f2973acd
@ -639,6 +639,11 @@ void AC_WPNav::update_wpnav()
|
|||||||
|
|
||||||
// update at poscontrol update rate
|
// update at poscontrol update rate
|
||||||
if (dt >= _pos_control.get_dt_xy()) {
|
if (dt >= _pos_control.get_dt_xy()) {
|
||||||
|
// allow the accel and speed values to be set without changing
|
||||||
|
// out of auto mode. This makes it easier to tune auto flight
|
||||||
|
_pos_control.set_accel_xy(_wp_accel_cms);
|
||||||
|
_pos_control.set_accel_z(_wp_accel_z_cms);
|
||||||
|
|
||||||
// sanity check dt
|
// sanity check dt
|
||||||
if (dt >= 0.2f) {
|
if (dt >= 0.2f) {
|
||||||
dt = 0.0f;
|
dt = 0.0f;
|
||||||
|
Loading…
Reference in New Issue
Block a user