From 053ae733cd1306beae948f696a793284014c27c3 Mon Sep 17 00:00:00 2001 From: thenetworkgrinch Date: Fri, 26 Jan 2024 11:58:41 -0600 Subject: [PATCH] Added back anti-jitter --- swervelib/SwerveModule.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/swervelib/SwerveModule.java b/swervelib/SwerveModule.java index 260cdf0..dd709cb 100644 --- a/swervelib/SwerveModule.java +++ b/swervelib/SwerveModule.java @@ -226,14 +226,12 @@ public class SwerveModule driveMotor.setReference(velocity, feedforward.calculate(velocity)); } - /* // Not necessary anymore. // If we are forcing the angle if (!force) { // Prevents module rotation if speed is less than 1% SwerveMath.antiJitter(desiredState, lastState, Math.min(maxSpeed, 4)); } - */ // Prevent module rotation if angle is the same as the previous angle. // Synchronize encoders if queued and send in the current position as the value from the absolute encoder.