APM_Control: fixed restore of tconst on autotune abort

This commit is contained in:
Andrew Tridgell 2021-04-03 10:19:54 +11:00
parent 8f249d5ece
commit 20ef242280
1 changed files with 1 additions and 0 deletions

View File

@ -143,6 +143,7 @@ void AP_AutoTune::stop(void)
if (running) {
running = false;
save_gains(restore);
current = restore;
rpid.set_slew_limit_scale(45);
}
}