Skip to content

Commit

Permalink
EstimatorCheck: GNSS data fusion stopped as INFO if local position is…
Browse files Browse the repository at this point in the history
… already invalid

Helps to reduce spamming of less important warnings.

Signed-off-by: Silvan Fuhrer <[email protected]>
  • Loading branch information
sfuhrer authored and bkueng committed Mar 15, 2024
1 parent 6d82734 commit d330d47
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,9 @@ void EstimatorChecks::checkEstimatorStatus(const Context &context, Report &repor
mavlink_log_warning(reporter.mavlink_log_pub(), "GNSS data fusion stopped\t");
}

events::send(events::ID("check_estimator_gnss_fusion_stopped"), {events::Log::Error, events::LogInternal::Info},
// only report this failure as critical if not already in a local position invalid state
events::Log log_level = reporter.failsafeFlags().local_position_invalid ? events::Log::Info : events::Log::Error;
events::send(events::ID("check_estimator_gnss_fusion_stopped"), {log_level, events::LogInternal::Info},
"GNSS data fusion stopped");

} else if (!_gps_was_fused && ekf_gps_fusion) {
Expand Down

0 comments on commit d330d47

Please sign in to comment.