Plane: mode_qacro: combine enter and init

This commit is contained in:
Iampete1 2021-09-04 20:20:12 +01:00 committed by Andrew Tridgell
parent 529a3a9122
commit 64aba43b56
1 changed files with 1 additions and 8 deletions

View File

@ -2,18 +2,11 @@
#include "Plane.h"
bool ModeQAcro::_enter()
{
return plane.mode_qstabilize._enter();
}
/*
init QACRO mode
*/
void ModeQAcro::init()
{
quadplane.throttle_wait = false;
quadplane.transition_state = QuadPlane::TRANSITION_DONE;
attitude_control->relax_attitude_controllers();
return true;
}
void ModeQAcro::update()