Hooray wrote:Is it possible to make a complete automatized mission, from engine start to engine shutdown ?
Yes, it is possible "to make" such a mission - but you will literally have to MAKE it by writing a script to outline all required steps for your aircraft.
Curt did that a while back for the f14b, which did a fully automated carrier approach using just Nasal scripting:
http://diydrones.com/profiles/blogs/uas ... simulation
http://www.mail-archive.com/flightgear- ... 33987.html
http://www.flightgear.org/forums/viewto ... =4&t=13615
http://www.flightgear.org/tours/carrier-ops/
Another example is the "tanker.nas" script in $FG_ROOT which implements a simple scripted AI tanker for AAR purposes: search.php?st=0&sk=t&sd=d&sr=posts&keywords=tanker.nas
http://www.mail-archive.com/search?q=ta ... eforge.net
And then we have the fox2.nas script which implements a fox2 AI missile using Nasal: search.php?st=0&sk=t&sd=d&sr=posts&keywords=fox2.nas
The "bombable" addon is completely implemented in Nasal and created multiple virtual pilots for dogfighting purposes: http://wiki.flightgear.org/Bombable
var OurRoll = props.globals.getNode("orientation/roll-deg");
var OurPitch = props.globals.getNode("orientation/pitch-deg");
while (flying)
props.globals.setNode("orientation/roll-deg") = props.globals.getNode("orientation/roll-deg") + 3 // add three degrees to roll per iteration
props.globals.setNode("orientation/pitch-deg") = props.globals.getNode("orientation/pitch-deg") + 3 //add three degrees to pitch per iteration
end while
Thanks for your help. I'm happy to add info from this thread to the wiki once I understand what's going on.
Now I'm confused about how nasal links up with the main flight gear code base. To use an analogy, I understand how javascript works within the context of HTML, CSS and a web browser. What's the equivalent for NASAL? Where can I go (either within the documentation or the codebase) to understand how the main flight gear codebase interacts with NASAL?
Where can I go (either within the documentation or the codebase) to understand how the main flight gear codebase interacts with NASAL?
Users browsing this forum: No registered users and 1 guest