public abstract class SolenoidBase extends SensorBase
Solenoid
and DoubleSolenoid
classes.Modifier and Type | Field and Description |
---|---|
protected byte |
m_moduleNumber |
kAnalogInputChannels, kAnalogOutputChannels, kDigitalChannels, kPCMModules, kPDPChannels, kPDPModules, kPwmChannels, kRelayChannels, kSolenoidChannels, kSystemClockTicksPerMicrosecond
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.
|
byte |
getAll()
Read all 8 solenoids from the module used by this solenoid as a single byte.
|
byte |
getPCMSolenoidBlackList()
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.
|
boolean |
getPCMSolenoidVoltageStickyFault()
If true, the common highside solenoid voltage rail is too low, most likely a solenoid channel
is shorted.
|
checkAnalogInputChannel, checkAnalogOutputChannel, checkDigitalChannel, checkPDPChannel, checkPDPModule, checkPWMChannel, checkRelayChannel, checkSolenoidChannel, checkSolenoidModule, free, getDefaultSolenoidModule, setDefaultSolenoidModule
protected final byte m_moduleNumber
public SolenoidBase(int moduleNumber)
moduleNumber
- The PCM CAN IDpublic byte getAll()
public byte getPCMSolenoidBlackList()
clearAllPCMStickyFaults()
public boolean getPCMSolenoidVoltageStickyFault()
public boolean getPCMSolenoidVoltageFault()
public 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.