public abstract class SolenoidBase extends SendableBase
Solenoid
and DoubleSolenoid
classes.Modifier and Type | Field and Description |
---|---|
protected int |
m_moduleNumber |
Constructor and Description |
---|
SolenoidBase(int moduleNumber)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
clearAllPCMStickyFaults()
Clear ALL sticky faults inside PCM that Compressor is wired to.
|
static void |
clearAllPCMStickyFaults(int moduleNumber)
Clear ALL sticky faults inside PCM that Compressor is wired to.
|
int |
getAll()
Read all 8 solenoids from the module used by this solenoid as a single byte.
|
static int |
getAll(int moduleNumber)
Read all 8 solenoids from the specified module as a single byte.
|
int |
getPCMSolenoidBlackList()
Reads complete solenoid blacklist for all 8 solenoids as a single byte.
|
static int |
getPCMSolenoidBlackList(int moduleNumber)
Reads complete solenoid blacklist for all 8 solenoids as a single byte.
|
boolean |
getPCMSolenoidVoltageFault()
The common highside solenoid voltage rail is too low, most likely a solenoid channel is
shorted.
|
static boolean |
getPCMSolenoidVoltageFault(int moduleNumber)
The common highside solenoid voltage rail is too low, most likely a solenoid channel is
shorted.
|
boolean |
getPCMSolenoidVoltageStickyFault()
If true, the common highside solenoid voltage rail is too low, most likely a solenoid channel
is shorted.
|
static boolean |
getPCMSolenoidVoltageStickyFault(int moduleNumber)
If true, the common highside solenoid voltage rail is too low, most likely a solenoid channel
is shorted.
|
addChild, free, getName, getSubsystem, setName, setName, setName, setSubsystem
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initSendable, setName
protected final int m_moduleNumber
public SolenoidBase(int moduleNumber)
moduleNumber
- The PCM CAN IDpublic static int getAll(int moduleNumber)
moduleNumber
- the module number to readpublic int getAll()
public static int getPCMSolenoidBlackList(int moduleNumber)
moduleNumber
- the module number to readclearAllPCMStickyFaults()
public int getPCMSolenoidBlackList()
clearAllPCMStickyFaults()
public static boolean getPCMSolenoidVoltageStickyFault(int moduleNumber)
moduleNumber
- the module number to readpublic boolean getPCMSolenoidVoltageStickyFault()
public static boolean getPCMSolenoidVoltageFault(int moduleNumber)
moduleNumber
- the module number to readpublic boolean getPCMSolenoidVoltageFault()
public static void clearAllPCMStickyFaults(int moduleNumber)
If a sticky fault is set, then it will be persistently cleared. Compressor drive maybe momentarily disable while flags are being cleared. Care should be taken to not call this too frequently, otherwise normal compressor functionality may be prevented.
If no sticky faults are set then this call will have no effect.
moduleNumber
- the module number to readpublic void clearAllPCMStickyFaults()
If a sticky fault is set, then it will be persistently cleared. Compressor drive maybe momentarily disable while flags are being cleared. Care should be taken to not call this too frequently, otherwise normal compressor functionality may be prevented.
If no sticky faults are set then this call will have no effect.