Class IntakeSimMotor

All Implemented Interfaces:
Motor, MotorIO

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

Use this class when running in simulation so the roller 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 IntakeSimMotor create(MotorConfig motorConfig, Supplier<Double> maximumVelocitySupplier, Supplier<Double> maximumAccelerationSupplier)
      Creates a simulated intake motor wrapper using the supplied configuration values.

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

      Parameters:
      motorConfig - intake 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 intake motor wrapper