GPS Calculations Question
Brian Carpenter
Posts: 728
I am looking to see how to create a location (Lat,Lon) for UNIT 2 based on the following information.
Thanks
- I know the location of UNIT 1 (Lat, Lon)
- I know the heading of travel of UNIT 1
- I know that i want UNIT 2 to be 200 feet from UNIT 1, and the line between UNIT 1 and UNIT 2 is perpendicular to the heading of UNIT 1
Thanks
Comments
With what you've specified so far, unit 2 could be either 200 feet to the left of unit 1 or 200 feet to the right.
Then you do everything with 2D vectors. Headings are straightforward in cartesian coordinates. Conversion from lat/lon to cartesian coords can either be done the accurate way (allowing for the earth not being exactly spherical) or the rough-and-ready way where you assume the lines of longitude are spaced according to cosine(lattitude).
BTW what do you want to get out of the equations? A heading for unit 2?
You could start by noting that unit 2 is somewhere on the circle that has a 200 foot radius centered at the location of unit 1.
The heading of unit 1 will specify a point on that circle. The location of unit 2 will then be 90 degrees to the left of that point, also on the circle.