From a885f86ce747ceeb77ed6e2f858f567e532bfeab Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 14 Jan 2019 09:15:09 +1100 Subject: [PATCH] AC_AutoTune: fixed testing of gains with aux switch this fixes the use of an aux switch for autotune to test gains before disarm. Many thanks to Mark Whitehorn for noticing this regression --- libraries/AC_AutoTune/AC_AutoTune.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/libraries/AC_AutoTune/AC_AutoTune.cpp b/libraries/AC_AutoTune/AC_AutoTune.cpp index afd381c7ed..c1da310678 100644 --- a/libraries/AC_AutoTune/AC_AutoTune.cpp +++ b/libraries/AC_AutoTune/AC_AutoTune.cpp @@ -190,8 +190,6 @@ bool AC_AutoTune::init_internals(bool _use_poshold, // stop - should be called when the ch7/ch8 switch is switched OFF void AC_AutoTune::stop() { - axes_completed = 0; - // set gains to their original values load_gains(GAIN_ORIGINAL);