Class FeederSimMotor

All Implemented Interfaces:
Motor, MotorIO

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

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

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

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