From a477bf609e001f527e252892d719e4844cc25876 Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Mon, 9 Oct 2023 09:21:31 +0900 Subject: [PATCH] AP_Winch: pos control user output fix --- libraries/AP_Winch/AP_Winch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Winch/AP_Winch.cpp b/libraries/AP_Winch/AP_Winch.cpp index 5a5a7bc9b9074..4a3a41db4021e 100644 --- a/libraries/AP_Winch/AP_Winch.cpp +++ b/libraries/AP_Winch/AP_Winch.cpp @@ -110,7 +110,7 @@ void AP_Winch::release_length(float length) // display verbose output to user if (backend->option_enabled(Options::VerboseOutput)) { - GCS_SEND_TEXT(MAV_SEVERITY_INFO, "Winch: lowering %4.1fm to %4.1fm", (double)length, (double)config.length_desired); + GCS_SEND_TEXT(MAV_SEVERITY_INFO, "Winch: %s %4.1fm to %4.1fm", is_negative(length) ? "raising" : "lowering", (double)fabsf(length), (double)config.length_desired); } }