Plane: Fix cases where quadplane level transition was not applied

This commit is contained in:
Michael du Breuil 2018-12-30 15:46:14 -07:00 committed by Andrew Tridgell
parent ed3194d095
commit e6bc44f471

View File

@ -618,11 +618,10 @@ void Plane::update_load_factor(void)
if (quadplane.in_transition() &&
(quadplane.options & QuadPlane::OPTION_LEVEL_TRANSITION)) {
/*
the user has asked for transitions to be kept level to
within LEVEL_ROLL_LIMIT
*/
// the user wants transitions to be kept level to within LEVEL_ROLL_LIMIT
roll_limit_cd = MIN(roll_limit_cd, g.level_roll_limit*100);
nav_roll_cd = constrain_int32(nav_roll_cd, -roll_limit_cd, roll_limit_cd);
return;
}
if (!aparm.stall_prevention) {