Ardupilot2/ArduPlane/mode_stabilize.cpp
Peter Barker f6cb1b5ad6 Plane: use a method on Mode for auto-navigation-mode
Avoids the state getting stale, which it will with a failed attempt to
go into qautotune, for example.
2021-01-10 16:04:30 +11:00

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;
}