Location#

Introduction#

The VEX VR Location Sensor can track the robot’s location and angle within the different playgrounds.

Below is a list of all available blocks:

position#

The position block returns the X or Y coordinate position of the VR Robot.

([X v] 位标为 [毫米 v])

Parameters

Description

axis

The axis to return the position of:

  • X
  • Y

units

The unit to represent the position:

  • mm – millimeters
  • inches
当开始 :: hat events
[Display the Y position after driving.]
驱动 [向前 v]
等待 (2) 秒
驱动停止
打印 ([Y v] 位标为 [毫米 v]) ▶

position angle#

The position angle block returns the angle of the robot in degrees.

(位标角度值)

Parameters

Description

This block has no parameters.

当开始 :: hat events
[Display the angle after turning.]
[右 v] 转
等待 (2) 秒
驱动停止
打印 (位标角度值) ▶