mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-03 16:48:52 +08:00
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:
committed by
Mathieu Bresciani
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()
|
||||
|
||||
Reference in New Issue
Block a user