diff --git a/src/main/sensors/gyro.h b/src/main/sensors/gyro.h index 8b711cfa4..7e27b0aff 100644 --- a/src/main/sensors/gyro.h +++ b/src/main/sensors/gyro.h @@ -21,11 +21,19 @@ #pragma once #include "common/axis.h" +#include "common/filter.h" #include "common/time.h" -#include "pg/pg.h" + #include "drivers/bus.h" #include "drivers/sensor.h" +#include "pg/pg.h" + +typedef union gyroDynamicFilter_u { + pt1Filter_t pt1FilterState; + biquadFilter_t biquadFilterState; +} gyroDynamicFilter_t; + typedef enum { GYRO_NONE = 0, GYRO_DEFAULT, diff --git a/src/main/sensors/gyroanalyse.h b/src/main/sensors/gyroanalyse.h index 4a8de2643..b599dd218 100644 --- a/src/main/sensors/gyroanalyse.h +++ b/src/main/sensors/gyroanalyse.h @@ -22,17 +22,13 @@ #include "arm_math.h" -#include "common/time.h" #include "common/filter.h" +#include "sensors/gyro.h" + // max for F3 targets #define FFT_WINDOW_SIZE 32 -typedef union gyroDynamicFilter_u { - pt1Filter_t pt1FilterState; - biquadFilter_t biquadFilterState; -} gyroDynamicFilter_t; - typedef struct gyroAnalyseState_s { // accumulator for oversampled data => no aliasing and less noise uint8_t sampleCount;