TCP Script Server Raw icon TCP Script Server Raw TCP server for ARC accepting EZ-Script, JavaScript or Python commands, letting controllers send commands and receive line-terminated responses Try it →
 

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);