Howto:Control the route manager in Nasal: Difference between revisions

Jump to navigation Jump to search
Switch to {{fg root file}} to fix the broken Gitorious link.
m (move forum posting to wiki: http://flightgear.org/forums/viewtopic.php?f=46&t=13435#p136176)
 
(Switch to {{fg root file}} to fix the broken Gitorious link.)
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Stub}}
{{WIP}}
Last updated: 02/2012
This tutorial will document all the steps involved in creating a new Nasal module that constantly updates itself to control the [[Route manager]], [[Nasal]] is FlightGear's scripting language.
This tutorial will document all the steps involved in creating a new Nasal module that constantly updates itself to control the [[Route manager]], [[Nasal]] is FlightGear's scripting language.


Line 114: Line 109:
As you'll see, you could even create a small dialog file to repeatedly set the waypoint automatically to a set of specified coordinates.
As you'll see, you could even create a small dialog file to repeatedly set the waypoint automatically to a set of specified coordinates.


Just have a look at the implementation of the route manager dialog in $FG_ROOT/gui/dialogs/route-manager.xml: http://gitorious.org/fg/fgdata/blobs/master/gui/dialogs/route-manager.xml
Just have a look at the implementation of the route manager dialog in {{fg root file|gui/dialogs/route-manager.xml}}.


If you are interested, this could be used to create a realistic holding-pattern autoflight system, that even uses proper entry and exit procedures.
If you are interested, this could be used to create a realistic holding-pattern autoflight system, that even uses proper entry and exit procedures.
Line 120: Line 115:




= References =
[[Category:Nasal howto]]
 
[[Category:Howto]]
[[Category:Nasal]]

Navigation menu