GPS坐标#
The GPS (Game Positioning System™) Sensor in VEXcode VR provides (X, Y) coordinates for navigation in the V5RC 25-26 Push Back Playground. It uses the GPS 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 传感器以毫米或英寸为单位报告 Dex 旋转中心的 (X, Y) 坐标。这使得机器人能够在 VEXcode VR 环境中精确追踪其位置,从而在游戏或编程任务中实现精准的导航和定位。
识别场地上的 (X, Y) 坐标#
VEXcode VR 中的 V5RC 后推场 X 和 Y 位置的调整范围约为 -1800 毫米至 1800 毫米。Dex 的起始位置取决于 所选起始位置。
中心位置或原点 (0,0) 位于场地的中心。