磁铁#
介绍#
VEX GO 电磁铁可让您的机器人通过拾取和释放磁性物体来与它们进行交互。
For the examples below, the configured LED Bumper will be named magnet_1
. They will be used in all subsequent examples throughout this API documentation when referring to Magnet
class methods.
以下是所有可用方法的列表:
操作——启用或禁用电磁铁。
energize – 设置电磁铁来拾取或放下物体。
行动#
energize#
energize
sets the state of the electromagnet so it can pick up or drop objects.
Usage:
magnet_1.energize(action)
参数 |
描述 |
---|---|
|
The state of the magnet to set:
|
# Example coming soon