From f1b6a7d58650015afcd7981ce321691d6226fba8 Mon Sep 17 00:00:00 2001 From: Michael du Breuil Date: Sat, 28 Oct 2023 13:51:03 -0700 Subject: [PATCH] APM_Control: Allow autotune level 0 to actually reach the lowest entries of the autotune level table --- libraries/APM_Control/AP_AutoTune.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/APM_Control/AP_AutoTune.cpp b/libraries/APM_Control/AP_AutoTune.cpp index 0cc30e59cb626..14b14b618fb27 100644 --- a/libraries/APM_Control/AP_AutoTune.cpp +++ b/libraries/APM_Control/AP_AutoTune.cpp @@ -556,7 +556,7 @@ void AP_AutoTune::update_rmax(void) if (level == 0) { // this level means to keep current values of RMAX and TCONST - target_rmax = constrain_float(current.rmax_pos, 75, 720); + target_rmax = constrain_float(current.rmax_pos, 20, 720); target_tau = constrain_float(current.tau, 0.1, 2); } else { target_rmax = tuning_table[level-1].rmax;