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 temporizador — Reinicia el temporizador a cero.
timer in seconds — Reports how much time has passed.
cuando el temporizador — Ejecuta una pila de bloques después de que el temporizador exceda un tiempo especificado.
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.
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.
(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.
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] ▶