From d65819bf03586e0da6a9a76514f2e959a5edf7f0 Mon Sep 17 00:00:00 2001 From: Bill Geyer Date: Fri, 17 Jun 2022 23:21:39 -0400 Subject: [PATCH] AC_AutoTune: fix tradheli bug with load gain set --- libraries/AC_AutoTune/AC_AutoTune_Heli.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AC_AutoTune/AC_AutoTune_Heli.cpp b/libraries/AC_AutoTune/AC_AutoTune_Heli.cpp index 6020e96a61..39f7a737ee 100644 --- a/libraries/AC_AutoTune/AC_AutoTune_Heli.cpp +++ b/libraries/AC_AutoTune/AC_AutoTune_Heli.cpp @@ -519,7 +519,7 @@ void AC_AutoTune_Heli::load_test_gains() // load gains void AC_AutoTune_Heli::load_gain_set(AxisType s_axis, float rate_p, float rate_i, float rate_d, float rate_ff, float angle_p, float max_accel, float rate_fltt, float rate_flte, float smax) { - switch (axis) { + switch (s_axis) { case ROLL: attitude_control->get_rate_roll_pid().kP(rate_p); attitude_control->get_rate_roll_pid().kI(rate_i);