Pneumatic#
Introduction#
The VEX EXP Brain can control the CTE Pneumatic Solenoid using blocks from the Pneumatics category. These blocks allow the Brain to control the pneumatic pump and extend or retract pneumatic cylinders.
Below is a list of all blocks:
set pneumatic cylinder — Extends or retracts a pneumatic cylinder.
set pneumatic pump — Turns the pneumatic pump on or off.
set pneumatic cylinder#
The set pneumatic cylinder block extends or retracts a specified pneumatic cylinder in a pneumatic system.
设定 [Pneumatic 1 v] [cylinder1 v] 为 [extend v]
Parameter |
Description |
|---|---|
device |
Which Pneumatic Solenoid to use, configured in the Devices window. |
cylinder |
Specifies which cylinder to control:
|
state |
Sets the cylinder position:
|
Example
当开始
[Extend cylinder 1 at the start of the project.]
设定 [Pneumatic 1 v] [cylinder1 v] 为 [extend v]
[Retract cylinder 1 after 2 seconds.]
等待 (2) 秒
设定 [Pneumatic 1 v] [cylinder1 v] 为 [retract v]
set pneumatic pump#
The set pneumatic pump block turns the pneumatic pump on or off for a specified pneumatic system.
设定 [Pneumatic 1 v] 气泵为 [on v]
Parameter |
Description |
|---|---|
device |
Which Pneumatic Solenoid to use, configured in the Devices window. |
state |
Sets the air pump’s state:
|
Example
当开始
[Turn the pneumatic pump off at the start of the project.]
设定 [Pneumatic 1 v] 气泵为 [灭 v]
[Wait 2 seconds before turning the pneumatic pump on]
等待 (2) 秒
设定 [Pneumatic 1 v] 气泵为 [on v]