From 29733a242476bfc0d73e365d8a286e0160a54a5a 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 60aeba4e89..0cc5aeee1b 100644 --- a/src/main/sensors/gyro.c +++ b/src/main/sensors/gyro.c @@ -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]);