Package swervelib.parser.deserializer
Enum Class ReflectionsManager.VendorMotorController
java.lang.Object
java.lang.Enum<ReflectionsManager.VendorMotorController>
swervelib.parser.deserializer.ReflectionsManager.VendorMotorController
- All Implemented Interfaces:
Serializable,Comparable<ReflectionsManager.VendorMotorController>,Constable
- Enclosing class:
- ReflectionsManager
public static enum ReflectionsManager.VendorMotorController
extends Enum<ReflectionsManager.VendorMotorController>
SmartMotorController vendor classes.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptiongetAbsoluteEncoder(String externalEncoderType, yams.motorcontrollers.SmartMotorController motorController, boolean inverted) yams.motorcontrollers.SmartMotorControllergetMotorController(int canid, String canbus, yams.motorcontrollers.SmartMotorControllerConfig config, DCMotor motor) Get theCTREDevices.MotorControllerTypeas aSmartMotorController.Returns 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
-
TALONFX
TalonFX Motor Controller wihtin KrakenX60 and KrakenX44 -
TALONFXS
TalonFXS Motor Controller -
SPARKMAX
SparkMax Motor Controller -
SPARKFLEX
SparkFlex Motor Controller -
NOVA
ThriftyBot Nova Motor Controller -
NONE
not a motor controller
-
-
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
-
getMotorController
public yams.motorcontrollers.SmartMotorController getMotorController(int canid, String canbus, yams.motorcontrollers.SmartMotorControllerConfig config, DCMotor motor) Get theCTREDevices.MotorControllerTypeas aSmartMotorController.- Parameters:
canid- CAN ID of theCTREDevices.MotorControllerTypecanbus- CAN bus name of theCTREDevices.MotorControllerTypeconfig-SmartMotorControllerConfigto apply to theSmartMotorControllermotor-DCMotorto use with theSmartMotorController- Returns:
SmartMotorController
-
getAbsoluteEncoder
-