Class ModuleIOTalonFX
java.lang.Object
frc.alotobots.library.subsystems.swervedrive.io.ModuleIOTalonFX
- All Implemented Interfaces:
ModuleIO
-
Nested Class Summary
Nested classes/interfaces inherited from interface frc.alotobots.library.subsystems.swervedrive.io.ModuleIO
ModuleIO.ModuleIOInputs
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setDriveOpenLoop
(double output) Run the drive motor at the specified open loop value.void
setDriveVelocity
(double velocityRadPerSec) Run the drive motor at the specified velocity.void
setTurnOpenLoop
(double output) Run the turn motor at the specified open loop value.void
setTurnPosition
(Rotation2d rotation) Run the turn motor to the specified rotation.void
updateInputs
(ModuleIO.ModuleIOInputs inputs) Updates the set of loggable inputs.
-
Constructor Details
-
ModuleIOTalonFX
public ModuleIOTalonFX(int moduleIndex)
-
-
Method Details
-
updateInputs
Description copied from interface:ModuleIO
Updates the set of loggable inputs.- Specified by:
updateInputs
in interfaceModuleIO
-
setDriveOpenLoop
public void setDriveOpenLoop(double output) Description copied from interface:ModuleIO
Run the drive motor at the specified open loop value.- Specified by:
setDriveOpenLoop
in interfaceModuleIO
-
setTurnOpenLoop
public void setTurnOpenLoop(double output) Description copied from interface:ModuleIO
Run the turn motor at the specified open loop value.- Specified by:
setTurnOpenLoop
in interfaceModuleIO
-
setDriveVelocity
public void setDriveVelocity(double velocityRadPerSec) Description copied from interface:ModuleIO
Run the drive motor at the specified velocity.- Specified by:
setDriveVelocity
in interfaceModuleIO
-
setTurnPosition
Description copied from interface:ModuleIO
Run the turn motor to the specified rotation.- Specified by:
setTurnPosition
in interfaceModuleIO
-