GPS坐标#
The GPS (Game Positioning System™) Sensor in VEXcode VR provides (X, Y) coordinates for navigation in the V5RC High Stakes Playground. It uses the VEX Field Code, a checkerboard pattern on the field’s interior, to determine position and heading. The sensor operates as an absolute position system, eliminating drift and the need for per-field calibration.
GPS传感器如何工作#
为了进行导航,GPS 传感器使用笛卡尔坐标系,场地中心指定为 (0, 0)。传感器本身是一个黑白摄像头,安装在机器人后部,面向后方,以便有效读取场地代码。
GPS 传感器以毫米或英寸为单位报告 Axel 旋转中心的 (X, Y) 坐标。这使得机器人能够在 VEXcode VR 环境中精确追踪其位置,从而在游戏或编程任务中实现精准的导航和定位。
识别场地上的 (X, Y) 坐标#
VEXcode VR 中的 V5RC 高风险球场 X 和 Y 轴位置的坐标范围约为 -1800 毫米至 1800 毫米。Axel 的起始位置取决于 所选起始位置。
中心位置或原点 (0,0) 位于场地的中心。
游戏元素的 (X, Y) 坐标#
墙桩#
场地角落#
梯子柱#
红环#
这张地图显示场地上有23个红环。第24个红环在项目开始时已预先加载到Axel上。