WPILib 2012
WPILibRoboticsLibraryforFRC
Public Types | Public Member Functions
DoubleSolenoid Class Reference

#include <DoubleSolenoid.h>

Inheritance diagram for DoubleSolenoid:
SolenoidBase SensorBase ErrorBase

List of all members.

Public Types

enum  Value { kOff, kForward, kReverse }

Public Member Functions

 DoubleSolenoid (UINT32 forwardChannel, UINT32 reverseChannel)
 DoubleSolenoid (UINT8 moduleNumber, UINT32 forwardChannel, UINT32 reverseChannel)
virtual ~DoubleSolenoid ()
virtual void Set (Value value)
virtual Value Get ()

Detailed Description

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.


Constructor & Destructor Documentation

DoubleSolenoid::DoubleSolenoid ( UINT32  forwardChannel,
UINT32  reverseChannel 
) [explicit]

Constructor.

Parameters:
forwardChannelThe forward channel on the module to control.
reverseChannelThe reverse channel on the module to control.
DoubleSolenoid::DoubleSolenoid ( UINT8  moduleNumber,
UINT32  forwardChannel,
UINT32  reverseChannel 
)

Constructor.

Parameters:
moduleNumberThe solenoid module (1 or 2).
forwardChannelThe forward channel on the module to control.
reverseChannelThe reverse channel on the module to control.
DoubleSolenoid::~DoubleSolenoid ( ) [virtual]

Destructor.


Member Function Documentation

DoubleSolenoid::Value DoubleSolenoid::Get ( ) [virtual]

Read the current value of the solenoid.

Returns:
The current value of the solenoid.
void DoubleSolenoid::Set ( Value  value) [virtual]

Set the value of a solenoid.

Parameters:
valueMove the solenoid to forward, reverse, or don't move it.

The documentation for this class was generated from the following files:
 All Classes Functions Variables