Class ShooterSimMotor

All Implemented Interfaces:
Motor, MotorIO

public class ShooterSimMotor extends AbstractVelocitySimMotor<MotorConfig>
Simulation-only shooter motor wrapper configured from the shooter subsystem config.

Use this class when running in simulation so the flywheel velocity behavior can be exercised without hardware. Construct it with the same config used by the subsystem to ensure gearing matches the real device.

  • Method Details

    • create

      public static ShooterSimMotor create(MotorConfig motorConfig, Supplier<Double> maximumVelocitySupplier, Supplier<Double> maximumAccelerationSupplier)
      Creates a simulated shooter motor wrapper using the supplied configuration values.

      Use this factory so the call site stays consistent with the hardware motor creation pattern.

      Parameters:
      motorConfig - shooter motor configuration bundle loaded from JSON
      maximumVelocitySupplier - supplier yielding the maximum mechanism velocity in degrees per second
      maximumAccelerationSupplier - supplier yielding the maximum mechanism acceleration in degrees per second squared
      Returns:
      configured simulated shooter motor wrapper