This repository was archived by the owner on Dec 6, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
src/main/java/swervelib/motors Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 1818import edu .wpi .first .math .system .plant .DCMotor ;
1919import edu .wpi .first .wpilibj .Alert ;
2020import edu .wpi .first .wpilibj .Alert .AlertType ;
21- import edu .wpi .first .wpilibj .DriverStation ;
2221import edu .wpi .first .wpilibj .Timer ;
2322import java .util .Optional ;
2423import java .util .function .Supplier ;
@@ -37,19 +36,19 @@ public class SparkMaxBrushedMotorSwerve extends SwerveMotor
3736 /**
3837 * Config retry delay.
3938 */
40- private final double configDelay = Milliseconds .of (5 ).in (Seconds );
39+ private final double configDelay = Milliseconds .of (5 ).in (Seconds );
4140 /**
4241 * SparkMAX Instance.
4342 */
4443 private final SparkMax motor ;
4544 /**
4645 * Absolute encoder attached to the SparkMax (if exists)
4746 */
48- public Optional <SwerveAbsoluteEncoder > absoluteEncoder ;
47+ public Optional <SwerveAbsoluteEncoder > absoluteEncoder = Optional . empty () ;
4948 /**
5049 * Integrated encoder.
5150 */
52- public Optional <RelativeEncoder > encoder = Optional .empty ();
51+ public Optional <RelativeEncoder > encoder = Optional .empty ();
5352 /**
5453 * Closed-loop PID controller.
5554 */
@@ -77,7 +76,7 @@ public class SparkMaxBrushedMotorSwerve extends SwerveMotor
7776 /**
7877 * Configuration object for {@link SparkMax} motor.
7978 */
80- private SparkMaxConfig cfg = new SparkMaxConfig ();
79+ private SparkMaxConfig cfg = new SparkMaxConfig ();
8180
8281 /**
8382 * Initialize the swerve motor.
You can’t perform that action at this time.
0 commit comments