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 <!-- V-140 NVU (navigation system) control
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>
25 <!-- Internal instruments lighting -->
28 <object-name>text</object-name>
29 <object-name>digits</object-name>
31 <red-prop>tu154/light/instruments/int-red</red-prop>
32 <green-prop>tu154/light/instruments/int-green</green-prop>
33 <blue-prop>tu154/light/instruments/int-blue</blue-prop>
40 <object-name>I</object-name>
41 <object-name>II</object-name>
46 <factor-prop>tu154/systems/electrical/checking-lamps/lamps-power</factor-prop>
52 <object-name>I</object-name>
55 <property>fdm/jsbsim/instrumentation/nvu/active</property>
62 <object-name>II</object-name>
65 <property>fdm/jsbsim/instrumentation/nvu/active</property>
73 <object-name>dig_1_min</object-name>
74 <property>tu154/systems/nvu/ZPU-1-smooth</property>
89 <object-name>dig_1_ones</object-name>
93 <property>tu154/systems/nvu/ZPU-1-smooth</property>
96 <entry><ind> 0.0</ind> <dep> 0</dep></entry>
97 <entry><ind> 0.9</ind> <dep> 0</dep></entry>
98 <entry><ind> 1.0</ind> <dep> 36</dep></entry>
99 <entry><ind> 1.9</ind> <dep> 36</dep></entry>
100 <entry><ind> 2.0</ind> <dep> 72</dep></entry>
101 <entry><ind> 2.9</ind> <dep> 72</dep></entry>
102 <entry><ind> 3.0</ind> <dep> 108</dep></entry>
103 <entry><ind> 3.9</ind> <dep> 108</dep></entry>
104 <entry><ind> 4.0</ind> <dep> 144</dep></entry>
105 <entry><ind> 4.9</ind> <dep> 144</dep></entry>
106 <entry><ind> 5.0</ind> <dep> 180</dep></entry>
107 <entry><ind> 5.9</ind> <dep> 180</dep></entry>
108 <entry><ind> 6.0</ind> <dep> 216</dep></entry>
109 <entry><ind> 6.9</ind> <dep> 216</dep></entry>
110 <entry><ind> 7.0</ind> <dep> 252</dep></entry>
111 <entry><ind> 7.9</ind> <dep> 252</dep></entry>
112 <entry><ind> 8.0</ind> <dep> 288</dep></entry>
113 <entry><ind> 8.9</ind> <dep> 288</dep></entry>
114 <entry><ind> 9.0</ind> <dep> 324</dep></entry>
115 <entry><ind> 9.9</ind> <dep> 324</dep></entry>
116 <entry><ind> 9.99</ind> <dep> 359.9</dep></entry>
133 <object-name>dig_1_dec</object-name>
137 <property>tu154/systems/nvu/ZPU-1-smooth</property>
140 <entry><ind> 0.0</ind> <dep> 0</dep></entry>
141 <entry><ind> 9.9</ind> <dep> 0</dep></entry>
142 <entry><ind> 10.0</ind> <dep> 36</dep></entry>
143 <entry><ind> 19.9</ind> <dep> 36</dep></entry>
144 <entry><ind> 20.0</ind> <dep> 72</dep></entry>
145 <entry><ind> 29.9</ind> <dep> 72</dep></entry>
146 <entry><ind> 30.0</ind> <dep> 108</dep></entry>
147 <entry><ind> 39.9</ind> <dep> 108</dep></entry>
148 <entry><ind> 40.0</ind> <dep> 144</dep></entry>
149 <entry><ind> 49.9</ind> <dep> 144</dep></entry>
150 <entry><ind> 50.0</ind> <dep> 180</dep></entry>
151 <entry><ind> 59.9</ind> <dep> 180</dep></entry>
152 <entry><ind> 60.0</ind> <dep> 216</dep></entry>
153 <entry><ind> 69.9</ind> <dep> 216</dep></entry>
154 <entry><ind> 70.0</ind> <dep> 252</dep></entry>
155 <entry><ind> 79.9</ind> <dep> 252</dep></entry>
156 <entry><ind> 80.0</ind> <dep> 288</dep></entry>
157 <entry><ind> 89.9</ind> <dep> 288</dep></entry>
158 <entry><ind> 90.0</ind> <dep> 324</dep></entry>
159 <entry><ind> 99.9</ind> <dep> 324</dep></entry>
160 <entry><ind> 99.99</ind> <dep> 359.9</dep></entry>
161 <entry><ind> 100.0</ind> <dep> 0</dep></entry>
162 <entry><ind> 109.9</ind> <dep> 0</dep></entry>
163 <entry><ind> 110.0</ind> <dep> 36</dep></entry>
164 <entry><ind> 119.9</ind> <dep> 36</dep></entry>
165 <entry><ind> 120.0</ind> <dep> 72</dep></entry>
166 <entry><ind> 129.9</ind> <dep> 72</dep></entry>
167 <entry><ind> 130.0</ind> <dep> 108</dep></entry>
168 <entry><ind> 139.9</ind> <dep> 108</dep></entry>
169 <entry><ind> 140.0</ind> <dep> 144</dep></entry>
170 <entry><ind> 149.9</ind> <dep> 144</dep></entry>
171 <entry><ind> 150.0</ind> <dep> 180</dep></entry>
172 <entry><ind> 159.9</ind> <dep> 180</dep></entry>
173 <entry><ind> 160.0</ind> <dep> 216</dep></entry>
174 <entry><ind> 169.9</ind> <dep> 216</dep></entry>
175 <entry><ind> 170.0</ind> <dep> 252</dep></entry>
176 <entry><ind> 179.9</ind> <dep> 252</dep></entry>
177 <entry><ind> 180.0</ind> <dep> 288</dep></entry>
178 <entry><ind> 189.9</ind> <dep> 288</dep></entry>
179 <entry><ind> 190.0</ind> <dep> 324</dep></entry>
180 <entry><ind> 199.9</ind> <dep> 324</dep></entry>
181 <entry><ind> 199.99</ind> <dep> 359.9</dep></entry>
182 <entry><ind> 200.0</ind> <dep> 0</dep></entry>
183 <entry><ind> 209.9</ind> <dep> 0</dep></entry>
184 <entry><ind> 210.0</ind> <dep> 36</dep></entry>
185 <entry><ind> 219.9</ind> <dep> 36</dep></entry>
186 <entry><ind> 220.0</ind> <dep> 72</dep></entry>
187 <entry><ind> 229.9</ind> <dep> 72</dep></entry>
188 <entry><ind> 230.0</ind> <dep> 108</dep></entry>
189 <entry><ind> 239.9</ind> <dep> 108</dep></entry>
190 <entry><ind> 240.0</ind> <dep> 144</dep></entry>
191 <entry><ind> 249.9</ind> <dep> 144</dep></entry>
192 <entry><ind> 250.0</ind> <dep> 180</dep></entry>
193 <entry><ind> 259.9</ind> <dep> 180</dep></entry>
194 <entry><ind> 260.0</ind> <dep> 216</dep></entry>
195 <entry><ind> 269.9</ind> <dep> 216</dep></entry>
196 <entry><ind> 270.0</ind> <dep> 252</dep></entry>
197 <entry><ind> 279.9</ind> <dep> 252</dep></entry>
198 <entry><ind> 280.0</ind> <dep> 288</dep></entry>
199 <entry><ind> 289.9</ind> <dep> 288</dep></entry>
200 <entry><ind> 290.0</ind> <dep> 324</dep></entry>
201 <entry><ind> 299.9</ind> <dep> 324</dep></entry>
202 <entry><ind> 299.99</ind> <dep> 359.9</dep></entry>
203 <entry><ind> 300.0</ind> <dep> 0</dep></entry>
204 <entry><ind> 309.9</ind> <dep> 0</dep></entry>
205 <entry><ind> 310.0</ind> <dep> 36</dep></entry>
206 <entry><ind> 319.9</ind> <dep> 36</dep></entry>
207 <entry><ind> 320.0</ind> <dep> 72</dep></entry>
208 <entry><ind> 329.9</ind> <dep> 72</dep></entry>
209 <entry><ind> 330.0</ind> <dep> 108</dep></entry>
210 <entry><ind> 339.9</ind> <dep> 108</dep></entry>
211 <entry><ind> 340.0</ind> <dep> 144</dep></entry>
212 <entry><ind> 349.9</ind> <dep> 144</dep></entry>
213 <entry><ind> 350.0</ind> <dep> 180</dep></entry>
214 <entry><ind> 359.9</ind> <dep> 180</dep></entry>
215 <entry><ind> 359.99</ind> <dep> 359.99</dep></entry>
232 <object-name>dig_1_hund</object-name>
236 <property>tu154/systems/nvu/ZPU-1-smooth</property>
239 <entry><ind> 0.0</ind> <dep> 0</dep></entry>
240 <entry><ind> 99.9</ind> <dep> 0</dep></entry>
241 <entry><ind> 100.0</ind> <dep> 36</dep></entry>
242 <entry><ind> 199.9</ind> <dep> 36</dep></entry>
243 <entry><ind> 200.0</ind> <dep> 72</dep></entry>
244 <entry><ind> 299.9</ind> <dep> 72</dep></entry>
245 <entry><ind> 300.0</ind> <dep> 108</dep></entry>
246 <entry><ind> 359.9</ind> <dep> 108</dep></entry>
247 <entry><ind> 359.99</ind> <dep> 359.99</dep></entry>
264 <object-name>dig_2_min</object-name>
265 <property>tu154/systems/nvu/ZPU-2-smooth</property>
280 <object-name>dig_2_ones</object-name>
284 <property>tu154/systems/nvu/ZPU-2-smooth</property>
287 <entry><ind> 0.0</ind> <dep> 0</dep></entry>
288 <entry><ind> 0.9</ind> <dep> 0</dep></entry>
289 <entry><ind> 1.0</ind> <dep> 36</dep></entry>
290 <entry><ind> 1.9</ind> <dep> 36</dep></entry>
291 <entry><ind> 2.0</ind> <dep> 72</dep></entry>
292 <entry><ind> 2.9</ind> <dep> 72</dep></entry>
293 <entry><ind> 3.0</ind> <dep> 108</dep></entry>
294 <entry><ind> 3.9</ind> <dep> 108</dep></entry>
295 <entry><ind> 4.0</ind> <dep> 144</dep></entry>
296 <entry><ind> 4.9</ind> <dep> 144</dep></entry>
297 <entry><ind> 5.0</ind> <dep> 180</dep></entry>
298 <entry><ind> 5.9</ind> <dep> 180</dep></entry>
299 <entry><ind> 6.0</ind> <dep> 216</dep></entry>
300 <entry><ind> 6.9</ind> <dep> 216</dep></entry>
301 <entry><ind> 7.0</ind> <dep> 252</dep></entry>
302 <entry><ind> 7.9</ind> <dep> 252</dep></entry>
303 <entry><ind> 8.0</ind> <dep> 288</dep></entry>
304 <entry><ind> 8.9</ind> <dep> 288</dep></entry>
305 <entry><ind> 9.0</ind> <dep> 324</dep></entry>
306 <entry><ind> 9.9</ind> <dep> 324</dep></entry>
307 <entry><ind> 9.99</ind> <dep> 359.9</dep></entry>
324 <object-name>dig_2_dec</object-name>
328 <property>tu154/systems/nvu/ZPU-2-smooth</property>
331 <entry><ind> 0.0</ind> <dep> 0</dep></entry>
332 <entry><ind> 9.9</ind> <dep> 0</dep></entry>
333 <entry><ind> 10.0</ind> <dep> 36</dep></entry>
334 <entry><ind> 19.9</ind> <dep> 36</dep></entry>
335 <entry><ind> 20.0</ind> <dep> 72</dep></entry>
336 <entry><ind> 29.9</ind> <dep> 72</dep></entry>
337 <entry><ind> 30.0</ind> <dep> 108</dep></entry>
338 <entry><ind> 39.9</ind> <dep> 108</dep></entry>
339 <entry><ind> 40.0</ind> <dep> 144</dep></entry>
340 <entry><ind> 49.9</ind> <dep> 144</dep></entry>
341 <entry><ind> 50.0</ind> <dep> 180</dep></entry>
342 <entry><ind> 59.9</ind> <dep> 180</dep></entry>
343 <entry><ind> 60.0</ind> <dep> 216</dep></entry>
344 <entry><ind> 69.9</ind> <dep> 216</dep></entry>
345 <entry><ind> 70.0</ind> <dep> 252</dep></entry>
346 <entry><ind> 79.9</ind> <dep> 252</dep></entry>
347 <entry><ind> 80.0</ind> <dep> 288</dep></entry>
348 <entry><ind> 89.9</ind> <dep> 288</dep></entry>
349 <entry><ind> 90.0</ind> <dep> 324</dep></entry>
350 <entry><ind> 99.9</ind> <dep> 324</dep></entry>
351 <entry><ind> 99.99</ind> <dep> 359.9</dep></entry>
352 <entry><ind> 100.0</ind> <dep> 0</dep></entry>
353 <entry><ind> 109.9</ind> <dep> 0</dep></entry>
354 <entry><ind> 110.0</ind> <dep> 36</dep></entry>
355 <entry><ind> 119.9</ind> <dep> 36</dep></entry>
356 <entry><ind> 120.0</ind> <dep> 72</dep></entry>
357 <entry><ind> 129.9</ind> <dep> 72</dep></entry>
358 <entry><ind> 130.0</ind> <dep> 108</dep></entry>
359 <entry><ind> 139.9</ind> <dep> 108</dep></entry>
360 <entry><ind> 140.0</ind> <dep> 144</dep></entry>
361 <entry><ind> 149.9</ind> <dep> 144</dep></entry>
362 <entry><ind> 150.0</ind> <dep> 180</dep></entry>
363 <entry><ind> 159.9</ind> <dep> 180</dep></entry>
364 <entry><ind> 160.0</ind> <dep> 216</dep></entry>
365 <entry><ind> 169.9</ind> <dep> 216</dep></entry>
366 <entry><ind> 170.0</ind> <dep> 252</dep></entry>
367 <entry><ind> 179.9</ind> <dep> 252</dep></entry>
368 <entry><ind> 180.0</ind> <dep> 288</dep></entry>
369 <entry><ind> 189.9</ind> <dep> 288</dep></entry>
370 <entry><ind> 190.0</ind> <dep> 324</dep></entry>
371 <entry><ind> 199.9</ind> <dep> 324</dep></entry>
372 <entry><ind> 199.99</ind> <dep> 359.9</dep></entry>
373 <entry><ind> 200.0</ind> <dep> 0</dep></entry>
374 <entry><ind> 209.9</ind> <dep> 0</dep></entry>
375 <entry><ind> 210.0</ind> <dep> 36</dep></entry>
376 <entry><ind> 219.9</ind> <dep> 36</dep></entry>
377 <entry><ind> 220.0</ind> <dep> 72</dep></entry>
378 <entry><ind> 229.9</ind> <dep> 72</dep></entry>
379 <entry><ind> 230.0</ind> <dep> 108</dep></entry>
380 <entry><ind> 239.9</ind> <dep> 108</dep></entry>
381 <entry><ind> 240.0</ind> <dep> 144</dep></entry>
382 <entry><ind> 249.9</ind> <dep> 144</dep></entry>
383 <entry><ind> 250.0</ind> <dep> 180</dep></entry>
384 <entry><ind> 259.9</ind> <dep> 180</dep></entry>
385 <entry><ind> 260.0</ind> <dep> 216</dep></entry>
386 <entry><ind> 269.9</ind> <dep> 216</dep></entry>
387 <entry><ind> 270.0</ind> <dep> 252</dep></entry>
388 <entry><ind> 279.9</ind> <dep> 252</dep></entry>
389 <entry><ind> 280.0</ind> <dep> 288</dep></entry>
390 <entry><ind> 289.9</ind> <dep> 288</dep></entry>
391 <entry><ind> 290.0</ind> <dep> 324</dep></entry>
392 <entry><ind> 299.9</ind> <dep> 324</dep></entry>
393 <entry><ind> 299.99</ind> <dep> 359.9</dep></entry>
394 <entry><ind> 300.0</ind> <dep> 0</dep></entry>
395 <entry><ind> 309.9</ind> <dep> 0</dep></entry>
396 <entry><ind> 310.0</ind> <dep> 36</dep></entry>
397 <entry><ind> 319.9</ind> <dep> 36</dep></entry>
398 <entry><ind> 320.0</ind> <dep> 72</dep></entry>
399 <entry><ind> 329.9</ind> <dep> 72</dep></entry>
400 <entry><ind> 330.0</ind> <dep> 108</dep></entry>
401 <entry><ind> 339.9</ind> <dep> 108</dep></entry>
402 <entry><ind> 340.0</ind> <dep> 144</dep></entry>
403 <entry><ind> 349.9</ind> <dep> 144</dep></entry>
404 <entry><ind> 350.0</ind> <dep> 180</dep></entry>
405 <entry><ind> 359.9</ind> <dep> 180</dep></entry>
406 <entry><ind> 359.99</ind> <dep> 359.99</dep></entry>
423 <object-name>dig_2_hund</object-name>
427 <property>tu154/systems/nvu/ZPU-2-smooth</property>
430 <entry><ind> 0.0</ind> <dep> 0</dep></entry>
431 <entry><ind> 99.9</ind> <dep> 0</dep></entry>
432 <entry><ind> 100.0</ind> <dep> 36</dep></entry>
433 <entry><ind> 199.9</ind> <dep> 36</dep></entry>
434 <entry><ind> 200.0</ind> <dep> 72</dep></entry>
435 <entry><ind> 299.9</ind> <dep> 72</dep></entry>
436 <entry><ind> 300.0</ind> <dep> 108</dep></entry>
437 <entry><ind> 359.9</ind> <dep> 108</dep></entry>
438 <entry><ind> 359.99</ind> <dep> 359.99</dep></entry>
457 <object-name>hs_1</object-name>
458 <visible>false</visible>
461 <repeatable>true</repeatable>
462 <interval-sec>0.15</interval-sec>
464 <command>nasal</command>
465 <script>instruments.nvu_zpu_adjust(1, -1)</script>
469 <command>nasal</command>
470 <script>instruments.nvu_zpu_adjust(1, 0)</script>
477 <object-name>hs_2</object-name>
478 <visible>false</visible>
481 <repeatable>false</repeatable>
483 <command>property-cycle</command>
484 <property>tu154/instrumentation/v-140/adjust-step-1</property>
491 <command>set-tooltip</command>
492 <tooltip-id>nvu-adjust-step-1</tooltip-id>
493 <label>Adjust speed: %s</label>
494 <property>tu154/instrumentation/v-140/adjust-step-1</property>
495 <mapping>nasal</mapping>
496 <script>return (arg[0] == 0.1 ? "slow" : "fast")</script>
502 <object-name>hs_3</object-name>
503 <visible>false</visible>
506 <repeatable>true</repeatable>
507 <interval-sec>0.15</interval-sec>
509 <command>nasal</command>
510 <script>instruments.nvu_zpu_adjust(1, 1)</script>
514 <command>nasal</command>
515 <script>instruments.nvu_zpu_adjust(1, 0)</script>
522 <object-name>hs_4</object-name>
523 <visible>false</visible>
526 <repeatable>true</repeatable>
527 <interval-sec>0.15</interval-sec>
529 <command>nasal</command>
530 <script>instruments.nvu_zpu_adjust(2, -1)</script>
534 <command>nasal</command>
535 <script>instruments.nvu_zpu_adjust(2, 0)</script>
542 <object-name>hs_5</object-name>
543 <visible>false</visible>
546 <repeatable>false</repeatable>
548 <command>property-cycle</command>
549 <property>tu154/instrumentation/v-140/adjust-step-2</property>
556 <command>set-tooltip</command>
557 <tooltip-id>nvu-adjust-step-2</tooltip-id>
558 <label>Adjust speed: %s</label>
559 <property>tu154/instrumentation/v-140/adjust-step-2</property>
560 <mapping>nasal</mapping>
561 <script>return (arg[0] == 0.1 ? "slow" : "fast")</script>
567 <object-name>hs_6</object-name>
568 <visible>false</visible>
571 <repeatable>true</repeatable>
572 <interval-sec>0.15</interval-sec>
574 <command>nasal</command>
575 <script>instruments.nvu_zpu_adjust(2, 1)</script>
579 <command>nasal</command>
580 <script>instruments.nvu_zpu_adjust(2, 0)</script>