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
Nested ClassesModifier and TypeClassDescriptionstatic interfaceA factory to create XCompressor instances. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voiddisable()Disable the compressor.abstract voidenable()Enable the compressor.abstract doubleGets the current drawn by the compressor.abstract booleanGets whether the compressor is at its target pressure.abstract booleanGet 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.
-