mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-06 16:03:58 -04:00
APM_Control: allow for multiple stop calls in autotune
This commit is contained in:
parent
9bd8e215b2
commit
5e80f0cf72
@ -150,8 +150,10 @@ void AP_AutoTune::start(void)
|
|||||||
*/
|
*/
|
||||||
void AP_AutoTune::stop(void)
|
void AP_AutoTune::stop(void)
|
||||||
{
|
{
|
||||||
|
if (running) {
|
||||||
running = false;
|
running = false;
|
||||||
save_gains(restore);
|
save_gains(restore);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user