Skip to content

Commit

Permalink
AP_Tuning: FIX no double math
Browse files Browse the repository at this point in the history
  • Loading branch information
Yury-MonZon committed Dec 9, 2024
1 parent 2b73c0b commit aa09c15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/AP_Tuning/AP_Tuning.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit aa09c15

Please sign in to comment.