Enum SparkMaxSwerve.SparkMAX_slotIdx
- java.lang.Object
-
- java.lang.Enum<SparkMaxSwerve.SparkMAX_slotIdx>
-
- frc.robot.subsystems.swervedrive2.swervelib.motors.SparkMaxSwerve.SparkMAX_slotIdx
-
- All Implemented Interfaces:
Serializable,Comparable<SparkMaxSwerve.SparkMAX_slotIdx>
- Enclosing class:
- SparkMaxSwerve
static enum SparkMaxSwerve.SparkMAX_slotIdx extends Enum<SparkMaxSwerve.SparkMAX_slotIdx>
REV Slots for PID configuration.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description PositionSimulationVelocity
-
Constructor Summary
Constructors Modifier Constructor Description privateSparkMAX_slotIdx()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SparkMaxSwerve.SparkMAX_slotIdxvalueOf(String name)Returns the enum constant of this type with the specified name.static SparkMaxSwerve.SparkMAX_slotIdx[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Position
public static final SparkMaxSwerve.SparkMAX_slotIdx Position
-
Velocity
public static final SparkMaxSwerve.SparkMAX_slotIdx Velocity
-
Simulation
public static final SparkMaxSwerve.SparkMAX_slotIdx Simulation
-
-
Method Detail
-
values
public static SparkMaxSwerve.SparkMAX_slotIdx[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SparkMaxSwerve.SparkMAX_slotIdx c : SparkMaxSwerve.SparkMAX_slotIdx.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SparkMaxSwerve.SparkMAX_slotIdx valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
-