Shorten messages to prevent clipping in QGroundControl (#24080)

* Shorten messages to prevent clipping in QGroundControl

* Update src/modules/commander/HealthAndArmingChecks/checks/failureDetectorCheck.cpp

---------

Co-authored-by: Jacob Dahl <37091262+dakejahl@users.noreply.github.com>
This commit is contained in:
Sebastian Domoszlai
2025-07-23 09:07:18 +02:00
committed by GitHub
parent 3c6e927359
commit 4e3d090d1a
4 changed files with 4 additions and 4 deletions
@@ -98,7 +98,7 @@ void AirspeedChecks::checkAndReport(const Context &context, Report &reporter)
events::Log::Error, "Airspeed too high", airspeed_validated.calibrated_airspeed_m_s, arming_max_airspeed_allowed);
if (reporter.mavlink_log_pub()) {
mavlink_log_critical(reporter.mavlink_log_pub(), "Preflight Fail: Airspeed too high - check airspeed calibration");
mavlink_log_critical(reporter.mavlink_log_pub(), "Preflight Fail: Airspeed too high");
}
}
@@ -77,7 +77,7 @@ void DistanceSensorChecks::checkAndReport(const Context &context, Report &report
events::Log::Error, "No valid data from distance sensor {1}", instance);
if (reporter.mavlink_log_pub()) {
mavlink_log_critical(reporter.mavlink_log_pub(), "Preflight Fail: no valid data from distance sensor %u", instance);
mavlink_log_critical(reporter.mavlink_log_pub(), "Preflight Fail: No valid distance sensor %u data", instance);
}
}
}
@@ -90,7 +90,7 @@ void FailureDetectorChecks::checkAndReport(const Context &context, Report &repor
events::Log::Critical, "Failure triggered by external system");
if (reporter.mavlink_log_pub()) {
mavlink_log_critical(reporter.mavlink_log_pub(), "Preflight Fail: Failure triggered by external system");
mavlink_log_critical(reporter.mavlink_log_pub(), "Preflight Fail: triggered by external system");
}
}
@@ -95,7 +95,7 @@ void RcAndDataLinkChecks::checkAndReport(const Context &context, Report &reporte
log_level, "No connection to the ground control station");
if (gcs_connection_required && reporter.mavlink_log_pub()) {
mavlink_log_warning(reporter.mavlink_log_pub(), "Preflight Fail: No connection to the ground control station\t");
mavlink_log_warning(reporter.mavlink_log_pub(), "Preflight Fail: No connection to the GCS");
}
} else {