public class DoubleSolenoid extends SolenoidBase implements Sendable
The DoubleSolenoid class is typically used for pneumatics solenoids that have two positions controlled by two separate channels.
| Modifier and Type | Class and Description |
|---|---|
static class |
DoubleSolenoid.Value
Possible values for a DoubleSolenoid.
|
m_moduleNumber| 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.
|
void |
initSendable(SendableBuilder builder)
Initializes 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.
|
clearAllPCMStickyFaults, clearAllPCMStickyFaults, getAll, getAll, getPCMSolenoidBlackList, getPCMSolenoidBlackList, getPCMSolenoidVoltageFault, getPCMSolenoidVoltageFault, getPCMSolenoidVoltageStickyFault, getPCMSolenoidVoltageStickyFaultaddChild, getName, getSubsystem, setName, setName, setName, setSubsystemclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetName, getSubsystem, setName, setName, setSubsystempublic DoubleSolenoid(int forwardChannel, int reverseChannel)
forwardChannel - The forward channel number on the PCM (0..7).reverseChannel - The reverse channel number on the PCM (0..7).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 (0..7).reverseChannel - The reverse channel on the module to control (0..7).public void free()
free in class SendableBasepublic 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 void initSendable(SendableBuilder builder)
SendableSendable object.initSendable in interface Sendablebuilder - sendable builder