Plane: mode_qstabilize: combine enter and init

This commit is contained in:
Iampete1 2021-09-04 20:21:25 +01:00 committed by Andrew Tridgell
parent 63be15e018
commit fae22b34b7
1 changed files with 1 additions and 10 deletions

View File

@ -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()