Class SpinnerIOSim

java.lang.Object
frc.robot.subsystems.intake.spinner.SpinnerIOSim
All Implemented Interfaces:
SpinnerIO

public class SpinnerIOSim extends Object implements SpinnerIO
Simulation implementation of the Spinner IO interface.
  • Constructor Details

    • SpinnerIOSim

      public SpinnerIOSim()
      Creates a new SpinnerIOSim and initializes the simulated Spark MAX motor controllers.
  • Method Details

    • updateInputs

      public void updateInputs(SpinnerIO.SpinnerIOInputs inputs)
      Updates inputs by simulating physics models and updating the SparkMaxSim state.
      Specified by:
      updateInputs in interface SpinnerIO
      Parameters:
      inputs - The inputs object to update.
    • setVoltage

      public void setVoltage(Voltage voltage)
      Description copied from interface: SpinnerIO
      Commands the spinner motor to run at a specific voltage.
      Specified by:
      setVoltage in interface SpinnerIO
      Parameters:
      voltage - The target voltage for the spinner rollers.