Removed async SparkMAX config

This commit is contained in:
thenetworkgrinch
2023-12-20 09:52:56 -06:00
parent ef30e3c66a
commit 3fd8493ccb
2 changed files with 3 additions and 3 deletions

View File

@@ -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.
}
/**

View File

@@ -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.
}
/**