Package edu.wpi.first.wpilibj.simulation
Enum Class DifferentialDrivetrainSim.KitbotMotor
java.lang.Object
java.lang.Enum<DifferentialDrivetrainSim.KitbotMotor>
edu.wpi.first.wpilibj.simulation.DifferentialDrivetrainSim.KitbotMotor
- All Implemented Interfaces:
Serializable
,Comparable<DifferentialDrivetrainSim.KitbotMotor>
,Constable
- Enclosing class:
- DifferentialDrivetrainSim
public static enum DifferentialDrivetrainSim.KitbotMotor
extends Enum<DifferentialDrivetrainSim.KitbotMotor>
Represents common motor layouts of the kit drivetrain.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionTwo Falcon 500 motors per drive side.Two NEO motors per drive side.Two CIM motors per drive side.Two Mini CIM motors per drive side.One CIM motor per drive side.One Falcon 500 motor per drive side.One Mini CIM motor per drive side.One NEO motor per drive side. -
Field Summary
-
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
-
kSingleCIMPerSide
One CIM motor per drive side. -
kDualCIMPerSide
Two CIM motors per drive side. -
kSingleMiniCIMPerSide
One Mini CIM motor per drive side. -
kDualMiniCIMPerSide
Two Mini CIM motors per drive side. -
kSingleFalcon500PerSide
One Falcon 500 motor per drive side. -
kDoubleFalcon500PerSide
Two Falcon 500 motors per drive side. -
kSingleNEOPerSide
One NEO motor per drive side. -
kDoubleNEOPerSide
Two NEO motors per drive side.
-
-
Field Details
-
value
KitbotMotor value.
-
-
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
-