Class XPWM

java.lang.Object
xbot.common.controls.actuators.XPWM
All Implemented Interfaces:
XBaseIO
Direct Known Subclasses:
MockPWM, PWMWPIAdapter

public abstract class XPWM extends Object implements XBaseIO
  • Field Details

    • channel

      protected int channel
  • Constructor Details

  • Method Details

    • getChannel

      public int getChannel()
      Specified by:
      getChannel in interface XBaseIO
    • setRaw

      public abstract void setRaw(int value)
      Sets the PWM duty cycle
      Parameters:
      value - the value to set, in the range [0, 255]
    • getRaw

      public abstract int getRaw()
    • setSigned

      public abstract void setSigned(double value)
      Sets the PWM duty cycle
      Parameters:
      value - the value to set, in the range [-1, 1]
    • getSigned

      public abstract double getSigned()
    • setUnsigned

      public abstract void setUnsigned(double value)
      Sets the PWM duty cycle
      Parameters:
      value - the value to set, in the range [0, 1]
    • getUnsigned

      public abstract double getUnsigned()