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
This commit is contained in:
Andrew Tridgell 2019-01-14 09:15:09 +11:00
parent f35cebcca4
commit a885f86ce7

View File

@ -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);