From fae22b34b7212dd3b98a95b5affdb87beca5622c Mon Sep 17 00:00:00 2001 From: Iampete1 Date: Sat, 4 Sep 2021 20:21:25 +0100 Subject: [PATCH] Plane: mode_qstabilize: combine enter and init --- ArduPlane/mode_qstabilize.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/ArduPlane/mode_qstabilize.cpp b/ArduPlane/mode_qstabilize.cpp index 4cc3efe83b..dae092a015 100644 --- a/ArduPlane/mode_qstabilize.cpp +++ b/ArduPlane/mode_qstabilize.cpp @@ -2,18 +2,9 @@ #include "Plane.h" bool ModeQStabilize::_enter() -{ - if (!plane.quadplane.init_mode()) { - return false; - } - plane.auto_state.vtol_mode = true; - return true; -} - -// init quadplane stabilize mode -void ModeQStabilize::init() { quadplane.throttle_wait = false; + return true; } void ModeQStabilize::update()