Interface ModuleIO
- All Known Implementing Classes:
ModuleIOSim
,ModuleIOTalonFX
public interface ModuleIO
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
setDriveOpenLoop
(double output) Run the drive motor at the specified open loop value.default void
setDriveVelocity
(double velocityRadPerSec) Run the drive motor at the specified velocity.default void
setTurnOpenLoop
(double output) Run the turn motor at the specified open loop value.default void
setTurnPosition
(Rotation2d rotation) Run the turn motor to the specified rotation.default void
updateInputs
(ModuleIO.ModuleIOInputs inputs) Updates the set of loggable inputs.
-
Method Details
-
updateInputs
Updates the set of loggable inputs. -
setDriveOpenLoop
default void setDriveOpenLoop(double output) Run the drive motor at the specified open loop value. -
setTurnOpenLoop
default void setTurnOpenLoop(double output) Run the turn motor at the specified open loop value. -
setDriveVelocity
default void setDriveVelocity(double velocityRadPerSec) Run the drive motor at the specified velocity. -
setTurnPosition
Run the turn motor to the specified rotation.
-