Debian Codegraph @

Aircraft/Instruments-3d/ki266/ki266.xml

raw symbols SCIP
1 <?xml version="1.0" ?>
2 <!--
3 This is the ki266 3d instrument.
4 Modeled after King KI266 DME Indicator
5
6 This instrument needs the file
7 Aircraft/Instruments-3d/ki266/ki266.nas
8 to be included in your -set.xml nasal section
9 like this:
10
11 <nasal>
12 <YourAircraft>
13 <file>Aircraft/Instruments-3d/ki266/ki266.nas</file>
14 </YourAircraft>
15 </nasal>
16
17 and at least one instance of the ki266 class to be created
18 in your aircraft nasal code like this:
19 ki266.new(0); # for your first dme at /instrumentation/dme[0]
20 ki266.new(1); # if you have another at /instrumentation/dme[1]
21 Maintainer: Torsten Dreyer
22 -->
23 <PropertyList>
24 <params>
25 <in-range>instrumentation/dme[0]/in-range</in-range>
26 <right-display>instrumentation/dme[0]/min-kts-display</right-display>
27 <left-display>instrumentation/dme[0]/miles-display</left-display>
28 <left-display-dot>instrumentation/dme[0]/left-dot</left-display-dot>
29 <power-btn>instrumentation/dme[0]/power-btn</power-btn>
30 <serviceable>instrumentation/dme[0]/serviceable</serviceable>
31 <dimming>instrumentation/dme[0]/dimming-norm</dimming>
32
33 <min-kts>instrumentation/dme[0]/switch-min-kts</min-kts>
34 <!--
35 <electrical>systems/electrical/outputs/dme</electrical>
36 -->
37 </params>
38
39 <path>ki266.ac</path>
40
41 <!-- turn it off, when u/s or switched off -->
42 <animation>
43 <type>select</type>
44 <object-name>Indicators</object-name>
45 <condition>
46 <and>
47 <property alias="../../../../params/serviceable"/>
48 <property alias="../../../../params/power-btn"/>
49 <!--
50 <property alias="../../../../params/electrical"/>
51 -->
52 </and>
53 </condition>
54 </animation>
55
56 <animation>
57 <type>material</type>
58 <object-name>ModeSwitch</object-name>
59 <emission>
60 <red>1.0</red>
61 <green>0.2</green>
62 <blue>0</blue>
63 <factor-prop>controls/lighting/instruments-norm</factor-prop>
64 </emission>
65 </animation>
66
67 <animation>
68 <type>material</type>
69 <object-name>Indicators</object-name>
70 <emission>
71 <red>-1.0</red>
72 <green>-1.0</green>
73 <blue>-1.0</blue>
74 <factor-prop alias="../../../params/dimming"/>
75 <offset>1</offset>
76 </emission>
77 </animation>
78
79 <!-- the mode switch do display min/kts -->
80 <animation>
81 <type>select</type>
82 <object-name>Min</object-name>
83 <condition>
84 <not>
85 <property alias="../../../../params/min-kts"/>
86 </not>
87 </condition>
88 </animation>
89
90 <animation>
91 <type>select</type>
92 <object-name>Kts</object-name>
93 <condition>
94 <property alias="../../../params/min-kts"/>
95 </condition>
96 </animation>
97
98 <animation>
99 <type>translate</type>
100 <object-name>ModeSwitch</object-name>
101 <factor>-0.003</factor>
102 <property alias="../../params/min-kts"/>
103 <axis>
104 <x>1.0</x>
105 <y>0.0</y>
106 <z>0.0</z>
107 </axis>
108 </animation>
109
110 <animation>
111 <type>pick</type>
112 <object-name>ModeSwitch</object-name>
113 <object-name>Min</object-name>
114 <object-name>Kts</object-name>
115 <visible>true</visible>
116 <action>
117 <button>0</button>
118 <repeatable>false</repeatable>
119 <binding>
120 <command>property-toggle</command>
121 <property alias="../../../../params/min-kts"/>
122 </binding>
123 </action>
124 </animation>
125
126 <!-- distance display, allways on.
127 Shows nn.n when distance is less than 100NM and
128 shows nnn when distance is greater than or equal to 100NM
129 -->
130 <animation>
131 <name>LeftDecimalDot</name>
132 <type>select</type>
133 <object-name>Left.Dot1</object-name>
134 <condition>
135 <property alias="../../../params/left-display-dot"/>
136 </condition>
137 </animation>
138
139 <!-- blank leading zeros -->
140 <animation>
141 <name>miles_100_blank</name>
142 <type>select</type>
143 <object-name>Left.100</object-name>
144 <condition>
145 <greater-than-equals>
146 <property alias="../../../../params/left-display"/>
147 <value>100.0</value>
148 </greater-than-equals>
149 </condition>
150 </animation>
151
152 <animation>
153 <name>miles_10_blank</name>
154 <type>select</type>
155 <object-name>Left.10</object-name>
156 <condition>
157 <or>
158 <greater-than-equals>
159 <property alias="../../../../../params/left-display"/>
160 <value>10.0</value>
161 </greater-than-equals>
162 <and>
163 <property alias="../../../../../params/left-display-dot"/>
164 <greater-than-equals>
165 <property alias="../../../../../../params/left-display"/>
166 <value>1.0</value>
167 </greater-than-equals>
168 </and>
169 </or>
170 </condition>
171 </animation>
172
173 <animation>
174 <name>miles_1_blank</name>
175 <type>select</type>
176 <object-name>Left.1</object-name>
177 <condition>
178 <greater-than-equals>
179 <property alias="../../../../params/left-display"/>
180 <value>1.0</value>
181 </greater-than-equals>
182 </condition>
183 </animation>
184
185 <!-- left display, left digit -->
186 <animation>
187 <name>miles_100_lo</name>
188 <type>textranslate</type>
189 <object-name>Left.100</object-name>
190 <property alias="../../params/left-display"/>
191 <step>100</step>
192 <factor>0.001</factor>
193 <axis>
194 <x>1</x>
195 <y>0</y>
196 <z>0</z>
197 </axis>
198 </animation>
199
200 <!-- left display, center digit -->
201 <animation>
202 <name>miles_10_lo</name>
203 <type>textranslate</type>
204 <object-name>Left.10</object-name>
205 <property alias="../../params/left-display"/>
206 <step>10</step>
207 <factor>0.01</factor>
208 <axis>
209 <x>1</x>
210 <y>0</y>
211 <z>0</z>
212 </axis>
213 </animation>
214
215 <!-- left display, right digit -->
216 <animation>
217 <name>miles_1_lo</name>
218 <type>textranslate</type>
219 <object-name>Left.1</object-name>
220 <property alias="../../params/left-display"/>
221 <step>1</step>
222 <factor>0.1</factor>
223 <axis>
224 <x>1</x>
225 <y>0</y>
226 <z>0</z>
227 </axis>
228 </animation>
229
230 <!--
231 Right display, showing either kts or min, handled by dme.nas
232 -->
233 <animation>
234 <condition>
235 <greater-than-equals>
236 <property alias="../../../../params/right-display"/>
237 <value>100</value>
238 </greater-than-equals>
239 </condition>
240 <name>kts_100_select</name>
241 <type>select</type>
242 <object-name>Right.100</object-name>
243 </animation>
244
245 <animation>
246 <condition>
247 <greater-than-equals>
248 <property alias="../../../../params/right-display"/>
249 <value>10</value>
250 </greater-than-equals>
251 </condition>
252 <name>kts_10_select</name>
253 <type>select</type>
254 <object-name>Right.10</object-name>
255 </animation>
256
257 <animation>
258 <condition>
259 <property alias="../../../params/in-range"/>
260 </condition>
261 <name>kts_1_select</name>
262 <type>select</type>
263 <object-name>Right.1</object-name>
264 </animation>
265
266 <animation>
267 <name>kts_100</name>
268 <type>textranslate</type>
269 <object-name>Right.100</object-name>
270 <property alias="../../params/right-display"/>
271 <step>100</step>
272 <factor>0.001</factor>
273 <axis>
274 <x>1</x>
275 <y>0</y>
276 <z>0</z>
277 </axis>
278 </animation>
279
280 <animation>
281 <name>kts_10</name>
282 <type>textranslate</type>
283 <object-name>Right.10</object-name>
284 <property alias="../../params/right-display"/>
285 <step>10</step>
286 <factor>0.01</factor>
287 <axis>
288 <x>1</x>
289 <y>0</y>
290 <z>0</z>
291 </axis>
292 </animation>
293
294 <animation>
295 <name>kts_1</name>
296 <type>textranslate</type>
297 <object-name>Right.1</object-name>
298 <property alias="../../params/right-display"/>
299 <step>1</step>
300 <factor>0.1</factor>
301 <axis>
302 <x>1</x>
303 <y>0</y>
304 <z>0</z>
305 </axis>
306 </animation>
307
308 </PropertyList>