public final class Compressor extends java.lang.Object implements Module, UpdatingSendable
| Modifier and Type | Field and Description |
|---|---|
private static java.nio.ByteBuffer |
COMPRESSOR
The m_pcm_compressor.
|
private static Compressor |
m_instance
The Constant m_instance.
|
private ITable |
m_table
The m_table.
|
| Modifier | Constructor and Description |
|---|---|
private |
Compressor()
Instantiates a new pcm.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
clearCompressorStickyFaults()
Clear compressor sticky faults.
|
void |
disableModule()
Disable the module
|
static void |
enableCompressor(boolean on)
Enable compressor.
|
void |
enableModule()
Enable the module
|
void |
free() |
static double |
getCompressorCurrent()
Gets the compressor current.
|
static boolean |
getCompressorEnabled()
Gets the compressor enabled.
|
static boolean |
getCurrentFault()
Gets the current fault.
|
static boolean |
getCurrentStickyFault()
Gets the current sticky fault.
|
static Compressor |
getInstance()
Gets the single instance of PCM.
|
boolean |
getModuleEnabled() |
static boolean |
getNoConnectionFault()
Gets the no connection fault.
|
static boolean |
getNoConnectionStickyFault()
Gets the no connection sticky fault.
|
static boolean |
getPressureSwitch()
Gets the pressure switch.
|
static boolean |
getShortFault()
Gets the short fault.
|
static boolean |
getShortStickyFault()
Gets the short sticky fault.
|
java.lang.String |
getSmartDashboardType() |
ITable |
getTable() |
static void |
initialize() |
void |
initTable(ITable subtable) |
void |
updateTable() |
private ITable m_table
private static final java.nio.ByteBuffer COMPRESSOR
private static Compressor m_instance
public static void initialize()
public static Compressor getInstance()
public void free()
public static double getCompressorCurrent()
public static void enableCompressor(boolean on)
on - the onpublic static boolean getCompressorEnabled()
public static boolean getPressureSwitch()
public static boolean getCurrentFault()
public static boolean getCurrentStickyFault()
public static boolean getShortFault()
public static boolean getShortStickyFault()
public static boolean getNoConnectionFault()
public static boolean getNoConnectionStickyFault()
public static void clearCompressorStickyFaults()
public void updateTable()
updateTable in interface UpdatingSendablepublic java.lang.String getSmartDashboardType()
getSmartDashboardType in interface Sendablepublic void enableModule()
enableModule in interface Modulepublic void disableModule()
disableModule in interface Modulepublic boolean getModuleEnabled()
getModuleEnabled in interface Module