ARC Pro

Upgrade to ARC Pro

Experience early access to the latest features and updates. You'll have everything that is needed to unleash your robot's potential.

updateLocation

Navigation.updateLocation(x, y, degreesHeading, [confidence]);

Parameters

x Cartesian X (cm) coordinate of the robot
y Cartesian Y (cm) coordinate of the robot
degreesHeading Direction in degrees (0-359) that the robot is facing relative to the starting position
confidence [optional] the confidence (0-255) of accuracy of the coordinate location

Description

Send the cartesian coordinate of the robot to the NMS (navigation messaging system)

Example

// Send to the NMS that the robot is moving forward 30 cm over 30 seconds

for x in range(0, 3):
  print("Position X:" + x);
  Navigation.updateLocation(x, y, degreesHeading);
  sleep(1000);