Class MockCompressor

java.lang.Object
xbot.common.controls.actuators.XCompressor
xbot.common.controls.actuators.mock_adapters.MockCompressor

public class MockCompressor extends XCompressor
  • Constructor Details

    • MockCompressor

      @AssistedInject public MockCompressor()
  • Method Details

    • disable

      public void disable()
      Description copied from class: XCompressor
      Disable the compressor.
      Specified by:
      disable in class XCompressor
    • enable

      public void enable()
      Description copied from class: XCompressor
      Enable the compressor.
      Specified by:
      enable in class XCompressor
    • isEnabled

      public boolean isEnabled()
      Description copied from class: XCompressor
      Get if the compressor is currently enabled.
      Specified by:
      isEnabled in class XCompressor
      Returns:
      True if the compressor is enabled.
    • getCurrent

      public double getCurrent()
      Description copied from class: XCompressor
      Gets the current drawn by the compressor.
      Specified by:
      getCurrent in class XCompressor
      Returns:
      The current drawn by the compressor, in amps.
    • isAtTargetPressure

      public boolean isAtTargetPressure()
      Description copied from class: XCompressor
      Gets whether the compressor is at its target pressure.
      Specified by:
      isAtTargetPressure in class XCompressor
      Returns:
      True if the compressor is at its target pressure.