mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
APM_Control: tidy includes
This commit is contained in:
parent
6f2fd9c4a4
commit
73c6eabde2
@ -25,6 +25,7 @@
|
|||||||
#include <AP_HAL/AP_HAL.h>
|
#include <AP_HAL/AP_HAL.h>
|
||||||
#include <AP_Logger/AP_Logger.h>
|
#include <AP_Logger/AP_Logger.h>
|
||||||
#include <AP_Math/AP_Math.h>
|
#include <AP_Math/AP_Math.h>
|
||||||
|
#include <AC_PID/AC_PID.h>
|
||||||
|
|
||||||
extern const AP_HAL::HAL& hal;
|
extern const AP_HAL::HAL& hal;
|
||||||
|
|
||||||
|
@ -1,10 +1,9 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <AP_HAL/AP_HAL.h>
|
|
||||||
#include <AP_Logger/LogStructure.h>
|
#include <AP_Logger/LogStructure.h>
|
||||||
#include <AP_Param/AP_Param.h>
|
|
||||||
|
#include <Filter/SlewLimiter.h>
|
||||||
#include <AP_Vehicle/AP_Vehicle.h>
|
#include <AP_Vehicle/AP_Vehicle.h>
|
||||||
#include <AC_PID/AC_PID.h>
|
|
||||||
#include <Filter/ModeFilter.h>
|
#include <Filter/ModeFilter.h>
|
||||||
|
|
||||||
class AP_AutoTune
|
class AP_AutoTune
|
||||||
@ -44,7 +43,7 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
// constructor
|
// constructor
|
||||||
AP_AutoTune(ATGains &_gains, ATType type, const AP_Vehicle::FixedWing &parms, AC_PID &rpid);
|
AP_AutoTune(ATGains &_gains, ATType type, const AP_Vehicle::FixedWing &parms, class AC_PID &rpid);
|
||||||
|
|
||||||
// called when autotune mode is entered
|
// called when autotune mode is entered
|
||||||
void start(void);
|
void start(void);
|
||||||
@ -55,7 +54,7 @@ public:
|
|||||||
|
|
||||||
// update called whenever autotune mode is active. This is
|
// update called whenever autotune mode is active. This is
|
||||||
// called at the main loop rate
|
// called at the main loop rate
|
||||||
void update(AP_PIDInfo &pid_info, float scaler, float angle_err_deg);
|
void update(struct AP_PIDInfo &pid_info, float scaler, float angle_err_deg);
|
||||||
|
|
||||||
// are we running?
|
// are we running?
|
||||||
bool running;
|
bool running;
|
||||||
@ -63,7 +62,7 @@ public:
|
|||||||
private:
|
private:
|
||||||
// the current gains
|
// the current gains
|
||||||
ATGains ¤t;
|
ATGains ¤t;
|
||||||
AC_PID &rpid;
|
class AC_PID &rpid;
|
||||||
|
|
||||||
// what type of autotune is this
|
// what type of autotune is this
|
||||||
ATType type;
|
ATType type;
|
||||||
|
Loading…
Reference in New Issue
Block a user