Class PWMSim

java.lang.Object
edu.wpi.first.wpilibj.simulation.PWMSim

public class PWMSim
extends Object
Class to control a simulated PWM output.
  • Constructor Details

    • PWMSim

      public PWMSim​(PWM pwm)
      Constructs from a PWM object.
      Parameters:
      pwm - PWM to simulate
    • PWMSim

      public PWMSim​(PWMMotorController motorctrl)
      Constructs from a PWMMotorController object.
      Parameters:
      motorctrl - PWMMotorController to simulate
    • PWMSim

      public PWMSim​(int channel)
      Constructs from a PWM channel number.
      Parameters:
      channel - Channel number
  • Method Details