Class PWMMotorControllerSim

java.lang.Object
org.wpilib.simulation.PWMMotorControllerSim

public class PWMMotorControllerSim extends Object
Class to control a simulated PWM motor controller.
  • Constructor Details

    • PWMMotorControllerSim

      public PWMMotorControllerSim(PWMMotorController motorctrl)
      Constructor.
      Parameters:
      motorctrl - The device to simulate
    • PWMMotorControllerSim

      public PWMMotorControllerSim(int channel)
      Constructor.
      Parameters:
      channel - The channel the motor controller is attached to.
  • Method Details

    • getThrottle

      public double getThrottle()
      Gets the motor throttle.
      Returns:
      Throttle