# Thread: Determine the angle of Azimuth?

1. 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.  2.  4.   5. Originally Posted by m84uily Thanks, but all I have is GPS(Decimal (WGS84) Co-ordinates of location [A] and location [b].

If I enter tan([A] / [B]) will that give me how many degrees I need to turn the robot? Remember [A] and [B] are GPS co-ordinates(Decimal (WGS84)).

This is why I asked about the angle of Azimuth. I need to work out how many degrees to turn having ONLY GPS(Decimal (WGS84) co-ordinates of location [A] and location [B].

Here is an example of the co-ordinates:

[A] = 51.500782, -0.124669 ----This is Big Ben's Location.
[B] = 51.178891, -1.826225 ----This is Stonehenge's Location.

Calculate the Azimuth between [A] and [B].  6. Thanks, but all I have is GPS(Decimal (WGS84) Co-ordinates of location [A] and location [b].

If I enter tan([A] / [B]) will that give me how many degrees I need to turn the robot? Remember [A] and [B] are GPS co-ordinates(Decimal (WGS84)).

This is why I asked about the angle of Azimuth. I need to work out how many degrees to turn having ONLY GPS(Decimal (WGS84) co-ordinates of location [A] and location [B].
Could you maybe use http://en.wikipedia.org/wiki/Haversine_formula  7. Originally Posted by m84uily
Thanks, but all I have is GPS(Decimal (WGS84) Co-ordinates of location [A] and location [b].

If I enter tan([A] / [B]) will that give me how many degrees I need to turn the robot? Remember [A] and [B] are GPS co-ordinates(Decimal (WGS84)).

This is why I asked about the angle of Azimuth. I need to work out how many degrees to turn having ONLY GPS(Decimal (WGS84) co-ordinates of location [A] and location [B].
Could you maybe use http://en.wikipedia.org/wiki/Haversine_formula
Thanks... But I don't need the distance between [A] and [B].  Bookmarks
 Posting Permissions
 You may not post new threads You may not post replies You may not post attachments You may not edit your posts   BB code is On Smilies are On [IMG] code is On [VIDEO] code is On HTML code is Off Trackbacks are Off Pingbacks are Off Refbacks are On Terms of Use Agreement