Class TurretSimMotor

All Implemented Interfaces:
Motor, MotorIO

public class TurretSimMotor extends AbstractSimMotor
Simulation-only turret motor wrapper configured from the turret subsystem config.

Use this class when running in simulation so the turret profile behavior can be exercised without hardware. Construct it with the same config used by the subsystem to ensure limits and gearing match the real device.

  • Method Details

    • create

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

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

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