Package yams.motorcontrollers
Enum Class SmartMotorController.ClosedLoopControllerSlot
java.lang.Object
java.lang.Enum<SmartMotorController.ClosedLoopControllerSlot>
yams.motorcontrollers.SmartMotorController.ClosedLoopControllerSlot
- All Implemented Interfaces:
Serializable,Comparable<SmartMotorController.ClosedLoopControllerSlot>,Constable
- Enclosing class:
- SmartMotorController
public static enum SmartMotorController.ClosedLoopControllerSlot
extends Enum<SmartMotorController.ClosedLoopControllerSlot>
Current closed loop controller slot.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SLOT_0
Slot 0 is the default slot for the closed loop controller. -
SLOT_1
Slot 1 is the second slot for the closed loop controller. -
SLOT_2
Slot 2 is the third slot for the closed loop controller. -
SLOT_3
Slot 3 is the fourth slot for the closed loop controller.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-