Roy Vegard Ovesen:
Instrumentation and systems are now configureable from xml files. The two generic configurations generic-systems.xml and generic-instrumentation.xml configures the systems and instrumentation as it was hardcoded. You can override the generic configurations in a similar way as you override the autopilot configuration.
This commit is contained in:
parent
fce018d2fc
commit
ff4e599eb0
3 changed files with 132 additions and 0 deletions
99
Aircraft/Generic/generic-instrumentation.xml
Normal file
99
Aircraft/Generic/generic-instrumentation.xml
Normal file
|
@ -0,0 +1,99 @@
|
||||||
|
<?xml version="1.0"?>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
**********************************************************************
|
||||||
|
generic-instrumentation.xml
|
||||||
|
|
||||||
|
Generic instrumentation configuration. This file selects the
|
||||||
|
instrumentation modules that should be available.
|
||||||
|
|
||||||
|
You can have several instances of the same instrument type.
|
||||||
|
The value inside the name tag becomes the node in the property tree.
|
||||||
|
If two instruments have the same name you must use the number tag
|
||||||
|
to separate them. They become name[number] in the property tree.
|
||||||
|
Some instruments have additional configuration tags like static-port
|
||||||
|
and pitot-port. The static- and pitot-ports (and any other system that
|
||||||
|
an instrument depend on) have to be configured in the systems
|
||||||
|
configuration file: generic-systems.xml
|
||||||
|
|
||||||
|
The values in this file are the default values. If any configuration
|
||||||
|
tags are omitted in an aircraft specific version of this configuration
|
||||||
|
file, these values will be used (they are hardcoded).
|
||||||
|
|
||||||
|
**********************************************************************
|
||||||
|
-->
|
||||||
|
|
||||||
|
<PropertyList>
|
||||||
|
|
||||||
|
<adf>
|
||||||
|
<name>adf</name>
|
||||||
|
<number>0</number>
|
||||||
|
</adf>
|
||||||
|
|
||||||
|
<adf>
|
||||||
|
<name>adf-radio</name>
|
||||||
|
<number>0</number>
|
||||||
|
</adf>
|
||||||
|
|
||||||
|
<airspeed-indicator>
|
||||||
|
<name>airspeed-indicator</name>
|
||||||
|
<number>0</number>
|
||||||
|
<pitot-port>/systems/pitot</pitot-port>
|
||||||
|
<static-port>/systems/static</static-port>
|
||||||
|
</airspeed-indicator>
|
||||||
|
|
||||||
|
<altimeter>
|
||||||
|
<name>altimeter</name>
|
||||||
|
<number>0</number>
|
||||||
|
<static-port>/systems/static</static-port>
|
||||||
|
</altimeter>
|
||||||
|
|
||||||
|
<attitude-indicator>
|
||||||
|
<name>attitude-indicator</name>
|
||||||
|
<number>0</number>
|
||||||
|
<vacuum-system>/systems/vacuum</vacuum-system>
|
||||||
|
</attitude-indicator>
|
||||||
|
|
||||||
|
<clock>
|
||||||
|
<name>clock</name>
|
||||||
|
<number>0</number>
|
||||||
|
</clock>
|
||||||
|
|
||||||
|
<dme>
|
||||||
|
<name>dme</name>
|
||||||
|
<number>0</number>
|
||||||
|
</dme>
|
||||||
|
|
||||||
|
<heading-indicator>
|
||||||
|
<name>heading-indicator</name>
|
||||||
|
<number>0</number>
|
||||||
|
<vacuum-system>/systems/vacuum</vacuum-system>
|
||||||
|
</heading-indicator>
|
||||||
|
|
||||||
|
<magnetic-compass>
|
||||||
|
<name>magnetic-compass</name>
|
||||||
|
<number>0</number>
|
||||||
|
</magnetic-compass>
|
||||||
|
|
||||||
|
<slip-skid-ball>
|
||||||
|
<name>slip-skid-ball</name>
|
||||||
|
<number>0</number>
|
||||||
|
</slip-skid-ball>
|
||||||
|
|
||||||
|
<turn-indicator>
|
||||||
|
<name>turn-indicator</name>
|
||||||
|
<number>0</number>
|
||||||
|
</turn-indicator>
|
||||||
|
|
||||||
|
<vertical-speed-indicator>
|
||||||
|
<name>vertical-speed-indicator</name>
|
||||||
|
<number>0</number>
|
||||||
|
<static-port>/systems/static</static-port>
|
||||||
|
</vertical-speed-indicator>
|
||||||
|
|
||||||
|
<gps>
|
||||||
|
<name>gps</name>
|
||||||
|
<number>0</number>
|
||||||
|
</gps>
|
||||||
|
|
||||||
|
</PropertyList>
|
29
Aircraft/Generic/generic-systems.xml
Normal file
29
Aircraft/Generic/generic-systems.xml
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
<?xml version="1.0"?>
|
||||||
|
|
||||||
|
<PropertyList>
|
||||||
|
|
||||||
|
<pitot>
|
||||||
|
<name>pitot</name>
|
||||||
|
<number>0</number>
|
||||||
|
</pitot>
|
||||||
|
|
||||||
|
<static>
|
||||||
|
<name>static</name>
|
||||||
|
<number>0</number>
|
||||||
|
</static>
|
||||||
|
|
||||||
|
<vacuum>
|
||||||
|
<name>vacuum</name>
|
||||||
|
<number>0</number>
|
||||||
|
<rpm>/engines/engine[0]/rpm</rpm>
|
||||||
|
<scale>1.0</scale>
|
||||||
|
</vacuum>
|
||||||
|
|
||||||
|
<vacuum>
|
||||||
|
<name>vacuum</name>
|
||||||
|
<number>1</number>
|
||||||
|
<rpm>/engines/engine[1]/rpm</rpm>
|
||||||
|
<scale>1.0</scale>
|
||||||
|
</vacuum>
|
||||||
|
|
||||||
|
</PropertyList>
|
|
@ -71,10 +71,14 @@ Started September 2000 by David Megginson, david@megginson.com
|
||||||
<draw-fps>false</draw-fps>
|
<draw-fps>false</draw-fps>
|
||||||
</hud>
|
</hud>
|
||||||
<systems>
|
<systems>
|
||||||
|
<path>Aircraft/Generic/generic-systems.xml</path>
|
||||||
<autopilot>
|
<autopilot>
|
||||||
<path>Aircraft/Generic/generic-autopilot.xml</path>
|
<path>Aircraft/Generic/generic-autopilot.xml</path>
|
||||||
</autopilot>
|
</autopilot>
|
||||||
</systems>
|
</systems>
|
||||||
|
<instrumentation>
|
||||||
|
<path>Aircraft/Generic/generic-instrumentation.xml</path>
|
||||||
|
</instrumentation>
|
||||||
<instrument-options>
|
<instrument-options>
|
||||||
<nav n="0">
|
<nav n="0">
|
||||||
<has-gs-needle type="bool">true</has-gs-needle>
|
<has-gs-needle type="bool">true</has-gs-needle>
|
||||||
|
|
Loading…
Reference in a new issue