Sub: explicitly type constant

This makes clang happier
This commit is contained in:
Peter Barker 2019-02-18 13:05:36 +11:00 committed by Peter Barker
parent 1ce80e1f17
commit 285fe4c79c
1 changed files with 1 additions and 1 deletions

View File

@ -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