Package xbot.common.controls.actuators
Class XCompressor
java.lang.Object
xbot.common.controls.actuators.XCompressor
- Direct Known Subclasses:
CompressorWPIAdapter
,MockCompressor
Represents an air compressor.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
A factory to create XCompressor instances. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
disable()
Disable the compressor.abstract void
enable()
Enable the compressor.abstract double
Gets the current drawn by the compressor.abstract boolean
Gets whether the compressor is at its target pressure.abstract boolean
Get if the compressor is currently enabled.
-
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.
-