Class XDigitalOutput

java.lang.Object
xbot.common.controls.actuators.XDigitalOutput
All Implemented Interfaces:
XBaseIO
Direct Known Subclasses:
DigitalOutputWPIAdapter, MockDigitalOutput

public abstract class XDigitalOutput extends Object implements XBaseIO
  • Field Details

    • channel

      protected int channel
  • Constructor Details

    • XDigitalOutput

      protected XDigitalOutput(int channel, DevicePolice police)
  • Method Details

    • getChannel

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

      public abstract void set(boolean value)
    • setPWMRate

      public abstract void setPWMRate(double frequency)
      Set the PWM frequency of ALL DIGITAL OUTPUT PWM CHANNELS
      Parameters:
      frequency - PWM frequency
    • enablePWM

      public abstract void enablePWM(double initialDutyCycle)
    • updateDutyCycle

      public abstract void updateDutyCycle(double dutyCycle)
    • disablePWM

      public abstract void disablePWM()
    • get

      public abstract boolean get()