mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-06 04:41:36 +08:00
estimatorCheck: have low position warning as health component failure to fix reporting
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
committed by
Daniel Agar
parent
3093c593a5
commit
08155d20f8
@@ -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.
|
* This check can be configured via <param>COM_POS_LOW_EPH</param> and <param>COM_POS_LOW_ACT</param> parameters.
|
||||||
* </profile>
|
* </profile>
|
||||||
*/
|
*/
|
||||||
events::send(events::ID("check_estimator_low_position_accuracy"), {events::Log::Error, events::LogInternal::Info},
|
reporter.armingCheckFailure(NavModes::All, health_component_t::local_position_estimate,
|
||||||
"Local position estimate has low accuracy");
|
events::ID("check_estimator_low_position_accuracy"),
|
||||||
|
events::Log::Error, "Position estimate has low accuracy");
|
||||||
|
|
||||||
if (reporter.mavlink_log_pub()) {
|
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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user