Browse Source

APM_Control: tidy includes

apm_2208
Peter Barker 3 years ago committed by Andrew Tridgell
parent
commit
73c6eabde2
  1. 1
      libraries/APM_Control/AP_AutoTune.cpp
  2. 11
      libraries/APM_Control/AP_AutoTune.h

1
libraries/APM_Control/AP_AutoTune.cpp

@ -25,6 +25,7 @@ @@ -25,6 +25,7 @@
#include <AP_HAL/AP_HAL.h>
#include <AP_Logger/AP_Logger.h>
#include <AP_Math/AP_Math.h>
#include <AC_PID/AC_PID.h>
extern const AP_HAL::HAL& hal;

11
libraries/APM_Control/AP_AutoTune.h

@ -1,10 +1,9 @@ @@ -1,10 +1,9 @@
#pragma once
#include <AP_HAL/AP_HAL.h>
#include <AP_Logger/LogStructure.h>
#include <AP_Param/AP_Param.h>
#include <Filter/SlewLimiter.h>
#include <AP_Vehicle/AP_Vehicle.h>
#include <AC_PID/AC_PID.h>
#include <Filter/ModeFilter.h>
class AP_AutoTune
@ -44,7 +43,7 @@ public: @@ -44,7 +43,7 @@ public:
// 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
void start(void);
@ -55,7 +54,7 @@ public: @@ -55,7 +54,7 @@ public:
// update called whenever autotune mode is active. This is
// 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?
bool running;
@ -63,7 +62,7 @@ public: @@ -63,7 +62,7 @@ public:
private:
// the current gains
ATGains &current;
AC_PID &rpid;
class AC_PID &rpid;
// what type of autotune is this
ATType type;

Loading…
Cancel
Save