Skip to content

Commit

Permalink
use the apply on the smith predictor
Browse files Browse the repository at this point in the history
  • Loading branch information
Quick-Flash authored and nerdCopter committed Nov 22, 2022
1 parent e774e77 commit b21fe45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/sensors/gyro_filter_impl.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ static FAST_CODE void GYRO_FILTER_FUNCTION_NAME(void)
#endif

#ifdef USE_SMITH_PREDICTOR
applySmithPredictor(&gyro.smithPredictor[axis], gyroADCf, axis);
gyroADCf = applySmithPredictor(&gyro.smithPredictor[axis], gyroADCf, axis);
#endif
// DEBUG_GYRO_FILTERED records the scaled, filtered, after all software filtering has been applied.
GYRO_FILTER_DEBUG_SET(DEBUG_GYRO_FILTERED, axis, lrintf(gyroADCf));
Expand Down

0 comments on commit b21fe45

Please sign in to comment.