Pnuematics Auton Coding

I dont know how to program pnuematics to work normally in the C++ auton mode, it moves forward but then it doesn’t move back. This is what I have that does that. Pls help!!!

pneumatics_H.close;

sleep(.2);

pneumatics_H.open;

What platform are you using to code?

To use pneumatics, use one of the following:
For VexCode:
pneumatics_H.set(true) (or false)

For PROS:
pneumatics_H.set_value(true) (or false)

pneumatics_H.close() is used to set the solenoid to the closed state.

I would recommend checking out the VexCode or PROS API.

Edit: Fix a link

2 Likes

This is the format i use

Thanks, this will really Help