Hi all,

I've written a nasal class to simulate GPS calculation. you can find the 
script here: http://seb.marque.free.fr/fichiers/flightgear/gps.nas

I'm aware it is maybe not as well-written as other .nas scripts found in 
$FGROOT/Nasal :p, but I think it could be interresting to put it in CVS 
for further development (for this, it is possible to remove the first 
lines concerning GPL, and maybe the 2 demos included), and to allow some 
aircraft mainteners and instruments creators to create gps in their 
aircraft.

I've chosen this solution more than route manager because it is (at 
least for me) more easier to create a gps instrument from this class. 
I've created 2 demos instruments, they are included in the script, you 
can find them at the end of file:
- gps.demo.show(): this one pop-up a dialog with some lines depending of 
the used mode (off, to, free and track). it is possible to enter 
parameters for the gps (coordinates, speed, course, altitude).

- gps.demo2.show(<file>): this one allows you to follow a route, 
imported from a xml file (example around lfbt (france): 
http://seb.marque.free.fr/fichiers/flightgear/route-example.xml). For 
now the route file is searched from FGHOME directory, waiting for a 
better place. It shows how the gpsDevice class manages the route. Here 
is an other script in perl 
http://seb.marque.free.fr/fichiers/scripts/perl/flightplan (ex 
./plandevol-eng*) that can create route file suitable with gps:
./flightplan -d ksfo -a knid -wpt=KSFO-KNID.xml
I let the creator of instruments chose their own way to select correct 
route file for their device if they allow route management for it.

Features: please read top of gps.nas for an exhaustive list of exported 
properties and available methods.

best regards,
seb

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to