Package swervelib.motors
Enum Class TalonSRXSwerve.CTRE_slotIdx
- All Implemented Interfaces:
Serializable,Comparable<TalonSRXSwerve.CTRE_slotIdx>,Constable
- Enclosing class:
- TalonSRXSwerve
The Talon SRX Slot profile used to configure the motor to use for the PID.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSlot 0, meant for distances PID's.Slot 3, meant for motion profiles.Slot 1, meant for turning PID's.Slot 2, meant for velocity PID's. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TalonSRXSwerve.CTRE_slotIdxReturns the enum constant of this class with the specified name.static TalonSRXSwerve.CTRE_slotIdx[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Distance
Slot 0, meant for distances PID's. -
Turning
Slot 1, meant for turning PID's. -
Velocity
Slot 2, meant for velocity PID's. -
MotionProfile
Slot 3, meant for motion profiles.
-
-
Constructor Details
-
CTRE_slotIdx
private CTRE_slotIdx()
-
-
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
-