From af5f386ef49b9a50f9452eacc8de267bb22fd479 Mon Sep 17 00:00:00 2001 From: Sebastian Domoszlai Date: Fri, 6 Dec 2024 12:03:51 +0100 Subject: [PATCH] Shorten messages to prevent clipping in QGroundControl --- .../commander/HealthAndArmingChecks/checks/airspeedCheck.cpp | 2 +- .../HealthAndArmingChecks/checks/distanceSensorChecks.cpp | 2 +- .../HealthAndArmingChecks/checks/failureDetectorCheck.cpp | 2 +- .../HealthAndArmingChecks/checks/rcAndDataLinkCheck.cpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/modules/commander/HealthAndArmingChecks/checks/airspeedCheck.cpp b/src/modules/commander/HealthAndArmingChecks/checks/airspeedCheck.cpp index a9af3ff0542d..7b9780a4d9fa 100644 --- a/src/modules/commander/HealthAndArmingChecks/checks/airspeedCheck.cpp +++ b/src/modules/commander/HealthAndArmingChecks/checks/airspeedCheck.cpp @@ -92,7 +92,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"); } } diff --git a/src/modules/commander/HealthAndArmingChecks/checks/distanceSensorChecks.cpp b/src/modules/commander/HealthAndArmingChecks/checks/distanceSensorChecks.cpp index fceb5e740b55..c74021d76b99 100644 --- a/src/modules/commander/HealthAndArmingChecks/checks/distanceSensorChecks.cpp +++ b/src/modules/commander/HealthAndArmingChecks/checks/distanceSensorChecks.cpp @@ -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); } } } diff --git a/src/modules/commander/HealthAndArmingChecks/checks/failureDetectorCheck.cpp b/src/modules/commander/HealthAndArmingChecks/checks/failureDetectorCheck.cpp index 6dbfcdffee1c..f299a18ed3c9 100644 --- a/src/modules/commander/HealthAndArmingChecks/checks/failureDetectorCheck.cpp +++ b/src/modules/commander/HealthAndArmingChecks/checks/failureDetectorCheck.cpp @@ -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: Failure caused by external system"); } } diff --git a/src/modules/commander/HealthAndArmingChecks/checks/rcAndDataLinkCheck.cpp b/src/modules/commander/HealthAndArmingChecks/checks/rcAndDataLinkCheck.cpp index 9f09c2a645e4..0a398a2c1f3a 100644 --- a/src/modules/commander/HealthAndArmingChecks/checks/rcAndDataLinkCheck.cpp +++ b/src/modules/commander/HealthAndArmingChecks/checks/rcAndDataLinkCheck.cpp @@ -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 {