Skip to content

Commit

Permalink
estimatorCheck: have low position warning as health component failure…
Browse files Browse the repository at this point in the history
… to fix reporting

Signed-off-by: Silvan Fuhrer <[email protected]>
  • Loading branch information
sfuhrer authored and dagar committed Nov 15, 2024
1 parent 3093c59 commit 08155d2
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -704,11 +704,12 @@ void EstimatorChecks::lowPositionAccuracy(const Context &context, Report &report
* This check can be configured via <param>COM_POS_LOW_EPH</param> and <param>COM_POS_LOW_ACT</param> parameters.
* </profile>
*/
events::send(events::ID("check_estimator_low_position_accuracy"), {events::Log::Error, events::LogInternal::Info},
"Local position estimate has low accuracy");
reporter.armingCheckFailure(NavModes::All, health_component_t::local_position_estimate,
events::ID("check_estimator_low_position_accuracy"),
events::Log::Error, "Position estimate has low accuracy");

if (reporter.mavlink_log_pub()) {
mavlink_log_warning(reporter.mavlink_log_pub(), "Local position estimate has low accuracy\t");
mavlink_log_warning(reporter.mavlink_log_pub(), "Position estimate has low accuracy\t");
}
}
}
Expand Down

0 comments on commit 08155d2

Please sign in to comment.