VEX V5 C++ API
Public Member Functions | List of all members
vex::pneumatics Class Reference

Use this class when programming with a pneumatics device. More...

Inherits vex::digital_out.

Public Member Functions

 pneumatics (triport::port &port)
 Creates a new pneumatics object on the port specified in the parameter. More...
 
 ~pneumatics ()
 
void open ()
 Sets the pneumatics device to the solenoid open state allowing air to flow into the cylinder. More...
 
void close ()
 Sets the pneumatics device to the solenoid close state stopping air flowing into the cylinder. More...
 
- Public Member Functions inherited from vex::digital_out
 digital_out (triport::port &port)
 Creates a new digital out object on the port specified in the parameter. More...
 
 ~digital_out ()
 
int32_t value ()
 Gets the value of the digital-out device. More...
 
void set (bool value)
 Sets the digital-out device to a Boolean value. More...
 
 operator int ()
 
 operator bool ()
 
void operator= (const int32_t value)
 Sets the output value of the digital-out device. More...
 

Detailed Description

Use this class when programming with a pneumatics device.

Constructor & Destructor Documentation

◆ pneumatics()

vex::pneumatics::pneumatics ( triport::port port)

Creates a new pneumatics object on the port specified in the parameter.

Parameters
portA reference to a three wire port.

◆ ~pneumatics()

vex::pneumatics::~pneumatics ( )

Member Function Documentation

◆ open()

void vex::pneumatics::open ( )

Sets the pneumatics device to the solenoid open state allowing air to flow into the cylinder.

◆ close()

void vex::pneumatics::close ( )

Sets the pneumatics device to the solenoid close state stopping air flowing into the cylinder.