mirror of
https://github.com/BroncBotz3481/YAGSL
synced 2026-06-19 06:21:40 +00:00
Removed async SparkMAX config
This commit is contained in:
@@ -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.
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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.
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user