Interface SpinnerIO
- All Known Implementing Classes:
SpinnerIOSim,SpinnerIOSpark
public interface SpinnerIO
IO interface for the intake hardware abstraction.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classContains all of the inputs received from the intake hardware. -
Method Summary
Modifier and TypeMethodDescriptiondefault voidClears all faults and warnings.default voidsetVoltage(Voltage voltage) Commands the spinner motor to run at a specific voltage.default voidUpdates the set of loggable inputs with the latest data from the intake hardware.
-
Method Details
-
updateInputs
Updates the set of loggable inputs with the latest data from the intake hardware.- Parameters:
inputs- The inputs object to update.
-
setVoltage
Commands the spinner motor to run at a specific voltage.- Parameters:
voltage- The target voltage for the spinner rollers.
-
clearFaults
default void clearFaults()Clears all faults and warnings.
-