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 (var x = 0; x < 30; x++) {

  print("Position X:" + x);
  Navigation.updateLocation(x, y, degreesHeading);
  sleep(1000);
}