Skip to main content

move to coordinate

Block#

move to coordinates block image

Description#

Drives Zumi to an (x,y) position from the origin. The origin (0,0) is defined at Zumi object creation. To reset the origin, use the reset_coordinate() block. This method uses a best fit linear approximation of the distance traveled over time. Zumi will only keep update her coordinates when driving with this block. Using any other drive command will not keep track of her location.

Parameters#

move to coordinate parameters x: A float value for the x coordinate
y: A float value for the y coordinate
unit: Units of the coordinates, centimeters or inches

Returns#

None

Example#

move to coordinate example