mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-15 06:20:36 +08:00
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:
@@ -120,3 +120,8 @@ void HealthAndArmingChecks::updateParams()
|
||||
_checks[i]->updateParams();
|
||||
}
|
||||
}
|
||||
|
||||
bool HealthAndArmingChecks::reportIfUnreportedDifferences()
|
||||
{
|
||||
return _reporter.reportIfUnreportedDifferences(_context.isArmed());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user