public final class Solenoid extends SolenoidBase implements ActuatorModule, LiveWindowSendable, BooleanSink, BooleanSource
SolenoidBase.SolenoidChannel, SolenoidBase.Value| Modifier and Type | Field and Description |
|---|---|
private SolenoidBase.SolenoidChannel |
m_channel |
private java.nio.ByteBuffer |
m_port |
private ITable |
m_table |
private ITableListener |
m_table_listener |
SOLENOID_OFF, SOLENOID_ON| Constructor and Description |
|---|
Solenoid(SolenoidBase.SolenoidChannel channel) |
| Modifier and Type | Method and Description |
|---|---|
void |
disableModule()
Disable the module
|
void |
enableModule()
Enable the module
|
SolenoidBase.Value |
get() |
SolenoidBase.SolenoidChannel |
getChannel() |
int |
getChannelNumber() |
boolean |
getModuleEnabled() |
java.lang.String |
getSmartDashboardType() |
boolean |
getState()
Get the value of this boolean source
|
ITable |
getTable() |
void |
initTable(ITable subtable) |
boolean |
isBlackListed()
Check if solenoid is blacklisted.
|
void |
makeSafe()
Make this actuator safe.
|
void |
set(SolenoidBase.Value value)
Sets the.
|
void |
setState(boolean value)
Set the solenoid with a boolean value.
|
void |
startLiveWindowMode() |
void |
stopLiveWindowMode() |
void |
updateTable() |
clearAllPCMStickyFaults, freeChannel, get, getPCMSolenoidBlacklist, getPCMSolenoidVoltageFault, getPCMSolenoidVoltageStickyFault, initChannel, setclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbindBoolean, bindBooleanprivate final java.nio.ByteBuffer m_port
private final SolenoidBase.SolenoidChannel m_channel
private ITable m_table
private ITableListener m_table_listener
public Solenoid(SolenoidBase.SolenoidChannel channel)
public int getChannelNumber()
public SolenoidBase.SolenoidChannel getChannel()
public void setState(boolean value)
setState in interface BooleanSinkvalue - on or offpublic void set(SolenoidBase.Value value)
set in class SolenoidBasevalue - the valuepublic SolenoidBase.Value get()
get in class SolenoidBasepublic boolean getState()
BooleanSourcegetState in interface BooleanSourcepublic boolean isBlackListed()
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