Skip to content

Commit aa09c15

Browse files
committed
AP_Tuning: FIX no double math
1 parent 2b73c0b commit aa09c15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/AP_Tuning/AP_Tuning.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ void AP_Tuning::check_input(uint8_t flightmode)
228228
need_revert |= (1U << current_parm_index);
229229
set_value(current_parm, new_value);
230230

231-
if ( fabs(new_value-old_value) > (0.05 * old_value) ) {
231+
if ( fabsf(new_value-old_value) > (0.05 * old_value) ) {
232232
old_value = new_value;
233233
GCS_SEND_TEXT(MAV_SEVERITY_INFO,
234234
"Tuning %s%s%0.4f",

0 commit comments

Comments
 (0)