From d1dda86f60060bc752ae4bb6521b2794a65959f0 Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Mon, 1 Feb 2021 11:14:01 +0900 Subject: [PATCH] AC_AutoTune: report step in lower case also shortens displayed accuracy to 0.1deg and removes one pair of brackets we should use lower case for reporting because it is easier to read and it takes up less space when displayed on MP's HUD (and probably other GCSs too) --- libraries/AC_AutoTune/AC_AutoTune.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libraries/AC_AutoTune/AC_AutoTune.cpp b/libraries/AC_AutoTune/AC_AutoTune.cpp index 30e0bf3d95..076065450f 100644 --- a/libraries/AC_AutoTune/AC_AutoTune.cpp +++ b/libraries/AC_AutoTune/AC_AutoTune.cpp @@ -258,13 +258,13 @@ void AC_AutoTune::send_step_string() } switch (step) { case WAITING_FOR_LEVEL: - gcs().send_text(MAV_SEVERITY_INFO, "AutoTune: WFL (%s) (%f > %f)", level_issue_string(), (double)(level_problem.current*0.01f), (double)(level_problem.maximum*0.01f)); + gcs().send_text(MAV_SEVERITY_INFO, "AutoTune: Leveling (%s %4.1f > %4.1f)", level_issue_string(), (double)(level_problem.current*0.01f), (double)(level_problem.maximum*0.01f)); return; case UPDATE_GAINS: - gcs().send_text(MAV_SEVERITY_INFO, "AutoTune: UPDATING_GAINS"); + gcs().send_text(MAV_SEVERITY_INFO, "AutoTune: Updating Gains"); return; case TWITCHING: - gcs().send_text(MAV_SEVERITY_INFO, "AutoTune: TWITCHING"); + gcs().send_text(MAV_SEVERITY_INFO, "AutoTune: Twitching"); return; } gcs().send_text(MAV_SEVERITY_INFO, "AutoTune: unknown step"); @@ -397,7 +397,7 @@ void AC_AutoTune::run() } if (pilot_override) { if (now - last_pilot_override_warning > 1000) { - gcs().send_text(MAV_SEVERITY_INFO, "AUTOTUNE: pilot overrides active"); + gcs().send_text(MAV_SEVERITY_INFO, "AutoTune: pilot overrides active"); last_pilot_override_warning = now; } }