Class IndexerSimMotor
java.lang.Object
frc.robot.devices.motor.AbstractMotor
frc.robot.devices.motor.AbstractSimMotor
frc.robot.devices.motor.AbstractVelocitySimMotor<MotorConfig>
frc.robot.subsystems.indexer.devices.IndexerSimMotor
Simulation-only indexer motor wrapper configured from the indexer 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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface frc.robot.devices.motor.MotorIO
MotorIO.MotorIOInputs -
Field Summary
Fields inherited from class frc.robot.devices.motor.AbstractMotor
log, motor, name, NOMINAL_VOLTAGE -
Method Summary
Modifier and TypeMethodDescriptionstatic IndexerSimMotorcreate(MotorConfig motorConfig, Supplier<Double> maximumVelocitySupplier, Supplier<Double> maximumAccelerationSupplier) Creates a simulated indexer motor wrapper using the supplied configuration values.Methods inherited from class frc.robot.devices.motor.AbstractSimMotor
configureMotor, setEncoderPosition, updateInputsMethods inherited from class frc.robot.devices.motor.AbstractMotor
computeMechanismRadiansPerMotorRotation, getPositionRadians, getVelocityRadiansPerSecond, getVoltage, init, isInitialized, setVoltage, stop
-
Method Details