Class PWMWPIAdapter

java.lang.Object
xbot.common.controls.actuators.XPWM
xbot.common.controls.actuators.wpi_adapters.PWMWPIAdapter
All Implemented Interfaces:
XBaseIO

public class PWMWPIAdapter extends XPWM
  • Constructor Details

    • PWMWPIAdapter

      @AssistedInject public PWMWPIAdapter(@Assisted("channel") int channel, DevicePolice police)
  • Method Details

    • setRaw

      public void setRaw(int value)
      Description copied from class: XPWM
      Sets the PWM duty cycle
      Specified by:
      setRaw in class XPWM
      Parameters:
      value - the value to set, in the range [0, 255]
    • getRaw

      public int getRaw()
      Specified by:
      getRaw in class XPWM
    • setSigned

      public void setSigned(double value)
      Description copied from class: XPWM
      Sets the PWM duty cycle
      Specified by:
      setSigned in class XPWM
      Parameters:
      value - the value to set, in the range [-1, 1]
    • getSigned

      public double getSigned()
      Specified by:
      getSigned in class XPWM
    • setUnsigned

      public void setUnsigned(double value)
      Description copied from class: XPWM
      Sets the PWM duty cycle
      Specified by:
      setUnsigned in class XPWM
      Parameters:
      value - the value to set, in the range [0, 1]
    • getUnsigned

      public double getUnsigned()
      Specified by:
      getUnsigned in class XPWM