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.
设定 [Rotation 1 v] 位置为 [0] 度
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] 角度值)
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] 转位 [度 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] 速度 [rpm v] 值 :: custom-sensing)
Parameters |
Description |
|---|---|
device |
Which Rotation Sensor to use, configured in the Devices window. |
units |
The unit of measurement:
|