3 #############################################################################
4 # (C) 2007 by Yurik V. Nikiforoff - port for FGFS, FDM, #
5 # 2d & 3d instruments, animations, systems and over. #
6 # yurik@megasignal.com #
7 #############################################################################
10 <!-- PU-11 control gauge
11 3D instrument for Tu-154 -->
14 <!--External panel lighting-->
17 <object-name>base</object-name>
19 <red-prop>tu154/light/panel/ext-red</red-prop>
20 <green-prop>tu154/light/panel/ext-green</green-prop>
21 <blue-prop>tu154/light/panel/ext-blue</blue-prop>
26 <object-name>switches</object-name>
28 <red-prop>tu154/light/panel/ext-red</red-prop>
29 <green-prop>tu154/light/panel/ext-green</green-prop>
30 <blue-prop>tu154/light/panel/ext-blue</blue-prop>
35 <!-- Internal instruments lighting -->
38 <object-name>text</object-name>
39 <object-name>lat</object-name>
40 <object-name>handle_fi</object-name>
41 <object-name>otkaz_o_2</object-name>
42 <object-name>otkaz_k_2</object-name>
44 <red-prop>tu154/light/instruments/int-red</red-prop>
45 <green-prop>tu154/light/instruments/int-green</green-prop>
46 <blue-prop>tu154/light/instruments/int-blue</blue-prop>
57 <object-name>otkaz_o_on</object-name>
58 <object-name>otkaz_k_on</object-name>
63 <factor-prop>tu154/systems/electrical/buses/DC27-bus-L/volts</factor-prop>
70 <object-name>otkaz_o_on</object-name>
72 <not><property>instrumentation/heading-indicator[0]/serviceable</property></not>
77 <object-name>otkaz_k_on</object-name>
79 <not><property>instrumentation/heading-indicator[1]/serviceable</property></not>
85 <object-name>potr_handle</object-name>
86 <property>tu154/switches/pu-11-consumers</property>
88 <entry><ind> 0.0</ind> <dep> -45.0</dep></entry>
89 <entry><ind> 1.0</ind> <dep> 45.0</dep></entry>
105 <object-name>korr_handle</object-name>
106 <property>tu154/switches/pu-11-corr</property>
108 <entry><ind> 0.0</ind> <dep> -45.0</dep></entry>
109 <entry><ind> 1.0</ind> <dep> 45.0</dep></entry>
125 <object-name>auto_handle</object-name>
126 <property>tu154/switches/pu-11-auto</property>
128 <entry><ind> 0.0</ind> <dep> -45.0</dep></entry>
129 <entry><ind> 1.0</ind> <dep> 45.0</dep></entry>
145 <object-name>gpk_handle</object-name>
146 <property>tu154/switches/pu-11-gpk</property>
148 <entry><ind> -1.0</ind> <dep> -45.0</dep></entry>
149 <entry><ind> 0.0</ind> <dep> 0.0</dep></entry>
150 <entry><ind> 1.0</ind> <dep> 45.0</dep></entry>
166 <object-name>kurs_handle</object-name>
167 <property>tu154/switches/pu-11-kurs</property>
169 <entry><ind> -1.0</ind> <dep> -45.0</dep></entry>
170 <entry><ind> 0.0</ind> <dep> 0.0</dep></entry>
171 <entry><ind> 1.0</ind> <dep> 45.0</dep></entry>
188 <object-name>lat</object-name>
189 <property>fdm/jsbsim/instrumentation/tks-lat-deg</property>
191 <entry><ind> 90.0</ind> <dep> -131.0</dep></entry>
192 <entry><ind> 0.0</ind> <dep> 0.0</dep></entry>
193 <entry><ind> -90.0</ind> <dep> 139.0</dep></entry>
201 <!--Latitude handle-->
204 <object-name>handle_fi</object-name>
205 <property>fdm/jsbsim/instrumentation/pu11-latitude</property>
206 <factor>20.0</factor>
207 <visible>true</visible>
210 <command>property-adjust</command>
211 <property>fdm/jsbsim/instrumentation/pu11-latitude</property>
219 <command>set-tooltip</command>
220 <tooltip-id>pu-11-latitude</tooltip-id>
221 <label>Latitude: %+03d°</label>
222 <property>fdm/jsbsim/instrumentation/pu11-latitude</property>
240 <type>translate</type>
241 <object-name>button</object-name>
242 <property>tu154/switches/pu-11-button</property>
244 <entry><ind> 0.0</ind> <dep> 0.0</dep></entry>
245 <entry><ind> 1.0</ind> <dep> 0.003</dep></entry>
258 <object-name>potr_hotspot_1</object-name>
259 <visible>false</visible>
262 <repeatable>false</repeatable>
264 <command>nasal</command>
266 interpolate("tu154/switches/pu-11-consumers", 1.0, 0.1 );
270 <command>property-assign</command>
271 <property>fdm/jsbsim/instrumentation/tks-consumers</property>
278 <object-name>potr_hotspot_2</object-name>
279 <visible>false</visible>
282 <repeatable>false</repeatable>
284 <command>nasal</command>
286 interpolate("tu154/switches/pu-11-consumers", 0.0, 0.1 );
290 <command>property-assign</command>
291 <property>fdm/jsbsim/instrumentation/tks-consumers</property>
298 <object-name>korr_hotspot_1</object-name>
299 <visible>false</visible>
302 <repeatable>false</repeatable>
304 <command>nasal</command>
306 interpolate("tu154/switches/pu-11-corr", 1.0, 0.1 );
313 <object-name>korr_hotspot_2</object-name>
314 <visible>false</visible>
317 <repeatable>false</repeatable>
319 <command>nasal</command>
321 interpolate("tu154/switches/pu-11-corr", 0.0, 0.1 );
328 <object-name>auto_hotspot_1</object-name>
329 <visible>false</visible>
332 <repeatable>false</repeatable>
334 <command>nasal</command>
336 interpolate("tu154/switches/pu-11-auto", 1.0, 0.1 );
340 <command>property-assign</command>
341 <property>fdm/jsbsim/instrumentation/tks-latitude-auto</property>
348 <object-name>auto_hotspot_2</object-name>
349 <visible>false</visible>
352 <repeatable>false</repeatable>
354 <command>nasal</command>
356 interpolate("tu154/switches/pu-11-auto", 0.0, 0.1 );
360 <command>property-assign</command>
361 <property>fdm/jsbsim/instrumentation/tks-latitude-auto</property>
368 <object-name>gpk_hotspot_3</object-name>
369 <visible>false</visible>
372 <repeatable>false</repeatable>
374 <command>nasal</command>
376 interpolate("tu154/switches/pu-11-gpk", -1.0, 0.1 );
383 <object-name>gpk_hotspot_2</object-name>
384 <visible>false</visible>
387 <repeatable>false</repeatable>
389 <command>nasal</command>
391 interpolate("tu154/switches/pu-11-gpk", 0.0, 0.1 );
398 <object-name>gpk_hotspot_1</object-name>
399 <visible>false</visible>
402 <repeatable>false</repeatable>
404 <command>nasal</command>
406 interpolate("tu154/switches/pu-11-gpk", 1.0, 0.1 );
414 <object-name>kur_hotspot_2</object-name>
415 <visible>false</visible>
418 <repeatable>true</repeatable>
419 <interval-sec>0.15</interval-sec>
421 <command>nasal</command>
423 interpolate("tu154/switches/pu-11-kurs", -1.0, 0.1 );
427 <command>nasal</command>
429 instruments.tks_adj(1);
434 <command>nasal</command>
436 interpolate("tu154/switches/pu-11-kurs", 0.0, 0.1 );
444 <object-name>kur_hotspot_1</object-name>
445 <visible>false</visible>
448 <repeatable>true</repeatable>
449 <interval-sec>0.15</interval-sec>
451 <command>nasal</command>
453 interpolate("tu154/switches/pu-11-kurs", 1.0, 0.1 );
457 <command>nasal</command>
459 instruments.tks_adj(0);
464 <command>nasal</command>
466 interpolate("tu154/switches/pu-11-kurs", 0.0, 0.1 );
475 <object-name>button</object-name>
476 <visible>true</visible>
479 <repeatable>true</repeatable>
480 <interval-sec>0.15</interval-sec>
482 <command>nasal</command>
484 interpolate("tu154/switches/pu-11-button", 1.0, 0.1 );
485 instruments.tks_corr();
490 <command>nasal</command>
492 interpolate("tu154/switches/pu-11-button", 0.0, 0.1 );
493 setprop("fdm/jsbsim/instrumentation/bgmk-corrector-1",0);
494 setprop("fdm/jsbsim/instrumentation/bgmk-corrector-2",0);