From e6bc44f47147d47c0c1d4ec668cf7152bd808927 Mon Sep 17 00:00:00 2001 From: Michael du Breuil Date: Sun, 30 Dec 2018 15:46:14 -0700 Subject: [PATCH] Plane: Fix cases where quadplane level transition was not applied --- ArduPlane/Attitude.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ArduPlane/Attitude.cpp b/ArduPlane/Attitude.cpp index 025d1fd41b..cc66a13554 100644 --- a/ArduPlane/Attitude.cpp +++ b/ArduPlane/Attitude.cpp @@ -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) {