HealthAndArmingChecks: add unit tests for Report

This commit is contained in:
Beat Küng
2020-12-02 16:47:10 +01:00
committed by Daniel Agar
parent 2507f0a143
commit f23363f88c
4 changed files with 303 additions and 3 deletions
@@ -177,7 +177,7 @@ bool Report::report(bool is_armed, bool force)
const hrt_abstime now = hrt_absolute_time();
const bool has_difference = _had_unreported_difference || _results[0] != _results[1];
if (now - _last_report < min_reporting_interval && !force) {
if (now - _last_report < _min_reporting_interval && !force) {
if (has_difference) {
_had_unreported_difference = true;
}