public abstract class SolenoidBase extends SensorBase
Modifier and Type | Field and Description |
---|---|
protected Resource |
m_allocated |
protected int |
m_moduleNumber |
kAnalogInputChannels, kAnalogOutputChannels, kDigitalChannels, kPDPChannels, kPwmChannels, kRelayChannels, kSolenoidChannels, kSolenoidModules, 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() |
boolean |
getPCMSolenoidVoltageStickyFault() |
protected void |
set(int value,
int mask)
Set the value of a solenoid.
|
checkAnalogInputChannel, checkAnalogOutputChannel, checkDigitalChannel, checkPDPChannel, checkPWMChannel, checkRelayChannel, checkSolenoidChannel, checkSolenoidModule, free, getDefaultSolenoidModule, setDefaultSolenoidModule
protected int m_moduleNumber
protected Resource m_allocated
public SolenoidBase(int moduleNumber)
moduleNumber
- The PCM CAN IDprotected void set(int value, int mask)
value
- The value you want to set on the module.mask
- The channels you want to be affected.public byte getAll()
public byte getPCMSolenoidBlackList()
clearAllPCMStickyFaults()
public boolean getPCMSolenoidVoltageStickyFault()
public boolean getPCMSolenoidVoltageFault()
public void clearAllPCMStickyFaults()
Copyright © 2015. All rights reserved.