mirror of https://github.com/ArduPilot/ardupilot
25 lines
389 B
C++
25 lines
389 B
C++
#include "mode.h"
|
|
#include "Plane.h"
|
|
|
|
bool ModeAutoTune::_enter()
|
|
{
|
|
plane.throttle_allows_nudging = false;
|
|
plane.auto_throttle_mode = false;
|
|
plane.auto_navigation_mode = false;
|
|
plane.autotune_start();
|
|
|
|
return true;
|
|
}
|
|
|
|
void ModeAutoTune::_exit()
|
|
{
|
|
// restore last gains
|
|
plane.autotune_restore();
|
|
}
|
|
|
|
void ModeAutoTune::update()
|
|
{
|
|
plane.mode_fbwa.update();
|
|
}
|
|
|