Hi all,

New to the forum so please, if my question is in the wrong location, let me know and I will put it in the correct one.

Ok, here's the question:

I am building a robot and I need some help on the navigation. I have 2 points [A] and [B].

Say my robot is at point [A] and has xxx coordinates. This robot is facing North(but in reality it could be facing any direction). The robot needs to turn X degrees and face in the direction of point [B] with a different set of coordinates(obviously). How do I calculate how many degrees I need to rotate the robot until it faces the direction of point [B]?

I *think* what I am looking for here is called the angle of Azimuth, but I'm not 100% sure. I have made a simple picture to illustrate my problem.

Thanks for reading and hope someone can help me out.

Rich.