Fixed throttle_boost

This commit is contained in:
Jason Short 2011-09-23 15:34:18 -07:00
parent 6f359126fe
commit 0540331426

View File

@ -219,7 +219,7 @@ static int alt_hold_velocity()
static int get_angle_boost()
{
float temp = cos_pitch_x * cos_roll_x;
temp = 2.0 - constrain(temp, .5, 1.0);
return (int)(temp * 50.0);
temp = 1.0 - constrain(temp, .5, 1.0);
return (int)(temp * 60.0);
}