Rotation Sensor#

Introduction#

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

The VEX V5 Rotation Sensor.

Below is a list of available blocks:

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:

  • degrees
  • turns

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:

  • rpm – revolutions per minute
  • dps – degrees per second