You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/java/org/carlmontrobotics/lib199/MotorControllerFactory.java
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -57,6 +57,8 @@ public static WPI_TalonSRX createTalon(int id) {
57
57
returntalon;
58
58
}
59
59
/**
60
+
* This class returns a SparkBase, initialized to either a SparkMax or SparkFlex depending on the {@link MotorConfig#controllerType}.
61
+
* Note that SparkBase lacks some of the functionality of SparkMax and SparkFlex, use {@link MotorControllerFactory#createSparkMax(int, MotorConfig...)} or {@link MotorControllerFactory#createSparkFlex(int...)} to get a SparkMax or SparkFlex object.
60
62
* To use the configAccessor, use {@link MotorControllerFactory#getConfigAccessor(SparkBase)}
* This class returns a SparkBase, initialized to either a SparkMax or SparkFlex depending on the {@link MotorConfig#controllerType}.
72
+
* Note that SparkBase lacks some of the functionality of SparkMax and SparkFlex, use {@link MotorControllerFactory#createSparkMax(int, MotorConfig...)} or {@link MotorControllerFactory#createSparkFlex(int, MotorConfig...)} to get a SparkMax or SparkFlex object.
69
73
* To use the configAccessor, use {@link MotorControllerFactory#getConfigAccessor(SparkBase)}
0 commit comments