Package edu.wpi.first.wpilibj.simulation
Enum DifferentialDrivetrainSim.KitbotMotor
- java.lang.Object
-
- java.lang.Enum<DifferentialDrivetrainSim.KitbotMotor>
-
- edu.wpi.first.wpilibj.simulation.DifferentialDrivetrainSim.KitbotMotor
-
- All Implemented Interfaces:
Serializable
,Comparable<DifferentialDrivetrainSim.KitbotMotor>
- Enclosing class:
- DifferentialDrivetrainSim
public static enum DifferentialDrivetrainSim.KitbotMotor extends Enum<DifferentialDrivetrainSim.KitbotMotor>
Represents common motor layouts of the kit drivetrain.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description kDoubleFalcon500PerSide
kDoubleNEOPerSide
kDualCIMPerSide
kDualMiniCIMPerSide
kSingleCIMPerSide
kSingleFalcon500PerSide
kSingleMiniCIMPerSide
kSingleNEOPerSide
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DifferentialDrivetrainSim.KitbotMotor
valueOf(String name)
Returns the enum constant of this type with the specified name.static DifferentialDrivetrainSim.KitbotMotor[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
kSingleCIMPerSide
public static final DifferentialDrivetrainSim.KitbotMotor kSingleCIMPerSide
-
kDualCIMPerSide
public static final DifferentialDrivetrainSim.KitbotMotor kDualCIMPerSide
-
kSingleMiniCIMPerSide
public static final DifferentialDrivetrainSim.KitbotMotor kSingleMiniCIMPerSide
-
kDualMiniCIMPerSide
public static final DifferentialDrivetrainSim.KitbotMotor kDualMiniCIMPerSide
-
kSingleFalcon500PerSide
public static final DifferentialDrivetrainSim.KitbotMotor kSingleFalcon500PerSide
-
kDoubleFalcon500PerSide
public static final DifferentialDrivetrainSim.KitbotMotor kDoubleFalcon500PerSide
-
kSingleNEOPerSide
public static final DifferentialDrivetrainSim.KitbotMotor kSingleNEOPerSide
-
kDoubleNEOPerSide
public static final DifferentialDrivetrainSim.KitbotMotor kDoubleNEOPerSide
-
-
Method Detail
-
values
public static DifferentialDrivetrainSim.KitbotMotor[] 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 (DifferentialDrivetrainSim.KitbotMotor c : DifferentialDrivetrainSim.KitbotMotor.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DifferentialDrivetrainSim.KitbotMotor 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
-
-