From 285fe4c79c31d2401ab01665f49cde944e199846 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Mon, 18 Feb 2019 13:05:36 +1100 Subject: [PATCH] Sub: explicitly type constant This makes clang happier --- ArduSub/control_althold.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduSub/control_althold.cpp b/ArduSub/control_althold.cpp index 15f4b9eb4e..4034e9d423 100644 --- a/ArduSub/control_althold.cpp +++ b/ArduSub/control_althold.cpp @@ -95,7 +95,7 @@ void Sub::althold_run() } } - if (fabsf(channel_throttle->norm_input()-0.5) > 0.05) { // Throttle input above 5% + if (fabsf(channel_throttle->norm_input()-0.5f) > 0.05f) { // Throttle input above 5% // output pilot's throttle attitude_control.set_throttle_out(channel_throttle->norm_input(), false, g.throttle_filt); // reset z targets to current values