From 5a12cd5d228f7c3c0c1d73edaa58fdae0e422384 Mon Sep 17 00:00:00 2001 From: mfranz Date: Thu, 2 Feb 2006 00:07:11 +0000 Subject: [PATCH] before the big instrumentation rewrite dme.cxx cared for the initial mode according to the switch position. Now dme.cxx is more generic and can't make these settings any more -- and doesn't. So the dme didn't display anything even if the knob was on. The initialization has now to be done in the dme.xml file. (Button-less actions are fired at init time and then thrown away.) --- Aircraft/Instruments/dme.xml | 47 ++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/Aircraft/Instruments/dme.xml b/Aircraft/Instruments/dme.xml index d41db8a90..3bc80c03d 100644 --- a/Aircraft/Instruments/dme.xml +++ b/Aircraft/Instruments/dme.xml @@ -346,6 +346,53 @@ properties' values. + + Setup + + + + /instrumentation/dme/switch-position + 1 + + + property-assign + /instrumentation/dme/frequencies/source + /instrumentation/nav[0]/frequencies/selected-mhz + + + + + /instrumentation/dme/switch-position + 2 + + + property-assign + /instrumentation/dme/frequencies/source + /instrumentation/dme/frequencies/selected-mhz + + + + + /instrumentation/dme/switch-position + 2 + + + property-assign + /instrumentation/dme/frequencies/selected-mhz + /instrumentation/nav[0]/frequencies/selected-mhz + + + + + /instrumentation/dme/switch-position + 3 + + + property-assign + /instrumentation/dme/frequencies/source + /instrumentation/nav[1]/frequencies/selected-mhz + + Rotate knob left