ArduSub: get MAV_STATE_BOOT on reboot
[ardupilot.git] / ArduPlane / qautotune.h
blob938c8e47e433237372721e6d2f42ebed45d3d8ac
1 /*
2 support for autotune of quadplanes
3 */
5 #pragma once
7 #include <AP_HAL/AP_HAL_Boards.h>
9 #include "quadplane.h"
10 #ifndef QAUTOTUNE_ENABLED
11 #define QAUTOTUNE_ENABLED HAL_QUADPLANE_ENABLED
12 #endif
14 #if QAUTOTUNE_ENABLED
16 #include <AC_AutoTune/AC_AutoTune_Multi.h>
18 class QAutoTune : public AC_AutoTune_Multi
20 public:
21 friend class QuadPlane;
23 bool init() override;
25 protected:
26 float get_pilot_desired_climb_rate_cms(void) const override;
27 void get_pilot_desired_rp_yrate_cd(float &roll_cd, float &pitch_cd, float &yaw_rate_cds) override;
28 void init_z_limits() override;
29 #if HAL_LOGGING_ENABLED
30 void log_pids() override;
31 #endif
34 #endif // QAUTOTUNE_ENABLED