Minutero#

Introducción#

The VEX GO’s Brain has a timer that keeps track of elapsed time from the start of a project. It can be used to measure how long something takes, trigger events after a set time, or reset for new timing operations.

A continuación se muestra una lista de todos los bloques:

reiniciar el temporizador#

The reset timer stack block resets the timer to zero. This can be used to start timing a new part of a project without restarting the whole project.

El bloque de pila del temporizador de reinicio.#
reiniciar el temporizador

Parámetros

Descripción

Este bloque no tiene parámetros.

Ejemplo

cuando empezó :: hat events
[Build Used: Super Code Base 2.0]
[Reset the timer when the bumper is pressed.]
para siempre
borrar todas las filas
imprimir (temporizador en segundos) ▶
si <[bumper v] presionado?> entonces
reiniciar el temporizador :: custom-orientation

temporizador en segundos#

The timer in seconds reporter block reports the time since the timer was last reset, as a decimal in seconds. The timer is automatically reset at the start of a project. This block can be used to time how long it takes the robot to complete different actions.

El bloque reportero del temporizador en segundos.#
(temporizador en segundos)

Parámetros

Descripción

Este bloque no tiene parámetros.

Ejemplo

cuando empezó :: hat events
[Build Used: Super Code Base 2.0]
[Reset the timer when the bumper is pressed.]
para siempre
borrar todas las filas
imprimir (temporizador en segundos) ▶
si <[bumper v] presionado?> entonces
reiniciar el temporizador :: custom-orientation

cuando el temporizador#

The when timer hat block runs the attached stack of blocks after a specified amount of time.

El bloque de temporizador “cuando”.#
cuando el temporizador > [1] segundos

Parámetros

Descripción

tiempo

Especifica el número de segundos antes de que comience la pila de bloques adjunta. Acepta números enteros y decimales.

Ejemplo

cuando el temporizador > [2] segundos :: hat events
[Build Used: Code Base 2.0]
[Drive forward after 2 seconds.]
unidad [adelante v] para [100] [mm v] ▶