Class HoodIOSim

java.lang.Object
frc.robot.subsystems.shooter.hood.HoodIOSim
All Implemented Interfaces:
HoodIO

public class HoodIOSim extends Object implements HoodIO
Simulation implementation of HoodIO.

This class simulates the movement of the hood actuator over time based on its configured maximum velocity, allowing for realistic testing of shooter command logic without physical hardware.

  • Constructor Details

    • HoodIOSim

      public HoodIOSim()
  • Method Details

    • updateInputs

      public void updateInputs(HoodIO.HoodIOInputs inputs)
      Updates inputs by modeling the movement of the hood actuator in the simulator.
      Specified by:
      updateInputs in interface HoodIO
      Parameters:
      inputs - The inputs object to update.
    • setLength

      public void setLength(Distance length)
      Sets the target length for the simulated hood actuator.
      Specified by:
      setLength in interface HoodIO
      Parameters:
      length - The target length for the actuator.