WPILib 2012
WPILibRoboticsLibraryforFRC
|
#include <Solenoid.h>
Public Member Functions | |
Solenoid (UINT32 channel) | |
Solenoid (UINT8 moduleNumber, UINT32 channel) | |
virtual | ~Solenoid () |
virtual void | Set (bool on) |
virtual bool | Get () |
Solenoid class for running high voltage Digital Output (9472 module).
The Solenoid class is typically used for pneumatics solenoids, but could be used for any device within the current spec of the 9472 module.
Solenoid::Solenoid | ( | UINT32 | channel | ) | [explicit] |
Constructor.
channel | The channel on the solenoid module to control (1..8). |
Solenoid::Solenoid | ( | UINT8 | moduleNumber, |
UINT32 | channel | ||
) |
Constructor.
moduleNumber | The solenoid module (1 or 2). |
channel | The channel on the solenoid module to control (1..8). |
Solenoid::~Solenoid | ( | ) | [virtual] |
Destructor.
bool Solenoid::Get | ( | ) | [virtual] |
Read the current value of the solenoid.
void Solenoid::Set | ( | bool | on | ) | [virtual] |
Set the value of a solenoid.
on | Turn the solenoid output off or on. |