Package frc.robot.subsystems.indexer
Interface IndexerIO
- All Known Implementing Classes:
IndexerIOSim,IndexerIOSpark
public interface IndexerIO
Interface for the indexer mechanism input/output abstraction.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classContains all of the inputs received from the indexer hardware. -
Method Summary
Modifier and TypeMethodDescriptiondefault voidClears all faults and warnings.default voidsetVoltage(Voltage voltage) Run the indexer motor at the specified voltage.default voidUpdates the set of loggable inputs.
-
Method Details
-
updateInputs
Updates the set of loggable inputs.- Parameters:
inputs- The inputs object to update.
-
setVoltage
Run the indexer motor at the specified voltage.- Parameters:
voltage- The voltage to apply to the motor controller.
-
clearFaults
default void clearFaults()Clears all faults and warnings.
-