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:
parent
9f2de6f46c
commit
2ee55ece3c
5 changed files with 59 additions and 93 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue