Tu-154B2 version 3.1:
[fg:toms-fgdata.git] / Aircraft / tu154b / Instruments-3d / pkp / pkp.xml
1 <!--
2     #############################################################################
3     #    (C) 2007 by Yurik V. Nikiforoff                                        #
4     #           yurik.nsk@gmail.com                                             #
5     #           Jul 2007, nov 2013                                              #
6     #############################################################################         
7     -->
8 <!-- Attitude indicator
9      3D instrument for Tu-154 -->
10 <PropertyList>
11   <params>
12     <pitch>instrumentation/attitude-indicator[0]/indicated-pitch-deg</pitch>
13     <roll>instrumentation/attitude-indicator[0]/indicated-roll-deg</roll>
14     <defl-course>tu154/instrumentation/pnp[0]/defl-course</defl-course>
15     <defl-gs>tu154/instrumentation/pnp[0]/defl-gs</defl-gs>
16     <failed>tu154/instrumentation/bkk/mgv-1-failure</failed>
17   </params>
18
19   <path>pkp.ac</path>
20   <!--External panel lighting-->
21   <animation>
22     <type>material</type>
23     <object-name>cover</object-name>
24     <emission>
25       <red-prop>tu154/light/panel/ext-red</red-prop>
26       <green-prop>tu154/light/panel/ext-green</green-prop>
27       <blue-prop>tu154/light/panel/ext-blue</blue-prop>
28     </emission>
29   </animation>
30
31   <!-- Internal instrument lighting -->  
32   <animation>
33     <type>material</type>
34     <object-name>internal</object-name>
35     <object-name>sphere</object-name>
36     <object-name>text_1</object-name>
37     <object-name>cylinder_1_t</object-name>
38     <object-name>cylinder_2_t</object-name>
39     <object-name>cylinder_3_t</object-name>
40     <object-name>right_face_t</object-name>
41     <object-name>right_h_t</object-name>
42     <object-name>right_v_t</object-name>
43     <object-name>test_t</object-name>
44     <object-name>center</object-name>
45     <object-name>right_h_t</object-name>
46     <object-name>gliss_flag</object-name>
47     <object-name>kurs_flag</object-name>
48     <object-name>ag_flag</object-name>
49     <object-name>kurs_marker</object-name>
50     <object-name>gliss_marker</object-name>
51     <object-name>gliss_ring</object-name>
52     <object-name>gliss_director</object-name>
53     <object-name>kurs_director</object-name>
54     <object-name>roll_marker</object-name>
55     <object-name>handle_marker</object-name>
56     <emission>
57       <red-prop>tu154/light/instruments/int-red</red-prop>
58       <green-prop>tu154/light/instruments/int-green</green-prop>
59       <blue-prop>tu154/light/instruments/int-blue</blue-prop>
60     </emission>
61   </animation>
62
63 <!--Attitude-->
64 <animation>
65     <type>rotate</type>
66     <object-name>sphere</object-name>
67     <object-name>roll_marker</object-name>
68     <property alias="../../params/roll"/>
69     <center>
70       <x-m>-0.07892</x-m>
71       <y-m>0.0</y-m>
72       <z-m>0.0</z-m>
73     </center>
74     <axis>
75       <x>1.0</x>
76       <y>0.0</y>
77       <z>0.0</z>
78     </axis>
79 </animation>
80   
81 <animation>
82   <type>rotate</type>
83   <object-name>sphere</object-name>
84   <property alias="../../params/pitch"/>
85   <center>
86     <x-m>-0.07892</x-m>
87     <y-m>0.0</y-m>
88     <z-m>0.0</z-m>
89   </center>
90   <axis>
91     <x>0.0</x>
92     <y>1.0</y>
93     <z>0.0</z>
94   </axis>
95 </animation>
96   
97 <!--Markers-->
98
99 <animation>
100   <type>rotate</type>
101   <object-name>gliss_marker</object-name>
102   <property alias="../../params/defl-gs"/>
103   <factor>25.0</factor>
104   <center>
105     <x-m>-0.06405</x-m>
106     <y-m>0.0</y-m>
107     <z-m>0.0</z-m>
108   </center>
109   <axis>
110     <x>0.0</x>
111     <y>-1.0</y>
112     <z>0.0</z>
113   </axis>
114 </animation>
115
116 <animation>
117   <type>rotate</type>
118   <object-name>gliss_ring</object-name>
119   <property>fdm/jsbsim/ap/at-error</property>
120   <factor>0.8</factor>
121   <max-deg>30.0</max-deg>
122   <min-deg>-30.0</min-deg>
123   <center>
124     <x-m>-0.06405</x-m>
125     <y-m>0.0</y-m>
126     <z-m>0.0</z-m>
127   </center>
128   <axis>
129     <x>0.0</x>
130     <y>-1.0</y>
131     <z>0.0</z>
132   </axis>
133 </animation>
134
135 <animation>
136   <type>rotate</type>
137   <object-name>kurs_marker</object-name>
138   <property alias="../../params/defl-course"/>
139   <factor>25.0</factor>
140   <center>
141     <x-m>-0.05872</x-m>
142     <y-m>0.0</y-m>
143     <z-m>0.0</z-m>
144   </center>
145   <axis>
146     <x>0.0</x>
147     <y>0.0</y>
148     <z>1.0</z>
149   </axis>
150 </animation>
151
152 <!--Directors-->
153
154 <animation>
155   <type>rotate</type>
156   <object-name>kurs_director</object-name>
157   <property>tu154/instrumentation/pkp[0]/roll-director</property>  
158   <factor>57.3</factor>
159   <max-deg>30.0</max-deg>
160   <min-deg>-30.0</min-deg>
161
162   <center>
163     <x-m>-0.07892</x-m>
164     <y-m>0.0</y-m>
165     <z-m>0.0</z-m>
166   </center>
167   <axis>
168     <x>0.0</x>
169     <y>0.0</y>
170     <z>1.0</z>
171   </axis>
172 </animation>
173
174 <animation>
175   <type>rotate</type>
176   <object-name>gliss_director</object-name>
177   <property>tu154/instrumentation/pkp[0]/pitch-director</property>  
178   <factor>114.6</factor>
179   <max-deg>30.0</max-deg>
180   <min-deg>-30.0</min-deg>
181   <center>
182     <x-m>-0.07892</x-m>
183     <y-m>0.0</y-m>
184     <z-m>0.0</z-m>
185   </center>
186   <axis>
187     <x>0.0</x>
188     <y>-1.0</y>
189     <z>0.0</z>
190   </axis>
191 </animation>
192
193
194 <!--Slip-->
195 <animation>
196   <type>rotate</type>
197   <object-name>slip_ball</object-name>
198   <property>instrumentation/slip-skid-ball/indicated-slip-skid</property>
199   <max-deg>10.0</max-deg>
200   <min-deg>-10.0</min-deg>
201   <center>
202     <x-m>0.0</x-m>
203     <y-m>0.0</y-m>
204     <z-m>0.1</z-m>
205   </center>
206   <axis>
207     <x>-1.0</x>
208     <y>0.0</y>
209     <z>0.0</z>
210   </axis>
211 </animation>
212
213 <!--Blankers-->
214
215 <animation>
216   <type>rotate</type>
217   <object-name>kurs_flag</object-name>
218   <expression>
219     <table>
220       <sum>
221         <property>tu154/instrumentation/pnp[0]/blank-gs</property>
222         <property>tu154/instrumentation/pkp/gliss-failure</property>
223       </sum>
224       <entry><ind>0</ind><dep>180</dep></entry>
225       <entry><ind>1</ind><dep>360</dep></entry>
226       <entry><ind>2</ind><dep>360</dep></entry>
227     </table>
228   </expression>
229   <center>
230     <x-m>0.0</x-m>
231     <y-m>0.024</y-m>
232     <z-m>0.0488</z-m>
233   </center>
234   <axis>
235     <x>1.0</x>
236     <y>0.0</y>
237     <z>0.0</z>
238   </axis>
239 </animation>
240
241 <animation>
242   <type>rotate</type>
243   <object-name>gliss_flag</object-name>
244   <expression>
245     <table>
246       <sum>
247         <property>tu154/instrumentation/pnp[0]/blank-course</property>
248         <property>tu154/instrumentation/pkp/kurs-failure</property>
249       </sum>
250       <entry><ind>0</ind><dep>180</dep></entry>
251       <entry><ind>1</ind><dep>360</dep></entry>
252       <entry><ind>2</ind><dep>360</dep></entry>
253     </table>
254   </expression>
255   <center>
256     <x-m>0.0</x-m>
257     <y-m>-0.055</y-m>
258     <z-m>0.0267</z-m>
259   </center>
260   <axis>
261     <x>1.0</x>
262     <y>0.0</y>
263     <z>0.0</z>
264   </axis>
265 </animation>
266
267 <animation>
268   <type>rotate</type>
269   <object-name>ag_flag</object-name>
270   <property alias="../../params/failed"/>
271   <factor>180.0</factor>
272   <offset-deg>180.0</offset-deg>
273   <center>
274     <x-m>0.0</x-m>
275     <y-m>-0.0615</y-m>
276     <z-m>-0.0397</z-m>
277   </center>
278   <axis>
279     <x>1.0</x>
280     <y>0.0</y>
281     <z>0.0</z>
282   </axis>
283 </animation>
284
285 <!--+++++++++++++++++ pitch ++++++++++++++++++-->
286
287 <!--Modified by Yurik dec 2013 for new AP code-->
288 <animation>
289   <type>pick</type>
290   <object-name>hs2</object-name>
291   <object-name>hs4</object-name>
292   <visible>false</visible>
293   <action>
294     <button>0</button>
295     <binding>
296       <command>property-assign</command>
297       <property>fdm/jsbsim/ap/stab-input-pitch-rad</property>
298       <value>0.0</value>
299     </binding>
300     <binding>
301       <command>property-assign</command>
302       <property>tu154/switches/pu-46-pitch-wheel</property>
303       <value>0.0</value>
304     </binding>
305     <binding>
306       <command>nasal</command>
307       <script>absu.absu_drop_mvh()</script>
308     </binding>    
309   </action>
310 </animation>
311
312 <!--Mouse wheel-->
313
314 <animation>
315   <type>pick</type>
316   <object-name>hs2</object-name>
317   <object-name>hs4</object-name>
318   <visible>false</visible>
319   <action>
320     <button>3</button>
321     <repeatable>false</repeatable>
322     <binding>
323       <command>property-adjust</command>
324       <property>tu154/switches/pu-46-pitch-wheel</property>
325       <step>5.0</step>
326       <max>170</max>
327     </binding>
328     <binding>
329       <command>property-adjust</command>
330       <property>fdm/jsbsim/ap/stab-input-pitch-rad</property>
331       <step>-0.0085</step>
332       <min>-0.3</min>
333     </binding>
334     <binding>
335       <command>nasal</command>
336       <script>absu.absu_drop_mvh()</script>
337     </binding>
338   </action>
339 </animation>
340
341 <animation>
342   <type>pick</type>
343   <object-name>hs2</object-name>
344   <object-name>hs4</object-name>
345   <visible>false</visible>
346   <action>
347     <button>4</button>
348     <repeatable>false</repeatable>
349     <binding>
350       <command>property-adjust</command>
351       <property>tu154/switches/pu-46-pitch-wheel</property>
352       <step>-5.0</step>
353       <min>-170.0</min>
354     </binding>
355     <binding>
356       <command>property-adjust</command>
357       <property>fdm/jsbsim/ap/stab-input-pitch-rad</property>
358       <step>0.0085</step>
359       <max>0.3</max>
360     </binding>
361     <binding>
362       <command>nasal</command>
363       <script>absu.absu_drop_mvh()</script>
364     </binding>
365   </action>
366 </animation>
367
368 <!--+++++++++++++++++heading++++++++++++++++++-->
369 <animation>
370   <type>pick</type>
371   <object-name>hs1</object-name>
372   <visible>false</visible>
373   <action>
374     <button>0</button>
375     <repeatable>true</repeatable>
376     <interval-sec>0.15</interval-sec>
377     <binding>
378       <command>property-adjust</command>
379       <property>tu154/switches/pu-46-heading-wheel</property>
380       <step>1.0</step>
381       <min>-90.0</min>
382       <max>90.0</max>
383       <wrap>false</wrap>
384     </binding>
385     <binding>
386       <command>property-adjust</command>
387       <property>fdm/jsbsim/ap/stab-input-roll-rad</property>
388       <step>0.0056</step>
389       <max>0.5</max>
390     </binding>
391   </action>
392 </animation>
393
394 <animation>
395   <type>pick</type>
396   <object-name>hs3</object-name>
397   <visible>false</visible>
398   <action>
399     <button>0</button>
400     <repeatable>true</repeatable>
401     <interval-sec>0.15</interval-sec>
402     <binding>
403       <command>property-adjust</command>
404       <property>tu154/switches/pu-46-heading-wheel</property>
405       <step>-1.0</step>
406       <min>-90.0</min>
407       <max>90.0</max>
408       <wrap>false</wrap>
409     </binding>
410     <binding>
411       <command>property-adjust</command>
412       <property>fdm/jsbsim/ap/stab-input-roll-rad</property>
413       <step>-0.0056</step>
414       <min>-0.5</min>
415     </binding>
416   </action>
417 </animation>
418
419 <!--Mouse wheel-->
420 <animation>
421   <type>pick</type>
422   <object-name>hs1</object-name>
423   <visible>false</visible>
424   <action>
425     <button>3</button>
426     <repeatable>false</repeatable>
427     <binding>
428       <command>property-adjust</command>
429       <property>tu154/switches/pu-46-heading-wheel</property>
430       <step>5.0</step>
431       <min>-90.0</min>
432       <max>90.0</max>
433       <wrap>false</wrap>
434     </binding>
435     <binding>
436       <command>property-adjust</command>
437       <property>fdm/jsbsim/ap/stab-input-roll-rad</property>
438       <step>0.028</step>
439       <max>0.5</max>
440     </binding>
441   </action>
442     <action>
443     <button>4</button>
444     <repeatable>false</repeatable>
445     <binding>
446       <command>property-adjust</command>
447       <property>tu154/switches/pu-46-heading-wheel</property>
448       <step>-5.0</step>
449       <min>-90.0</min>
450       <max>90.0</max>
451       <wrap>false</wrap>
452     </binding>
453     <binding>
454       <command>property-adjust</command>
455       <property>fdm/jsbsim/ap/stab-input-roll-rad</property>
456       <step>-0.028</step>
457       <min>-0.5</min>
458     </binding>
459   </action>
460 </animation>
461
462 <animation>
463   <type>pick</type>
464   <object-name>hs3</object-name>
465   <visible>false</visible>
466     <action>
467     <button>3</button>
468     <repeatable>false</repeatable>
469     <binding>
470       <command>property-adjust</command>
471       <property>tu154/switches/pu-46-heading-wheel</property>
472       <step>5.0</step>
473       <min>-90.0</min>
474       <max>90.0</max>
475       <wrap>false</wrap>
476     </binding>
477     <binding>
478       <command>property-adjust</command>
479       <property>fdm/jsbsim/ap/stab-input-roll-rad</property>
480       <step>0.028</step>
481       <max>0.5</max>
482     </binding>
483   </action>
484     <action>
485     <button>4</button>
486     <repeatable>false</repeatable>
487     <binding>
488       <command>property-adjust</command>
489       <property>tu154/switches/pu-46-heading-wheel</property>
490       <step>-5.0</step>
491       <min>-90.0</min>
492       <max>90.0</max>
493       <wrap>false</wrap>
494     </binding>
495     <binding>
496       <command>property-adjust</command>
497       <property>fdm/jsbsim/ap/stab-input-roll-rad</property>
498       <step>-0.028</step>
499       <min>-0.5</min>
500     </binding>
501   </action>
502 </animation>
503
504
505
506
507
508 </PropertyList>