FlightGear Headless: Difference between revisions

Jump to navigation Jump to search
Line 155: Line 155:
The recent additions to the [[Autopilot]] and [[Route Manager]] systems in FlightGear also make it increasingly feasible to create completely scripted test flights for automatically doing certain portions of a flight without relying on user input.
The recent additions to the [[Autopilot]] and [[Route Manager]] systems in FlightGear also make it increasingly feasible to create completely scripted test flights for automatically doing certain portions of a flight without relying on user input.


{{FGCquote
  | the most flexible approach would be using scripting - FligthGear has a built-in scripting language (called "Nasal"), that can be used to control aircraft, and even to instantiate multiple AI aircraft, one of the most straightforward examples is the "tanker.nas" script, which creates a fully scripted AI tanker - that could be easily extended to create dozens of tankers, and obviously you could also change the 3D model if you wanted to. In fact, we have a separate addon, named "bombable" that adds "AI bots" to the simulator, for dogfighting purposes - none of that required C++ changes, it's all done in scripting space. Another users implemented a fully scripted missile (fox2.nas) that tracks aircraft
  |{{cite web |url=http://forum.flightgear.org/viewtopic.php?p=189488#p189488
    |title=<nowiki>Re: Suitability of this software to run a swarm simulation</nowiki>
    |author=<nowiki>Hooray</nowiki>
    |date=<nowiki>Wed Aug 28</nowiki>
  }}
}}
{{FGCquote
{{FGCquote
   |Curt did that a while back for the f14b, which did a fully automated carrier approach using just Nasal scripting:  
   |Curt did that a while back for the f14b, which did a fully automated carrier approach using just Nasal scripting:  

Navigation menu