气动#

介绍#

VEX IQ 控制器可以通过气动模块类别的积木来控制 VEX IQ 气动系统。这些积木可以让控制器控制气动泵,并伸缩气缸。

以下是所有模块的列表:

设置气缸#

设置气缸 堆叠块用于伸出或缩回气缸。

set [Pneumatic1 v] [cylinder1 v] to [extend v]

参数

描述

气动

使用哪种气动系统,在设备窗口中配置。

圆柱

哪个气缸伸出或缩回,在设备窗口中配置。

状态

要设置的气缸状态:伸出缩回

例子

when started
[Extend and retract the Pneumatic Cylinder.]
set [Pneumatic1 v] [cylinder1 v] to [extend v]
wait (2) seconds
set [Pneumatic1 v] [cylinder1 v] to [retract v]

设置泵#

设置泵 模块用于打开或关闭气动泵。

set [Pneumatic1 v] pump to [on v]

参数

描述

气动

在“设备”窗口中配置要打开或关闭的气动泵。

状态

气动泵的状态要设置:

例子

when started
[Turn off the pneumatic pump after extending and retracting.]
set [Pneumatic1 v] [cylinder1 v] to [extend v]
wait (2) seconds
set [Pneumatic1 v] [cylinder1 v] to [retract v]
wait (1) seconds
set [Pneumatic1 v] pump to [off v]