diff --git a/ArduPlane/mode_qautotune.cpp b/ArduPlane/mode_qautotune.cpp index 475fcea77d..2372f39b98 100644 --- a/ArduPlane/mode_qautotune.cpp +++ b/ArduPlane/mode_qautotune.cpp @@ -11,6 +11,13 @@ void ModeQAutotune::update() plane.mode_qstabilize.update(); } +void ModeQAutotune::run() +{ +#if QAUTOTUNE_ENABLED + quadplane.qautotune.run(); +#endif +} + void ModeQAutotune::_exit() { #if QAUTOTUNE_ENABLED diff --git a/ArduPlane/quadplane.cpp b/ArduPlane/quadplane.cpp index 2689b60647..d7baae0392 100644 --- a/ArduPlane/quadplane.cpp +++ b/ArduPlane/quadplane.cpp @@ -2250,13 +2250,6 @@ void ModeQLand::run() plane.mode_qloiter.run(); } -void ModeQAutotune::run() -{ -#if QAUTOTUNE_ENABLED - quadplane.qautotune.run(); -#endif -} - /* enter a quadplane mode */