This forum is for users who are developing applications (or resources) to work alongside BaseStation (i.e. add-ons) and who wish to discuss development techniques.
3 posts • Page 1 of 1
jeremy wrote:I would like to know how can I compute the Azimuth/Elevation of an aircraft when I know its Latitude/Longitude/Altitude values ?
At the ranges we can pick up aircraft transmitting Mode S, you can assume a flat earth without losing much in terms of accuracy.
Start by calculating how far north or south of you an aircraft is by the difference in the respective latitudes (1 minute = 1 nm). The east/west distance in nm is similarly the difference in longitudes in minutes multiplied by the cosine of the latitude.
Then it's simple trigonometry to calculate the relative bearing (azimuth) of the target, and the distance (which you need for the next step).
For the elevation, again ignoring the curvature of the earth, it's simply the arctan of the altitude of the target divided by the distance from you to it.
If you really need precision results, then you will have to use spherical trigonometry, but that's your call.
Who is online
Users browsing this forum: No registered users and 1 guest