1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-20 23:05:19 +03:00

Remove filter unnecessery code // Simplify selection

This commit is contained in:
borisbstyle 2015-12-10 20:24:57 +01:00
parent e490564815
commit 6f4d741cd0
5 changed files with 11 additions and 19 deletions

View file

@ -39,7 +39,7 @@ int16_t gyroZero[FLIGHT_DYNAMICS_INDEX_COUNT] = { 0, 0, 0 };
static gyroConfig_t *gyroConfig;
static int8_t * gyroFIRTable = 0L;
static int16_t gyroFIRState[3][9];
static int16_t gyroFIRState[3][7];
gyro_t gyro; // gyro access functions
sensor_align_e gyroAlign = 0;
@ -126,7 +126,7 @@ void gyroUpdate(void)
}
if (gyroFIRTable) {
filterApply9TapFIR(gyroADC, gyroFIRState, gyroFIRTable);
filterApplyFIR(gyroADC, gyroFIRState, gyroFIRTable);
}
alignSensors(gyroADC, gyroADC, gyroAlign);