public class DoubleSolenoid extends SolenoidBase implements LiveWindowSendable
| Modifier and Type | Class and Description |
|---|---|
static class |
DoubleSolenoid.Value
Possible values for a DoubleSolenoid
|
m_allocated, m_moduleNumberkAnalogInputChannels, kAnalogOutputChannels, kDigitalChannels, kPDPChannels, kPwmChannels, kRelayChannels, kSolenoidChannels, kSolenoidModules, kSystemClockTicksPerMicrosecond| Constructor and Description |
|---|
DoubleSolenoid(int forwardChannel,
int reverseChannel)
Constructor.
|
DoubleSolenoid(int moduleNumber,
int forwardChannel,
int reverseChannel)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
free()
Destructor.
|
DoubleSolenoid.Value |
get()
Read the current value of the solenoid.
|
String |
getSmartDashboardType() |
edu.wpi.first.wpilibj.tables.ITable |
getTable() |
void |
initTable(edu.wpi.first.wpilibj.tables.ITable subtable)
Initializes a table for this sendable object.
|
boolean |
isFwdSolenoidBlackListed()
Check if the forward solenoid is blacklisted.
|
boolean |
isRevSolenoidBlackListed()
Check if the reverse solenoid is blacklisted.
|
void |
set(DoubleSolenoid.Value value)
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, checkPWMChannel, checkRelayChannel, checkSolenoidChannel, checkSolenoidModule, getDefaultSolenoidModule, setDefaultSolenoidModulepublic DoubleSolenoid(int forwardChannel,
int reverseChannel)
forwardChannel - The forward channel number on the PCM.reverseChannel - The reverse channel number on the PCM.public DoubleSolenoid(int moduleNumber,
int forwardChannel,
int reverseChannel)
moduleNumber - The module number of the solenoid module to use.forwardChannel - The forward channel on the module to control.reverseChannel - The reverse channel on the module to control.public void free()
free in class SensorBasepublic void set(DoubleSolenoid.Value value)
value - The value to set (Off, Forward, Reverse)public DoubleSolenoid.Value get()
public boolean isFwdSolenoidBlackListed()
SolenoidBase.clearAllPCMStickyFaults()public boolean isRevSolenoidBlackListed()
SolenoidBase.clearAllPCMStickyFaults()public String getSmartDashboardType()
getSmartDashboardType in interface Sendablepublic void initTable(edu.wpi.first.wpilibj.tables.ITable subtable)
public edu.wpi.first.wpilibj.tables.ITable getTable()
public void updateTable()
updateTable in interface LiveWindowSendablepublic void startLiveWindowMode()
startLiveWindowMode in interface LiveWindowSendablepublic void stopLiveWindowMode()
stopLiveWindowMode in interface LiveWindowSendableCopyright © 2015. All rights reserved.