lordofwings Posted June 11, 2007 Report Posted June 11, 2007 Pretty much says it, how do I go about finding out the ICAO code of the departure airport with FSUIPC? I scanned all the GPS offsets but only saw destination airport and prev/next waypoint. And to kill both birds with the same stone (if I aim right), is there a way to find out (or derive from somewhere) whether the a/c is at the gate ?
Pete Dowson Posted June 11, 2007 Report Posted June 11, 2007 Pretty much says it, how do I go about finding out the ICAO code of the departure airport with FSUIPC? Departure airport of what? Your own plane? Sorry, but I don't think there's any way of getting any information about your own aircraft's routing unless you've filed a Plan, and then it is only what might be obtained from the GPS data, which is a bit iffy as far as I've seen. Most programs which deal with this sort of thing do so by checking the nearest airport in a data base, using the aircraft Latitude/Longitude which you can read quite accurately. And to kill both birds with the same stone (if I aim right), is there a way to find out (or derive from somewhere) whether the a/c is at the gate ? Again, from the Lat/Lon, and using a database of Gates created from a scan of the BGLs containing AFD information. You are most welcome to use my MakeRunways utility which creates such databases. See the Downloads announcements above. Regards Pete
lordofwings Posted June 12, 2007 Author Report Posted June 12, 2007 Actually I just found a way to do it :-) If the aicraft is still at the gate or runway of the departure airport this information can easily be obtained by reading the offset named "FS2004 GPS Previous WP ID string" which nicely returns a string with the ICAO code.
Pete Dowson Posted June 12, 2007 Report Posted June 12, 2007 Actually I just found a way to do it :-) If the aicraft is still at the gate or runway of the departure airport this information can easily be obtained by reading the offset named "FS2004 GPS Previous WP ID string" which nicely returns a string with the ICAO code. Does this work even if you don't file a flight plan? Pete
lordofwings Posted July 7, 2007 Author Report Posted July 7, 2007 Have not tried that yet but at least with a flight plan it does.
Indagroove Posted September 14, 2007 Report Posted September 14, 2007 What I do is grab the 23000 airports out of flight sim and place them somewhere I can get to them easily (database works good for this). Then I check the latitude and longitude and if they are within 4 miles of where they are at then they must be at that airport. I know that last sentence did not make any sense LOL..... Basically you check both the latitude and longitude of the current location and match those lat,lon settings against the database. Search google for 1 mile in latitude and longitude for calculations, I forget them at the moment. Mike
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now