From b98bdcc3f8b1cd2b8057a6f213a46615547da084 Mon Sep 17 00:00:00 2001 From: Andrey Mironov Date: Wed, 21 Mar 2018 23:31:50 +0300 Subject: [PATCH] Made gyro debug and no-debug code paths the identical (#5491) --- src/main/sensors/gyro.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/sensors/gyro.c b/src/main/sensors/gyro.c index 6710f2ca8..78075a04e 100644 --- a/src/main/sensors/gyro.c +++ b/src/main/sensors/gyro.c @@ -1012,6 +1012,7 @@ static FAST_CODE void gyroUpdateSensor(gyroSensor_t *gyroSensor, timeUs_t curren // apply lowpass2 filter gyroADCf = gyroSensor->lowpass2FilterApplyFn((filter_t *)&gyroSensor->lowpass2Filter[axis], gyroADCf); + gyroADCf = gyroSensor->lmaSmoothingApplyFn((filter_t *)&gyroSensor->lmaSmoothingFilter[axis], gyroADCf); #ifdef USE_GYRO_DATA_ANALYSE // apply dynamic notch filter