Class XCompressor

java.lang.Object
xbot.common.controls.actuators.XCompressor
Direct Known Subclasses:
CompressorWPIAdapter, MockCompressor

public abstract class XCompressor extends Object
Represents an air compressor.
  • Constructor Details

    • XCompressor

      public XCompressor()
  • Method Details

    • disable

      public abstract void disable()
      Disable the compressor.
    • enable

      public abstract void enable()
      Enable the compressor.
    • isEnabled

      public abstract boolean isEnabled()
      Get if the compressor is currently enabled.
      Returns:
      True if the compressor is enabled.
    • getCurrent

      public abstract double getCurrent()
      Gets the current drawn by the compressor.
      Returns:
      The current drawn by the compressor, in amps.
    • isAtTargetPressure

      public abstract boolean isAtTargetPressure()
      Gets whether the compressor is at its target pressure.
      Returns:
      True if the compressor is at its target pressure.