2019-01-15 13:46:13 -04:00
|
|
|
#include "mode.h"
|
|
|
|
#include "Plane.h"
|
|
|
|
|
|
|
|
bool ModeAutoTune::_enter()
|
|
|
|
{
|
|
|
|
plane.autotune_start();
|
|
|
|
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void ModeAutoTune::update()
|
|
|
|
{
|
|
|
|
plane.mode_fbwa.update();
|
|
|
|
}
|
|
|
|
|
2024-01-31 11:16:30 -04:00
|
|
|
void ModeAutoTune::run()
|
|
|
|
{
|
|
|
|
// Run base class function and then output throttle
|
|
|
|
Mode::run();
|
|
|
|
|
|
|
|
output_pilot_throttle();
|
|
|
|
}
|