mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-12-01 13:40:38 +08:00
fix(commander): clarify sensor startup diagnostics (#28620)
Use the arming-check events to explain initialization waits without misleading legacy preflight messages. Assisted-by: Codex Signed-off-by: Jacob Dahl <dahl.jakejacob@gmail.com>
This commit is contained in:
1 parent
3d154f5d45
commit
11ad677f8e
2 files changed
+1
-10
No files matched your search
@@ -115,10 +115,6 @@ void EstimatorChecks::checkAndReport(const Context &context, Report &reporter)
|
||||
reporter.armingCheckFailure(required_groups, health_component_t::local_position_estimate,
|
||||
events::ID("check_estimator_missing_data"),
|
||||
events::Log::Info, "Waiting for estimator to initialize");
|
||||
|
||||
if (reporter.mavlink_log_pub()) {
|
||||
mavlink_log_critical(reporter.mavlink_log_pub(), "Preflight Fail: ekf2 missing data");
|
||||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
@@ -148,12 +148,7 @@ void MagnetometerChecks::checkAndReport(const Context &context, Report &reporter
|
||||
*/
|
||||
reporter.armingCheckFailure<uint8_t, uint8_t>(NavModes::All, health_component_t::magnetometer,
|
||||
events::ID("check_mag_sys_has_mag_missing"),
|
||||
events::Log::Error, "Found {1} compass (required: {2})", num_enabled_and_valid_calibration, _param_sys_has_mag.get());
|
||||
|
||||
if (reporter.mavlink_log_pub()) {
|
||||
mavlink_log_critical(reporter.mavlink_log_pub(), "Preflight Fail: Found %i compass (required: %" PRId32 ")",
|
||||
num_enabled_and_valid_calibration, _param_sys_has_mag.get());
|
||||
}
|
||||
events::Log::Info, "Waiting for compass (found {1}, required: {2})", num_enabled_and_valid_calibration, _param_sys_has_mag.get());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user