forked from Archive/PX4-Autopilot
atune: reset param on start
This prevents a race condition where autotune cannot start because the param was already set to 1
This commit is contained in:
parent
74549e29a5
commit
c1b139dea1
|
@ -75,6 +75,7 @@ bool FwAutotuneAttitudeControl::init()
|
|||
|
||||
void FwAutotuneAttitudeControl::reset()
|
||||
{
|
||||
_param_fw_at_start.reset();
|
||||
}
|
||||
|
||||
void FwAutotuneAttitudeControl::Run()
|
||||
|
|
|
@ -68,6 +68,7 @@ bool McAutotuneAttitudeControl::init()
|
|||
|
||||
void McAutotuneAttitudeControl::reset()
|
||||
{
|
||||
_param_mc_at_start.reset();
|
||||
}
|
||||
|
||||
void McAutotuneAttitudeControl::Run()
|
||||
|
|
Loading…
Reference in New Issue