From aa09c1525c145dafeafebb4a091a1a60434d0c0c Mon Sep 17 00:00:00 2001 From: Yury MonZon Date: Mon, 9 Dec 2024 21:41:20 +0100 Subject: [PATCH] AP_Tuning: FIX no double math --- libraries/AP_Tuning/AP_Tuning.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Tuning/AP_Tuning.cpp b/libraries/AP_Tuning/AP_Tuning.cpp index 2b8ad9599a525d..87bbf15a13e8c7 100644 --- a/libraries/AP_Tuning/AP_Tuning.cpp +++ b/libraries/AP_Tuning/AP_Tuning.cpp @@ -228,7 +228,7 @@ void AP_Tuning::check_input(uint8_t flightmode) need_revert |= (1U << current_parm_index); set_value(current_parm, new_value); - if ( fabs(new_value-old_value) > (0.05 * old_value) ) { + if ( fabsf(new_value-old_value) > (0.05 * old_value) ) { old_value = new_value; GCS_SEND_TEXT(MAV_SEVERITY_INFO, "Tuning %s%s%0.4f",