Rotation Sensor#
Introduction#
The V5 Rotation Sensor measures precise rotational movement, position, and speed relative to its position on the robot.

Below is a list of available blocks:
set Rotation Sensor position – Sets the current position of the Rotation Sensor to a specific value.
Rotation Sensor angle – Returns the current angle of the sensor between 0 and 359.99 degrees.
Rotation Sensor position – Returns the total rotational position in degrees or turns.
Rotation Sensor velocity – Returns how fast the sensor is rotating.
set Rotation Sensor position#
The set Rotation Sensor position block sets the current position of the Rotation Sensor to a value in degrees.
Establezca la posición [Rotation 1 v] a [0] grado
Parameters |
Description |
|---|---|
device |
Which Rotation Sensor to use, configured in the Devices window. |
position |
The position to set the Rotation Sensor to. |
Rotation Sensor angle#
The Rotation Sensor angle block returns the current angle of the sensor between 0 and 359.99 degrees.
([Rotation 1 v] ángulos en grados)
Parameters |
Description |
|---|---|
device |
Which Rotation Sensor to use, configured in the Devices window. |
Rotation Sensor position#
The Rotation Sensor position block returns the total rotational position in degrees or turns.
([Rotation 1 v] posición en [grados v] :: custom-sensing)
Parameters |
Description |
|---|---|
device |
Which Rotation Sensor to use, configured in the Devices window. |
units |
The unit of measurement:
|
Rotation Sensor velocity#
The Rotation Sensor velocity block returns how fast the sensor is rotating.
([Rotation 1 v] velocidad en [rpm v] :: custom-sensing)
Parameters |
Description |
|---|---|
device |
Which Rotation Sensor to use, configured in the Devices window. |
units |
The unit of measurement:
|