ardupilot/ArduPlane/qautotune.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
722 B
C
Raw Normal View History

/*
support for autotune of quadplanes
*/
#pragma once
2022-02-28 21:19:23 -04:00
#include <AP_HAL/AP_HAL_Boards.h>
#include "quadplane.h"
2022-11-19 19:56:42 -04:00
#ifndef QAUTOTUNE_ENABLED
#define QAUTOTUNE_ENABLED (HAL_QUADPLANE_ENABLED && CONFIG_HAL_BOARD == HAL_BOARD_SITL)
2022-11-19 19:56:42 -04:00
#endif
#if QAUTOTUNE_ENABLED
#include <AC_AutoTune/AC_AutoTune_Multi.h>
class QAutoTune : public AC_AutoTune_Multi
{
public:
friend class QuadPlane;
bool init() override;
protected:
float get_pilot_desired_climb_rate_cms(void) const override;
void get_pilot_desired_rp_yrate_cd(float &roll_cd, float &pitch_cd, float &yaw_rate_cds) override;
void init_z_limits() override;
#if HAL_LOGGING_ENABLED
void log_pids() override;
#endif
};
#endif // QAUTOTUNE_ENABLED