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

D filter rewrite to FIR

This commit is contained in:
borisbstyle 2016-01-10 02:55:21 +01:00
parent 9f2de6f46c
commit 2ee55ece3c
5 changed files with 59 additions and 93 deletions

View file

@ -127,7 +127,8 @@ void gyroUpdate(void)
}
if (gyroFIRTable) {
filterApplyFIR(gyroADC, gyroFIRState, gyroFIRTable);
int axis;
for (axis = 0; axis < XYZ_AXIS_COUNT; axis++) filterApplyFIR(&gyroADC[axis], gyroFIRState[axis], gyroFIRTable);
}
alignSensors(gyroADC, gyroADC, gyroAlign);