|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.wpi.first.wpilibj.SensorBase
edu.wpi.first.wpilibj.SolenoidBase
edu.wpi.first.wpilibj.DoubleSolenoid
public class DoubleSolenoid
DoubleSolenoid class for running 2 channels of high voltage Digital Output (9472 module). The DoubleSolenoid class is typically used for pneumatics solenoids that have two positions controlled by two separate channels.
| Nested Class Summary | |
|---|---|
static class |
DoubleSolenoid.Value
Possible values for a DoubleSolenoid |
| Field Summary |
|---|
| Fields inherited from class edu.wpi.first.wpilibj.SolenoidBase |
|---|
m_allocated, m_moduleNumber |
| Fields inherited from class edu.wpi.first.wpilibj.SensorBase |
|---|
kAnalogChannels, kAnalogModules, kDigitalChannels, kPwmChannels, kRelayChannels, kSolenoidChannels, kSolenoidModules, kSystemClockTicksPerMicrosecond, n_simProperties |
| Constructor Summary | |
|---|---|
DoubleSolenoid(int forwardChannel,
int reverseChannel)
Constructor. |
|
DoubleSolenoid(int moduleNumber,
int forwardChannel,
int reverseChannel)
Constructor. |
|
| Method Summary | |
|---|---|
void |
free()
Destructor. |
DoubleSolenoid.Value |
get()
Read the current value of the solenoid. |
void |
set(DoubleSolenoid.Value value)
Set the value of a solenoid. |
| Methods inherited from class edu.wpi.first.wpilibj.SolenoidBase |
|---|
getAll, getAllFromDefaultModule, getAllFromModule, set |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DoubleSolenoid(int forwardChannel,
int reverseChannel)
forwardChannel - The forward channel on the module to control.reverseChannel - The reverse channel on the module to control.
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.| Method Detail |
|---|
public void free()
free in class SolenoidBasepublic void set(DoubleSolenoid.Value value)
value - Move the solenoid to forward, reverse, or don't move it.public DoubleSolenoid.Value get()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||