VEXcode IQ C++ Unofficial documentation for version 3.0.4.1
Loading...
Searching...
No Matches
vex::pneumatic Class Reference
Inheritance diagram for vex::pneumatic:
vex::device

Public Member Functions

 pneumatic (int32_t index, bool bPumpEnable=true)
 Creates a new pneumatic object on the port specified by the parameter.
 
bool installed ()
 
void extend (cylinderType id)
 extend a pneumatic cylinder
 
void retract (cylinderType id)
 retract a pneumatic cylinder
 
void pumpOn ()
 Turn on the pneumatic air pump.
 
void pumpOff ()
 Turn off the pneumatic air pump.
 
void pump (bool state)
 Set the pneumatic air pump to on or off.
 
- Public Member Functions inherited from vex::device
 device (int32_t index)
 
IQ_DeviceType type ()
 
int32_t index ()
 
void init (int32_t index)
 
virtual int32_t value ()
 
int32_t readDigitalPin ()
 
int32_t readAnalogPin ()
 

Protected Member Functions

uint32_t status ()
 
- Protected Member Functions inherited from vex::device
void setPollInterval (int32_t value)
 
bool pollValid (bool bSave)
 

Additional Inherited Members

- Protected Attributes inherited from vex::device
int16_t _index
 

Detailed Description

Definition at line 26 of file vex_pneumatic.h.

Constructor & Destructor Documentation

◆ pneumatic()

vex::pneumatic::pneumatic ( int32_t index,
bool bPumpEnable = true )

Creates a new pneumatic object on the port specified by the parameter.

Parameters
portindex to the brain port.
bPumpEnableoptional parameter to enable or disable the air pump

Member Function Documentation

◆ extend()

void vex::pneumatic::extend ( cylinderType id)

extend a pneumatic cylinder

Parameters
idThe cylinder to extend

◆ installed()

bool vex::pneumatic::installed ( )
virtual

Reimplemented from vex::device.

◆ pump()

void vex::pneumatic::pump ( bool state)

Set the pneumatic air pump to on or off.

Parameters
statetrue to turn on the air pump, false to turn it off

◆ retract()

void vex::pneumatic::retract ( cylinderType id)

retract a pneumatic cylinder

Parameters
idThe cylinder to retract

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