Class REVDevices
java.lang.Object
swervelib.parser.deserializer.reflections.REVDevices
Reflection class for
SparkBases and other REV devices.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumAbsolute encoder types.static enumMotor controller types. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAbsoluteEncoder(int canid, String canbus, boolean inverted) getAttachedAbsoluteEncoder(String attachType, Object motorController, boolean inverted) Get the attached absolute encoder.static yams.motorcontrollers.SmartMotorControllergetMotorController(int canid, String canbus, yams.motorcontrollers.SmartMotorControllerConfig config, DCMotor motor, String motorControllerType) Get theSparkBaseas aSmartMotorController.
-
Constructor Details
-
REVDevices
public REVDevices()
-
-
Method Details
-
getMotorController
public static yams.motorcontrollers.SmartMotorController getMotorController(int canid, String canbus, yams.motorcontrollers.SmartMotorControllerConfig config, DCMotor motor, String motorControllerType) Get theSparkBaseas aSmartMotorController. -
getAbsoluteEncoder
-
getAttachedAbsoluteEncoder
public static Pair<Supplier<Angle>,Object> getAttachedAbsoluteEncoder(String attachType, Object motorController, boolean inverted) Get the attached absolute encoder.
-