Class CompressorWPIAdapter
java.lang.Object
xbot.common.controls.actuators.XCompressor
xbot.common.controls.actuators.wpi_adapters.CompressorWPIAdapter
-
Nested Class Summary
Nested classes/interfaces inherited from class xbot.common.controls.actuators.XCompressor
XCompressor.XCompressorFactory
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
CompressorWPIAdapter
@AssistedInject public CompressorWPIAdapter()
-
-
Method Details
-
disable
public void disable()Description copied from class:XCompressor
Disable the compressor.- Specified by:
disable
in classXCompressor
-
enable
public void enable()Description copied from class:XCompressor
Enable the compressor.- Specified by:
enable
in classXCompressor
-
isEnabled
public boolean isEnabled()Description copied from class:XCompressor
Get if the compressor is currently enabled.- Specified by:
isEnabled
in classXCompressor
- 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 classXCompressor
- 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 classXCompressor
- Returns:
- True if the compressor is at its target pressure.
-