f6cb1b5ad6
Avoids the state getting stale, which it will with a failed attempt to go into qautotune, for example.
17 lines
217 B
C++
17 lines
217 B
C++
#include "mode.h"
|
|
#include "Plane.h"
|
|
|
|
bool ModeStabilize::_enter()
|
|
{
|
|
plane.auto_throttle_mode = false;
|
|
|
|
return true;
|
|
}
|
|
|
|
void ModeStabilize::update()
|
|
{
|
|
plane.nav_roll_cd = 0;
|
|
plane.nav_pitch_cd = 0;
|
|
}
|
|
|