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>
,Constable
- Enclosing class:
- DifferentialDrivetrainSim
public static enum DifferentialDrivetrainSim.KitbotMotor extends Enum<DifferentialDrivetrainSim.KitbotMotor>
Represents common motor layouts of the kit drivetrain.
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description kDoubleFalcon500PerSide
Two Falcon 500 motors per drive side.kDoubleNEOPerSide
Two NEO motors per drive side.kDualCIMPerSide
Two CIM motors per drive side.kDualMiniCIMPerSide
Two Mini CIM motors per drive side.kSingleCIMPerSide
One CIM motor per drive side.kSingleFalcon500PerSide
One Falcon 500 motor per drive side.kSingleMiniCIMPerSide
One Mini CIM motor per drive side.kSingleNEOPerSide
One NEO motor per drive side. -
Field Summary
-
Method Summary
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 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 type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-