Howto:Design an autopilot: Difference between revisions

Jump to navigation Jump to search
Might be a good idea to mention that the autopilot configuration file should be declared in the -set.xml file
(+- first section; +Template:Autoflight Navigation)
(Might be a good idea to mention that the autopilot configuration file should be declared in the -set.xml file)
Line 43: Line 43:
The flightgear xml based autopilot system can run at FDM rate or at frame rate. Using a <autopilot> tag in your aircraft's -set.xml  
The flightgear xml based autopilot system can run at FDM rate or at frame rate. Using a <autopilot> tag in your aircraft's -set.xml  
adds the autopilot at fdm rate, using a <property-rule> runs the same config at frame rate.
adds the autopilot at fdm rate, using a <property-rule> runs the same config at frame rate.
== Adding the autopilot to the -set.xml file ==
In order for your aircraft to use the configuration file of the autopilot you are about to design you need to add these lines to your within the <tt>&lt;systems&gt;</tt> tags in your [[Aircraft-set.xml|<tt>&lt;aircraft&gt;-set.xml</tt> file]]:
<syntaxhighlight lang="xml">
  <autopilot>
  <path>Aircraft/747-400/Systems/autopilot.xml</path> <!-- Using the the directory in the example above -->
  </autopilot>
</syntaxhighlight>


== A first controller: wing leveler ==
== A first controller: wing leveler ==

Navigation menu