You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#include "mode.h"
|
|
|
|
#include "Plane.h"
|
|
|
|
|
|
|
|
#include "qautotune.h"
|
|
|
|
|
|
|
|
#if QAUTOTUNE_ENABLED
|
|
|
|
|
|
|
|
bool ModeQAutotune::_enter()
|
|
|
|
{
|
|
|
|
#if QAUTOTUNE_ENABLED
|
|
|
|
return quadplane.qautotune.init();
|
|
|
|
#else
|
|
|
|
return false;
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
void ModeQAutotune::update()
|
|
|
|
{
|
|
|
|
plane.mode_qstabilize.update();
|
|
|
|
}
|
|
|
|
|
|
|
|
void ModeQAutotune::run()
|
|
|
|
{
|
|
|
|
#if QAUTOTUNE_ENABLED
|
|
|
|
quadplane.qautotune.run();
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
void ModeQAutotune::_exit()
|
|
|
|
{
|
|
|
|
#if QAUTOTUNE_ENABLED
|
|
|
|
plane.quadplane.qautotune.stop();
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|