Plane: Resore old default behaviour for throttle curves

The change in this made QStabilize behave very differently then it had,
which is quite shocking in a test flight.
This commit is contained in:
Michael du Breuil 2019-10-02 18:14:34 -07:00 committed by Andrew Tridgell
parent cb054e714b
commit f9580424f6

View File

@ -982,12 +982,16 @@ float QuadPlane::get_pilot_throttle()
// normalize to [0,1]
throttle_in /= plane.channel_throttle->get_range();
if (is_positive(throttle_expo)) {
// get hover throttle level [0,1]
float thr_mid = motors->get_throttle_hover();
float thrust_curve_expo = constrain_float(throttle_expo, 0.0f, 1.0f);
// this puts mid stick at hover throttle
return throttle_curve(thr_mid, thrust_curve_expo, throttle_in);;
} else {
return throttle_in;
}
}
/*