Class AbstractVelocitySimMotor<TConfig extends MotorConfig>

Type Parameters:
TConfig - concrete motor config type
All Implemented Interfaces:
Motor, MotorIO
Direct Known Subclasses:
FeederSimMotor, IndexerSimMotor, IntakeSimMotor, ShooterSimMotor

public abstract class AbstractVelocitySimMotor<TConfig extends MotorConfig> extends AbstractSimMotor
Simulation-only motor wrapper for velocity-controlled mechanisms.

Concrete subclasses supply their specific motor config and friendly name so the simulation motor matches the gearing and limits of the real device.

  • Constructor Details

    • AbstractVelocitySimMotor

      protected AbstractVelocitySimMotor(String name, TConfig motorConfig, Supplier<Double> maximumVelocitySupplier, Supplier<Double> maximumAccelerationSupplier)
      Creates a simulated velocity motor using the supplied configuration values.
      Parameters:
      name - friendly name used for logging
      motorConfig - 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