From 48ab3ca0b29afbb4fb45e2ec31b16f01a2af601d Mon Sep 17 00:00:00 2001 From: borisbstyle Date: Sat, 8 Oct 2016 00:09:30 +0200 Subject: [PATCH] Fix gyro pt1 --- src/main/sensors/gyro.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/sensors/gyro.c b/src/main/sensors/gyro.c index 437c80b103..926131fa60 100644 --- a/src/main/sensors/gyro.c +++ b/src/main/sensors/gyro.c @@ -193,7 +193,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]);