Welcome to the Parallax Discussion Forums, sign-up to participate.

vaibhav
Posts: **25**

Hello, guys, I need your help in moving a robot from one point to another point, problem description is as follows:

suppose my robot is at the initial position(x1, y1) and I want to move from that position to some final position (x2, y2) how can I achieve that?

by the way, I have arlo robot with a propeller board.

suppose my robot is at the initial position(x1, y1) and I want to move from that position to some final position (x2, y2) how can I achieve that?

by the way, I have arlo robot with a propeller board.

## Comments

1,576Edit: I have no clue about the Arlo robot.

15,745Calculate x2 - x1. If result is positive, move the result in steps/time. If result is negative, turn 180 degrees negate result ie make positive. Then move result steps/time.

Now turn 90 degrees, and repeat above for y1 and y2.

Of course you’ll have to code this, but it’s the basics.

3,321