How to set a piston for FRC wpi vs code java

And with what code can I regulate the speed on a robot

@paolo0923 If you mean a standard pneumatic piston connected to a PCM and (via CAN bus) to a RoboRIO, take a look at the new FRC Docs page on Pnuematics. If this doesn’t answer your question, please provide more details so we can understand your issue.