mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-27 16:54:15 +01:00
uncrustification
This commit is contained in:
parent
4cc453efb1
commit
91d5a865da
@ -650,8 +650,7 @@ static void stabilizationTask(__attribute__((unused)) void *parameters)
|
||||
}
|
||||
|
||||
// also don't adjust throttle if <= 0, leaves neg alone and zero throttle stops motors
|
||||
if (actuatorDesired.Throttle > cruise_control_min_throttle)
|
||||
{
|
||||
if (actuatorDesired.Throttle > cruise_control_min_throttle) {
|
||||
// quad example factor of 2 at hover power of 40%: (0.4 - 0.0) * 2.0 + 0.0 = 0.8
|
||||
// CP heli example factor of 2 at hover stick of 60%: (0.6 - 0.5) * 2.0 + 0.5 = 0.7
|
||||
actuatorDesired.Throttle = (actuatorDesired.Throttle - cruise_control_neutral_thrust) * factor + cruise_control_neutral_thrust;
|
||||
|
Loading…
x
Reference in New Issue
Block a user