AI Systems: Difference between revisions

Jump to navigation Jump to search
Line 119: Line 119:
Submodels are controlled by the submodel manager.  The manager reads a submodel configuration file at the start of the sim session.  This configuration file is written by the aircraft author and defines all the submodels for that particular aircraft.
Submodels are controlled by the submodel manager.  The manager reads a submodel configuration file at the start of the sim session.  This configuration file is written by the aircraft author and defines all the submodels for that particular aircraft.


More to do ...
As an example examine the submodels file in the Aircraft/737-300 directory.  This file creates two submodels which will become the airplane's left and right engine contrails.  Each contrail needs its own submodel definition because the contrails begin at different locations.  Each contrail consists of a train of individual "puff" models that are released in rapid succession as long as the "trigger" property is true.  We ensure an unlimited supply of puffs by setting the "count" parameter to -1. The individual puffs, being AIBallistic objects, will follow their own ballistic paths once released.  In this case we have used the "bouyancy" parameter to negate gravity in the ballistic path. The puffs have been given a life span of eight seconds. At cruising speed the 737 will thus have about 400 puffs behind it at any moment.
Anonymous user

Navigation menu