Screen Recorder icon Screen Recorder Record your screen to WMV1/WMV2/H263P files with selectable bitrate, save-folder and start/stop controls, creating tutorial or demo video snippets. 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);