Plane: only save gains if disarmed in autotune
This commit is contained in:
parent
a0d8c04f3e
commit
0b1d392342
@ -502,7 +502,11 @@ bool Plane::disarm_motors(void)
|
||||
|
||||
#if QAUTOTUNE_ENABLED
|
||||
//save qautotune gains if enabled and success
|
||||
if (control_mode == &mode_qautotune) {
|
||||
quadplane.qautotune.save_tuning_gains();
|
||||
} else {
|
||||
quadplane.qautotune.reset();
|
||||
}
|
||||
#endif
|
||||
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user