磁铁#
Introduction#
The Electromagnet lets your robot interact with magnetic objects by picking them up and releasing them.
Below is the available Magnet block:
energize magnet – Sets the electromagnet to pick up or drop objects.
energize magnet#
The energize magnet block is used to set the state of the electromagnet so it can pick up or drop objects.
使 [Magnet v] 加磁 [boost v]
Parameters |
Description |
|---|---|
state |
The state to charge the magnet to:
|
当开始 :: hat events
[Pick up a disk with the Electromagnet in the Disk Mover playground.]
驱动 [向前 v] [800] [毫米 v] ▶
使 [Magnet v] 加磁 [boost v]
驱动 [反 v] [800] [毫米 v] ▶