Class CTREDevices
java.lang.Object
swervelib.core.parser.deserializer.reflections.CTREDevices
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumMotor controller types. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAbsoluteEncoder(int canid, String canbus, boolean inverted) Get theCANcoderangle.Get the gyroscope attitude supplier and gyroscope object.static SmartMotorControllergetMotorController(int canid, String canbus, SmartMotorControllerConfig config, org.wpilib.math.system.DCMotor motor, String motorControllerType) Get theCTREDevices.MotorControllerTypeas aSmartMotorController.
-
Constructor Details
-
CTREDevices
public CTREDevices()
-
-
Method Details
-
getMotorController
public static SmartMotorController getMotorController(int canid, String canbus, SmartMotorControllerConfig config, org.wpilib.math.system.DCMotor motor, String motorControllerType) Get theCTREDevices.MotorControllerTypeas aSmartMotorController.- Parameters:
canid- CAN ID of theCTREDevices.MotorControllerTypecanbus- CAN bus of theCTREDevices.MotorControllerType, seeCANBusesconfig-SmartMotorControllerConfigto apply to theSmartMotorControllermotor-DCMotorto use with theSmartMotorControllermotorControllerType- Motor controller type.- Returns:
SmartMotorController
-
getGyro
-
getAbsoluteEncoder
-