public final class DoubleSolenoid extends SolenoidBase implements ActuatorModule, LiveWindowSendable
SolenoidBase.SolenoidChannel, SolenoidBase.Value| Modifier and Type | Field and Description |
|---|---|
private SolenoidBase.SolenoidChannel |
m_forwardChannel |
private java.nio.ByteBuffer |
m_forwardPort |
private SolenoidBase.SolenoidChannel |
m_reverseChannel |
private java.nio.ByteBuffer |
m_reversePort |
private ITable |
m_table |
private ITableListener |
m_table_listener |
SOLENOID_OFF, SOLENOID_ON| Constructor and Description |
|---|
DoubleSolenoid(SolenoidBase.SolenoidChannel forwardChannel,
SolenoidBase.SolenoidChannel reverseChannel) |
| Modifier and Type | Method and Description |
|---|---|
void |
disableModule()
Disable the module
|
void |
enableModule()
Enable the module
|
SolenoidBase.Value |
get() |
SolenoidBase.SolenoidChannel |
getForwardChannel() |
boolean |
getModuleEnabled() |
SolenoidBase.SolenoidChannel |
getReverseChannel() |
java.lang.String |
getSmartDashboardType() |
ITable |
getTable() |
void |
initTable(ITable subtable) |
boolean |
isFwdSolenoidBlackListed()
Check if the forward solenoid is blacklisted.
|
boolean |
isRevSolenoidBlackListed()
Check if the reverse solenoid is blacklisted.
|
void |
makeSafe()
Make this actuator safe.
|
void |
set(SolenoidBase.Value value)
Sets the.
|
void |
startLiveWindowMode() |
void |
stopLiveWindowMode() |
void |
updateTable() |
clearAllPCMStickyFaults, freeChannel, get, getPCMSolenoidBlacklist, getPCMSolenoidVoltageFault, getPCMSolenoidVoltageStickyFault, initChannel, setprivate final SolenoidBase.SolenoidChannel m_forwardChannel
private final SolenoidBase.SolenoidChannel m_reverseChannel
private final java.nio.ByteBuffer m_forwardPort
private final java.nio.ByteBuffer m_reversePort
private ITable m_table
private ITableListener m_table_listener
public DoubleSolenoid(SolenoidBase.SolenoidChannel forwardChannel, SolenoidBase.SolenoidChannel reverseChannel)
public SolenoidBase.SolenoidChannel getForwardChannel()
public SolenoidBase.SolenoidChannel getReverseChannel()
public void set(SolenoidBase.Value value)
set in class SolenoidBasevalue - the valuepublic SolenoidBase.Value get()
get in class SolenoidBasepublic boolean isFwdSolenoidBlackListed()
SolenoidBase.clearAllPCMStickyFaults(int)public boolean isRevSolenoidBlackListed()
SolenoidBase.clearAllPCMStickyFaults(int)public java.lang.String getSmartDashboardType()
getSmartDashboardType in interface Sendablepublic void updateTable()
updateTable in interface UpdatingSendablepublic void startLiveWindowMode()
startLiveWindowMode in interface LiveWindowSendablepublic void stopLiveWindowMode()
stopLiveWindowMode in interface LiveWindowSendablepublic void enableModule()
enableModule in interface Modulepublic void disableModule()
disableModule in interface Modulepublic void makeSafe()
makeSafe in interface ActuatorModulepublic boolean getModuleEnabled()
getModuleEnabled in interface Module