public class Solenoid extends SolenoidBase implements LiveWindowSendable
m_allocated, m_moduleNumberkAnalogInputChannels, kAnalogOutputChannels, kDigitalChannels, kPDPChannels, kPDPModules, kPwmChannels, kRelayChannels, kSolenoidChannels, kSolenoidModules, kSystemClockTicksPerMicrosecond| Constructor and Description |
|---|
Solenoid(int channel)
Constructor using the default PCM ID (0)
|
Solenoid(int moduleNumber,
int channel)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
free()
Destructor.
|
boolean |
get()
Read the current value of the solenoid.
|
java.lang.String |
getSmartDashboardType() |
ITable |
getTable() |
void |
initTable(ITable subtable)
Initializes a table for this sendable object.
|
boolean |
isBlackListed()
Check if solenoid is blacklisted.
|
void |
set(boolean on)
Set the value of a solenoid.
|
void |
startLiveWindowMode()
Start having this sendable object automatically respond to value changes
reflect the value on the table.
|
void |
stopLiveWindowMode()
Stop having this sendable object automatically respond to value changes.
|
void |
updateTable()
Update the table for this sendable object with the latest values.
|
clearAllPCMStickyFaults, getAll, getPCMSolenoidBlackList, getPCMSolenoidVoltageFault, getPCMSolenoidVoltageStickyFault, setcheckAnalogInputChannel, checkAnalogOutputChannel, checkDigitalChannel, checkPDPChannel, checkPDPModule, checkPWMChannel, checkRelayChannel, checkSolenoidChannel, checkSolenoidModule, getDefaultSolenoidModule, setDefaultSolenoidModulepublic Solenoid(int channel)
channel - The channel on the PCM to control (0..7).public Solenoid(int moduleNumber, int channel)
moduleNumber - The CAN ID of the PCM the solenoid is attached to.channel - The channel on the PCM to control (0..7).public void free()
free in class SolenoidBasepublic void set(boolean on)
on - Turn the solenoid output off or on.public boolean get()
public boolean isBlackListed()
SolenoidBase.clearAllPCMStickyFaults()public java.lang.String getSmartDashboardType()
getSmartDashboardType in interface Sendablepublic void updateTable()
updateTable in interface LiveWindowSendablepublic void startLiveWindowMode()
startLiveWindowMode in interface LiveWindowSendablepublic void stopLiveWindowMode()
stopLiveWindowMode in interface LiveWindowSendable