Package org.team1126.lib.swerve.hardware
Class SwerveMotors
java.lang.Object
org.team1126.lib.swerve.hardware.SwerveMotors
Contains implementations for motors to be used with the
SwerveAPI.-
Method Details
-
sparkMax
Configures aSpark Max.- Parameters:
id- CAN ID of the device, as configured in the REV Hardware Client.inverted- If the motor is inverted.
-
sparkFlex
Configures aSpark Flex.- Parameters:
id- CAN ID of the device, as configured in the REV Hardware Client.inverted- If the motor is inverted.
-
talonFX
Configures aTalonFX.- Parameters:
id- CAN ID of the device, as configured in Phoenix Tuner.inverted- If the motor is inverted.
-