mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 04:45:24 +03:00
Fix gyro pt1
This commit is contained in:
parent
fc480fab5b
commit
29733a2424
1 changed files with 1 additions and 1 deletions
|
@ -192,7 +192,7 @@ void gyroUpdate(void)
|
|||
|
||||
if (gyroSoftLpfType == FILTER_BIQUAD)
|
||||
gyroADCf[axis] = biquadFilterApply(&gyroFilterLPF[axis], (float) gyroADC[axis]);
|
||||
else if (gyroSoftLpfType == FILTER_BIQUAD)
|
||||
else if (gyroSoftLpfType == FILTER_PT1)
|
||||
gyroADCf[axis] = pt1FilterApply4(&gyroFilterPt1[axis], (float) gyroADC[axis], gyroSoftLpfHz, gyroDt);
|
||||
else
|
||||
gyroADCf[axis] = denoisingFilterUpdate((float) gyroADC[axis], 3, gyroFilterDenoise[axis]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue