From ff4e599eb0a8f16c24121e173de953b22b66157e Mon Sep 17 00:00:00 2001 From: ehofman Date: Sat, 16 Oct 2004 12:37:46 +0000 Subject: [PATCH] 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. --- Aircraft/Generic/generic-instrumentation.xml | 99 ++++++++++++++++++++ Aircraft/Generic/generic-systems.xml | 29 ++++++ preferences.xml | 4 + 3 files changed, 132 insertions(+) create mode 100644 Aircraft/Generic/generic-instrumentation.xml create mode 100644 Aircraft/Generic/generic-systems.xml diff --git a/Aircraft/Generic/generic-instrumentation.xml b/Aircraft/Generic/generic-instrumentation.xml new file mode 100644 index 000000000..66ec34ff3 --- /dev/null +++ b/Aircraft/Generic/generic-instrumentation.xml @@ -0,0 +1,99 @@ + + + + + + + + adf + 0 + + + + adf-radio + 0 + + + + airspeed-indicator + 0 + /systems/pitot + /systems/static + + + + altimeter + 0 + /systems/static + + + + attitude-indicator + 0 + /systems/vacuum + + + + clock + 0 + + + + dme + 0 + + + + heading-indicator + 0 + /systems/vacuum + + + + magnetic-compass + 0 + + + + slip-skid-ball + 0 + + + + turn-indicator + 0 + + + + vertical-speed-indicator + 0 + /systems/static + + + + gps + 0 + + + \ No newline at end of file diff --git a/Aircraft/Generic/generic-systems.xml b/Aircraft/Generic/generic-systems.xml new file mode 100644 index 000000000..d66b1dc67 --- /dev/null +++ b/Aircraft/Generic/generic-systems.xml @@ -0,0 +1,29 @@ + + + + + + pitot + 0 + + + + static + 0 + + + + vacuum + 0 + /engines/engine[0]/rpm + 1.0 + + + + vacuum + 1 + /engines/engine[1]/rpm + 1.0 + + + \ No newline at end of file diff --git a/preferences.xml b/preferences.xml index 6c91599a8..6bf802610 100644 --- a/preferences.xml +++ b/preferences.xml @@ -71,10 +71,14 @@ Started September 2000 by David Megginson, david@megginson.com false + Aircraft/Generic/generic-systems.xml Aircraft/Generic/generic-autopilot.xml + + Aircraft/Generic/generic-instrumentation.xml +