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:
bresch 2023-12-21 10:59:42 +01:00 committed by Mathieu Bresciani
parent 74549e29a5
commit c1b139dea1
2 changed files with 2 additions and 0 deletions

View File

@ -75,6 +75,7 @@ bool FwAutotuneAttitudeControl::init()
void FwAutotuneAttitudeControl::reset()
{
_param_fw_at_start.reset();
}
void FwAutotuneAttitudeControl::Run()

View File

@ -68,6 +68,7 @@ bool McAutotuneAttitudeControl::init()
void McAutotuneAttitudeControl::reset()
{
_param_mc_at_start.reset();
}
void McAutotuneAttitudeControl::Run()