commander: ensure health report is always sent out before failsafe notificaation

As the failsafe message can reference the health report, the health report
needs to be sent out first. This is generally the case, except there is a
rate limiter set to 2 seconds. So if the report changes quickly, it is
sent out delayed (potentially after the failsafe report).
This commit is contained in:
Beat Küng
2024-11-19 11:37:35 +01:00
committed by Matthias Grob
parent 044d13635d
commit be300b767d
8 changed files with 58 additions and 0 deletions
@@ -120,3 +120,8 @@ void HealthAndArmingChecks::updateParams()
_checks[i]->updateParams();
}
}
bool HealthAndArmingChecks::reportIfUnreportedDifferences()
{
return _reporter.reportIfUnreportedDifferences(_context.isArmed());
}