Fixed tests / SITL build.

This commit is contained in:
mikeller 2018-08-16 23:01:43 +12:00 committed by ctzsnooze
parent 2bc6f92c1b
commit 9cd5bcd7a3
2 changed files with 11 additions and 7 deletions

View File

@ -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,

View File

@ -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;