Magnet#
Introduction#
The VEX GO Electromagnet lets your robot interact with magnetic objects by picking them up and releasing them.
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.
Below is a list of all available methods:
Actions – Enable or disable the Electromagnet.
energize – Sets the electromagnet to pick up or drop objects.
Actions#
energize#
energize
sets the state of the electromagnet so it can pick up or drop objects.
Usage:
magnet_1.energize(action)
Parameters |
Description |
---|---|
|
The state of the magnet to set:
|
# Example coming soon