ADBLib  0.5
A simple library for rapid robot code development
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros Pages
ADBLib::SimplePneumatic Class Reference

#include <SimplePneumatic.h>

Public Member Functions

 SimplePneumatic ()
 Constructor. More...
 
 SimplePneumatic (DoubleSolenoid *newDouble)
 Constructor; configures this pneumatic as a double solenoid. More...
 
 SimplePneumatic (Solenoid *newSingle)
 Constructor; configures this pneumatic as a single solenoid. More...
 
void set (DoubleSolenoid::Value value)
 Sets the value for this pneumatic; if it's a single solenoid, not kStop values are automatically adjusted. More...
 
void set (int dir)
 Smart set – automatically converts from an integer to a DoubleSolenoid::Value. More...
 
void setDouble (DoubleSolenoid *newDouble)
 Sets the solenoid as a double solenoid. More...
 
void setSingle (Solenoid *newSingle)
 Sets the solenoid as a single solenoid. More...
 

Protected Types

enum  PneumaticType { single, dual }
 

Protected Attributes

DoubleSolenoid * dPneumatic
 
Solenoid * sPneumatic
 
PneumaticType type
 
bool invert
 

Member Enumeration Documentation

Enumerator
single 
dual 

Constructor & Destructor Documentation

ADBLib::SimplePneumatic::SimplePneumatic ( )

Constructor.

ADBLib::SimplePneumatic::SimplePneumatic ( DoubleSolenoid *  newDouble)

Constructor; configures this pneumatic as a double solenoid.

Parameters
newDoubleA pointer to a DoubleSolenoid object.

Here is the call graph for this function:

ADBLib::SimplePneumatic::SimplePneumatic ( Solenoid *  newSingle)

Constructor; configures this pneumatic as a single solenoid.

Parameters
newSingleA pointer to a solenoid object.

Here is the call graph for this function:

Member Function Documentation

void ADBLib::SimplePneumatic::set ( DoubleSolenoid::Value  value)

Sets the value for this pneumatic; if it's a single solenoid, not kStop values are automatically adjusted.

Parameters
valueA DoubleSolenoid::Value as defined by DoubleSolenoid

Here is the caller graph for this function:

void ADBLib::SimplePneumatic::set ( int  dir)

Smart set – automatically converts from an integer to a DoubleSolenoid::Value.

Parameters
dirThe direction. Negative is reverse, 0 is off, and positive is forward.

Here is the call graph for this function:

void ADBLib::SimplePneumatic::setDouble ( DoubleSolenoid *  newDouble)

Sets the solenoid as a double solenoid.

Parameters
newDoubleA pointer to a DoubleSolenoid.

Here is the caller graph for this function:

void ADBLib::SimplePneumatic::setSingle ( Solenoid *  newSingle)

Sets the solenoid as a single solenoid.

Parameters
newSingleA pointer to a Solenoid.

Here is the caller graph for this function:

Member Data Documentation

DoubleSolenoid* ADBLib::SimplePneumatic::dPneumatic
protected
bool ADBLib::SimplePneumatic::invert
protected
Solenoid* ADBLib::SimplePneumatic::sPneumatic
protected
PneumaticType ADBLib::SimplePneumatic::type
protected

The documentation for this class was generated from the following files: