Package edu.wpi.first.wpilibj.simulation
Class PWMMotorControllerSim
java.lang.Object
edu.wpi.first.wpilibj.simulation.PWMMotorControllerSim
Class to control a simulated PWM motor controller.
-
Constructor Summary
ConstructorsConstructorDescriptionPWMMotorControllerSim
(int channel) Constructor.PWMMotorControllerSim
(PWMMotorController motorctrl) Constructor. -
Method Summary
-
Constructor Details
-
PWMMotorControllerSim
Constructor.- Parameters:
motorctrl
- The device to simulate
-
PWMMotorControllerSim
Constructor.- Parameters:
channel
- The channel the motor controller is attached to.
-
-
Method Details
-
getSpeed
Gets the motor speed set.- Returns:
- Speed
-