Interface FlywheelIO
- All Known Implementing Classes:
FlywheelIOSim,FlywheelIOSpark
public interface FlywheelIO
Interface for the shooter flywheel subsystem input/output abstraction.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classContains all of the inputs received from the flywheel hardware. -
Method Summary
Modifier and TypeMethodDescriptiondefault voidClears all faults and warnings.default voidrunCharacterization(Voltage voltage) Runs a characterization routine on the flywheel to determine its feedforward constants.default voidsetAngularVelocity(AngularVelocity velocity) Commands the flywheel to spin at a specific angular velocity.default voidstop()Stops the flywheel motor.default voidUpdates the set of loggable inputs with the latest data from the flywheel hardware.
-
Method Details
-
updateInputs
Updates the set of loggable inputs with the latest data from the flywheel hardware.- Parameters:
inputs- The inputs object to update.
-
setAngularVelocity
Commands the flywheel to spin at a specific angular velocity.- Parameters:
velocity- The target angular velocity for the flywheel.
-
runCharacterization
Runs a characterization routine on the flywheel to determine its feedforward constants.- Parameters:
voltage- The voltage to apply during characterization.
-
stop
default void stop()Stops the flywheel motor. -
clearFaults
default void clearFaults()Clears all faults and warnings.
-