Class SpinnerIOSim
java.lang.Object
frc.robot.subsystems.intake.spinner.SpinnerIOSim
- All Implemented Interfaces:
SpinnerIO
Simulation implementation of the Spinner IO interface.
-
Nested Class Summary
Nested classes/interfaces inherited from interface frc.robot.subsystems.intake.spinner.SpinnerIO
SpinnerIO.SpinnerIOInputs -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new SpinnerIOSim and initializes the simulated Spark MAX motor controllers. -
Method Summary
Modifier and TypeMethodDescriptionvoidsetVoltage(Voltage voltage) Commands the spinner motor to run at a specific voltage.voidUpdates inputs by simulating physics models and updating the SparkMaxSim state.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface frc.robot.subsystems.intake.spinner.SpinnerIO
clearFaults
-
Constructor Details
-
SpinnerIOSim
public SpinnerIOSim()Creates a new SpinnerIOSim and initializes the simulated Spark MAX motor controllers.
-
-
Method Details
-
updateInputs
Updates inputs by simulating physics models and updating the SparkMaxSim state.- Specified by:
updateInputsin interfaceSpinnerIO- Parameters:
inputs- The inputs object to update.
-
setVoltage
Description copied from interface:SpinnerIOCommands the spinner motor to run at a specific voltage.- Specified by:
setVoltagein interfaceSpinnerIO- Parameters:
voltage- The target voltage for the spinner rollers.
-