Magnet#
Introduction#
The VEX GO 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.
energize [magnet v] to [boost v]
Parameters |
Description |
|---|---|
magnet |
The magnet to use, configured in the Devices window. |
state |
The state to charge the magnet to:
|
Example
aria-description goes here#
when started :: hat events
[Build Used: Super Code Base 2.0]
[Drop an attached Disk.]
drive [forward v] for [200] [mm v] ▶
energize [magnet v] to [drop v]
drive [reverse v] for [200] [mm v] ▶