mirror of https://github.com/ArduPilot/ardupilot
Better throttle boost value
This commit is contained in:
parent
f8ac191402
commit
bdf6471587
|
@ -220,6 +220,6 @@ static int get_angle_boost()
|
|||
{
|
||||
float temp = cos_pitch_x * cos_roll_x;
|
||||
temp = 1.0 - constrain(temp, .5, 1.0);
|
||||
return (int)(temp * 60.0);
|
||||
return (int)(temp * g.throttle_cruise);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue