diff --git a/swervelib/motors/SparkMaxBrushedMotorSwerve.java b/swervelib/motors/SparkMaxBrushedMotorSwerve.java index bab8719..ba1add7 100644 --- a/swervelib/motors/SparkMaxBrushedMotorSwerve.java +++ b/swervelib/motors/SparkMaxBrushedMotorSwerve.java @@ -88,8 +88,8 @@ public class SparkMaxBrushedMotorSwerve extends SwerveMotor // Configure feedback of the PID controller as the integrated encoder. configureSparkMax(() -> pid.setFeedbackDevice(encoder)); } - - configureSparkMax(() -> motor.setCANTimeout(0)); // Spin off configurations in a different thread. + // Spin off configurations in a different thread. + // configureSparkMax(() -> motor.setCANTimeout(0)); // Commented it out because it prevents feedback. } /** diff --git a/swervelib/motors/SparkMaxSwerve.java b/swervelib/motors/SparkMaxSwerve.java index 7d97cae..7ec5c2b 100644 --- a/swervelib/motors/SparkMaxSwerve.java +++ b/swervelib/motors/SparkMaxSwerve.java @@ -62,7 +62,7 @@ public class SparkMaxSwerve extends SwerveMotor encoder); // Configure feedback of the PID controller as the integrated encoder. // Spin off configurations in a different thread. - configureSparkMax(() -> motor.setCANTimeout(0)); + // configureSparkMax(() -> motor.setCANTimeout(0)); // Commented out because it prevents feedback. } /**