Changed how the throttle_slew was added to the output.

git-svn-id: https://arducopter.googlecode.com/svn/trunk@2990 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
jasonshort 2011-08-01 03:48:16 +00:00
parent a0f61fd29e
commit cdfa3b07cb

View File

@ -132,7 +132,7 @@ static int
get_throttle(int throttle_input)
{
throttle_input = (float)throttle_input * angle_boost();
throttle_input += throttle_slew;
throttle_input = max(throttle_slew, throttle_input);
return max(throttle_input, 0);
}