Transmisión#
Introduction#
The VEX GO Drivetrain uses a built-in Inertial Sensor to support precise forward, reverse, and turning movements. These blocks allow the robot to move continuously or for set distances, rotate by degrees or to a heading, and respond to changes in its rotational orientation.
The Drivetrain category also includes configuration blocks that let you set drive and turn speeds, define stopping behavior, apply timeouts to avoid execution stalls, and manually update the robot’s heading or rotation values.
Below is a list of all available blocks:
Actions – Move and turn the robot.
drive – Drives the robot continuously forward or in reverse.
drive for – Drives the robot for a set distance.
drive until – Drive until a specified condition.
turn – Turns the robot continuously left or right.
turn for – Turns the robot a specific number of degrees.
turn to heading – Turns the robot to face a specific absolute heading.
turn to rotation – Turns the robot to reach a specific cumulative rotation.
stop driving – Stops all robot movement.
Settings – Adjust drivetrain settings.
set drive velocity – Sets the speed for all drive blocks.
set turn velocity – Sets the speed for all turn blocks.
set drive stopping – Configures the stopping behavior after movement ends.
set drive timeout – Limits how long drive blocks wait to reach their goal.
set drive heading – Manually sets the robot’s gyro heading value.
set drive rotation – Manually sets the robot’s cumulative rotation value.
Values – Check movement status.
drive is done? – Returns a Boolean indicating whether the drivetrain is no longer moving.
drive heading – Returns the drivetrain’s heading angle (0 to 359.99 degrees).
drive rotation – Returns how much the drivetrain has turned since the project started.
drive velocity – Returns the drivetrain’s current velocity in %.
Actions#
drive#
The drive block moves the drivetrain forward or in reverse using the current drive velocity. This block runs continuously until another Drivetrain block interrupts it or the project stops.
unidad [adelante v]
Parameters |
Description |
---|---|
direction |
The direction in which the robot drives, which can be one of the following:
|
Example
cuando empezó :: hat events
[Drive forward, then stop.]
unidad [adelante v]
esperar (2) segundos
deja de conducir
drive for#
The drive for block moves the drivetrain forward or in reverse for a specified distance using the current drive velocity.
unidad [adelante v] para (100) [mm v] ▶
Parameters |
Description |
---|---|
direction |
The direction in which the robot drives, which can be one of the following:
|
distance |
The distance the robot drives, as an integer or decimal. |
unit |
The unit of measurement, which can be one of the following:
|
expanding arrow |
By default, this is a waiting block, so the drivetrain will finish moving before running the next block. To make the drivetrain start moving and immediately run the next block right away, expand the block to say and don’t wait. |
Example
Example coming soon!
drive until#
The drive until block is used to move the drivetrain indefinitely using the current drive velocity until the Eye Sensor detects an object or the robot crashes into an object or wall.
Conducir [adelante v] al [choque v] ▶
Parameters |
Description |
---|---|
direction |
The direction in which the robot drives, which can be one of the following:
|
condition |
The condition that stops the drivetrain:
|
expanding arrow |
By default, this is a waiting block, so the drivetrain will finish moving before running the next block. To make the drivetrain start moving and immediately run the next block right away, expand the block to say and don’t wait. |
Example
Example coming soon!
turn#
The turn block turns the drivetrain continuously left or right using the current turn velocity. The drivetrain will keep turning until another Drivetrain block runs or the project stops.
turno [derecha v]
Parameters |
Description |
---|---|
direction |
The direction in which the robot turns, which can be one of the following:
|
Example
Example coming soon!
turn for#
The turn for block turns the drivetrain left or right for a specific number of degrees using the current turn velocity.
girar [derecha v] por (90) grado ▶
Parameters |
Description |
---|---|
direction |
The direction in which the robot turns, which can be one of the following:
|
angle |
The number of degrees the robot turns, as an integer or decimal. |
expanding arrow |
By default, this is a waiting block, so the drivetrain will finish turning before running the next block. To make the drivetrain start turning and immediately run the next block right away, expand the block to say and don’t wait. |
Example
Example coming soon!
turn to heading#
The turn to heading block turns the drivetrain to face a specific heading using the current turn velocity.
girar hacia el rumbo (90) grados ▶
Parameters |
Description |
---|---|
heading |
The absolute heading the drivetrain will turn to, from -360 to 360 degrees. |
expanding arrow |
By default, this is a waiting block, so the drivetrain will finish turning before running the next block. To make the drivetrain start turning and immediately run the next block right away, expand the block to say and don’t wait. |
Example
Example coming soon!
turn to rotation#
The turn to rotation block turns the drivetrain to face a specific rotational value using the current turn velocity.
girar a rotación (90) grados ▶
Parameters |
Description |
---|---|
rotation |
The cumulative rotation value the robot will turn to, as an integer or decimal. |
expanding arrow |
By default, this is a waiting block, so the drivetrain will finish turning before running the next block. To make the drivetrain start turning and immediately run the next block right away, expand the block to say and don’t wait. |
Example
Example coming soon!
stop driving#
The stop driving block immediately stops all movement of the drivetrain.
deja de conducir
Parameters |
Description |
---|---|
This block has no parameters. |
Example
Example coming soon!
set drive velocity#
The set drive velocity block sets the default movement speed as a percentage for all subsequent movement blocks in the project.
establecer la velocidad de accionamiento al (50)%
Parameters |
Description |
---|---|
velocity |
Sets the default movement velocity from 0% to 100%. |
Example
Example coming soon!
set turn velocity#
The set turn velocity block sets the default velocity as a percentage for all subsequent turn blocks in the project.
establecer la velocidad de giro al (50)%
Parameters |
Description |
---|---|
velocity |
Sets the default turn velocity from 0% to 100%. |
Example
Example coming soon!
set drive stopping#
The set drive stopping block sets how the drivetrain behaves when drivetrain movement ends.
Establecer la detención de la unidad en [freno v]
Parameters |
Description |
---|---|
stopping behavior |
Sets how the drivetrain stops, which can be one of the following:
|
Example
Example coming soon!
set drive timeout#
The set drive timeout block sets a time limit for how long a Drivetrain block will wait to reach its target. If the robot cannot complete the movement within the set time, it will stop automatically and continue with the next block.
Note: The Drivetrain’s time limit is used to prevent Drivetrain blocks that do not reach their target position from stopping the execution of other blocks in the stack.
Establezca el tiempo de espera de la unidad en (1) segundos
Parameters |
Description |
---|---|
time |
The maximum number of seconds a Drivetrain block will run before stopping and moving to the next block. |
Example
Example coming soon!
set drive heading#
The set drive heading block sets the Inertial Sensor’s current heading to a specified value.
establecer el rumbo de la unidad a (0) grados
Parameters |
Description |
---|---|
heading |
The heading value to assign, in degrees. |
Example
Example coming soon!
set drive rotation#
The set drive rotation block sets the Inertial Sensor’s current cumulative rotation value.
establecer la rotación de la unidad a (0) grados
Parameters |
Description |
---|---|
rotation |
The cumulative rotation value to assign, in degrees. |
Example
Example coming soon!
Values#
drive is done?#
The drive is done? block returns a Boolean indicating whether the drivetrain is not moving.
True - The drivetrain is not moving.
False - The drivetrain is moving.
<¿La unidad está lista?>
Parameters |
Description |
---|---|
This block has no parameters. |
Example
Example coming soon!
drive heading#
The drive heading block returns the drivetrain’s heading angle in a range from 0 to 359.99 degrees.
(rumbo de la unidad en grados)
Parameters |
Description |
---|---|
This block has no parameters. |
Example
Example coming soon!
drive rotation#
The drive rotation block returns how much the drivetrain has turned since the project started, in degrees: positive for clockwise, negative for counterclockwise.
(rotación de la unidad en grados)
Parameters |
Description |
---|---|
This block has no parameters. |
Example
Example coming soon!
drive velocity#
The drive velocity block returns the current speed of the drivetrain in a range from -100% to 100%.
(velocidad de accionamiento en %)
Parameters |
Description |
---|---|
This block has no parameters. |
Example
Example coming soon!