Fixed throttle_boost
This commit is contained in:
parent
6f359126fe
commit
0540331426
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user