Plane: suppress the throttle in auto-throttle modes after parachute release

This commit is contained in:
Andrew Tridgell 2015-10-27 10:36:25 +11:00
parent 9affddcaa3
commit d20b86b95e
1 changed files with 6 additions and 0 deletions

View File

@ -558,6 +558,12 @@ void Plane::flap_slew_limit(int8_t &last_value, int8_t &new_value)
*/
bool Plane::suppress_throttle(void)
{
if (auto_throttle_mode && parachute.released()) {
// throttle always suppressed in auto-throttle modes after parachute release
throttle_suppressed = true;
return true;
}
if (!throttle_suppressed) {
// we've previously met a condition for unsupressing the throttle
return false;