Skip to content

Commit ce3d3d3

Browse files
Quick-FlashnerdCopter
authored andcommitted
use the apply on the smith predictor
1 parent a5773e3 commit ce3d3d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/sensors/gyro_filter_impl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ static FAST_CODE void GYRO_FILTER_FUNCTION_NAME(void)
8383
#endif
8484

8585
#ifdef USE_SMITH_PREDICTOR
86-
applySmithPredictor(&gyro.smithPredictor[axis], gyroADCf, axis);
86+
gyroADCf = applySmithPredictor(&gyro.smithPredictor[axis], gyroADCf, axis);
8787
#endif
8888
// DEBUG_GYRO_FILTERED records the scaled, filtered, after all software filtering has been applied.
8989
GYRO_FILTER_DEBUG_SET(DEBUG_GYRO_FILTERED, axis, lrintf(gyroADCf));

0 commit comments

Comments
 (0)