Imán#

imán.energizar()#

The magnet.energize(action) command is used to set the VR Robot Electromagnet’s current action.

Este es un comando sin espera y permite que cualquier comando posterior se ejecute sin demora.

Parámetros

Descripción

acción

The set status of the VR Robot Electromagnet as BOOST or DROP.

  • BOOST - will attract a nearby magnetic object to the Electromagnet.

  • DROP - will release any object the Electromagnet is holding.

Devoluciones: Ninguna.

def main():
    # Set the magnet to boost.
    magnet.energize(BOOST)
    # Wait 5 seconds.
    wait(5, SECONDS)
    # Set magnet to drop.
    magnet.energize(DROP)