mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 21:35:44 +03:00
* review #4986 v1 * jfliper requested changes * correction
This commit is contained in:
parent
b286c061e6
commit
c2898a4fd9
5 changed files with 7 additions and 7 deletions
|
@ -503,7 +503,7 @@ void accUpdate(timeUs_t currentTimeUs, rollAndPitchTrims_t *rollAndPitchTrims)
|
|||
|
||||
if (accLpfCutHz) {
|
||||
for (int axis = 0; axis < XYZ_AXIS_COUNT; axis++) {
|
||||
acc.accADC[axis] = lrintf(biquadFilterApply(&accFilter[axis], (float)acc.accADC[axis]));
|
||||
acc.accADC[axis] = biquadFilterApply(&accFilter[axis], acc.accADC[axis]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue