mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-27 19:18:28 -04:00
Sub: explicitly type constant
This makes clang happier
This commit is contained in:
parent
1ce80e1f17
commit
285fe4c79c
@ -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…
Reference in New Issue
Block a user