Howto:Calculate elevations

From FlightGear wiki
Revision as of 15:09, 2 November 2009 by F-ojac (Talk | contribs) (Creation)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

There is a specific script in Flightgear, called find_elevations.pl

Under GNU/Linux, for instance, this script is located here : "/usr/local/src/flightgear/scripts/perl/examples/find_elevations.pl".

This script enables the calculation of the elevation at a specific longitude and latitude.

To use it, launch FG like this : "fgfs --fdm=null --telnet=5401"

Then, in a separate windows, lauch the script : "./find_elevations.pl".

Then enter the longitude and latitude of the object for which you want to get the elevation.

For instance :

olivier@olivier-portable:/var/www$ ./find_elevations.pl -3.926816 48.632452 62.37586682

=> For a longitude of -3.926816 and a latitude of 48.632452, the elevation is 62.37586682.

Enjoy !