Skip to content

Commit 7189fcb

Browse files
committed
edit pneumatic example
1 parent 271b1f2 commit 7189fcb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/frc/robot/examples/PneumaticsExamples.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,14 @@ public final class PneumaticsExamples {
1818
* Solenoids can be used to controller pneumatic cylinders are set to true or false
1919
*/
2020
private void Solenoid_Example() {
21+
// Pneumatics can be used to extend and retract, or to grab and release for example
2122
final int digialChannelOnRoboRio = 2;
2223
final Solenoid piston = new Solenoid(PneumaticsModuleType.REVPH, digialChannelOnRoboRio);
2324

24-
// Extend
25+
// Extend or Grip
2526
piston.set(true);
2627

27-
// Retract
28+
// Retract or Open
2829
piston.set(false);
2930
}
3031

0 commit comments

Comments
 (0)