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