Howto:Design an autopilot: Difference between revisions

Jump to navigation Jump to search
→‎Adding the autopilot to the -set.xml file: Clarifying that the path tho the autopilot configuration file should be within the <tt><systems></tt> tags within the <tt><sim></tt> tags
(Might be a good idea to mention that the autopilot configuration file should be declared in the -set.xml file)
(→‎Adding the autopilot to the -set.xml file: Clarifying that the path tho the autopilot configuration file should be within the <tt><systems></tt> tags within the <tt><sim></tt> tags)
Line 45: Line 45:


== Adding the autopilot to the -set.xml file ==
== 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]]:
In order for your aircraft to use the configuration file of the autopilot you are about to design, you need to add the path to the file within the <tt>&lt;systems&gt;</tt> tags in turn within the <tt>&lt;sim&gt;</tt> tags in your [[Aircraft-set.xml|<tt>&lt;aircraft&gt;-set.xml</tt> file]]:


<syntaxhighlight lang="xml">
<syntaxhighlight lang="xml">
   <autopilot>
<!-- ... -->
  <path>Aircraft/747-400/Systems/autopilot.xml</path> <!-- Using the the directory in the example above -->
<sim>
   </autopilot>
   <!-- ... -->
  <systems>
  <!-- ... -->
  <autopilot>
    <path>Aircraft/747-400/Systems/autopilot.xml</path> <!-- Using the the directory in the example above -->
  </autopilot>
  <!-- ... -->
   </systems>
  <!-- ... -->
</sim>
<!-- ... -->
</syntaxhighlight>
</syntaxhighlight>


Navigation menu