Class TurretSimMotor
java.lang.Object
frc.robot.devices.motor.AbstractMotor
frc.robot.devices.motor.AbstractSimMotor
frc.robot.subsystems.turret.devices.TurretSimMotor
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.
-
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 TurretSimMotorcreate(MotorConfig motorConfig, Supplier<Double> maximumVelocitySupplier, Supplier<Double> maximumAccelerationSupplier) Creates a simulated turret 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