Browse Source

Sub: explicitly type constant

This makes clang happier
master
Peter Barker 6 years ago committed by Peter Barker
parent
commit
285fe4c79c
  1. 2
      ArduSub/control_althold.cpp

2
ArduSub/control_althold.cpp

@ -95,7 +95,7 @@ void Sub::althold_run() @@ -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

Loading…
Cancel
Save