Computing gun sight code with USAAF K-14A sight.
[fg:toms-fgdata.git] / Aircraft / Instruments-3d / computing-gun-sights / K14 / K14.xml
1 <?xml version="1.0"?>
2 <PropertyList>
3
4  <path>K14-sight.ac</path>
5
6  <animation>
7     <type>range</type>
8     <min-m>0</min-m>
9     <max-m>40</max-m>
10  </animation>
11
12  <animation>
13    <type>material</type>
14    <emission>
15       <factor-prop>controls/lighting/cabin-norm</factor-prop>
16       <red>0.25</red>
17       <green>0.12</green>
18       <blue>0.12</blue>
19    </emission>
20  </animation>
21  
22   <animation>
23    <type>rotate</type>
24    <object-name>sunShield</object-name> 
25    <object-name>sunShieldGlass</object-name>
26    <factor>95</factor>
27    <property>/controls/armament/gunsight/sunScreenDown</property>
28    <center>
29      <x-m>-0.0673</x-m>
30      <y-m>0</y-m>
31      <z-m>0.0416</z-m>
32    </center>
33    <axis>
34      <x>0</x>
35      <y>-1</y>
36      <z>0</z>
37    </axis>
38  </animation>
39  
40   <animation>
41    <type>rotate</type>
42    <object-name>sunShadeControlLever</object-name> 
43    <factor>75</factor>
44    <property>/controls/armament/gunsight/sunScreenDown</property>
45    <center>
46      <x-m>-0.0239</x-m>
47      <y-m>0</y-m>
48      <z-m>0.0172</z-m>
49    </center>
50    <axis>
51      <x>0</x>
52      <y>1</y>
53      <z>0</z>
54    </axis>
55  </animation> 
56  
57    <animation>
58     <type>pick</type>
59     <object-name>sunShadeControlLever</object-name> 
60     <action>
61       <button>0</button>
62       <repeatable>false</repeatable>
63       <binding>
64         <command>property-toggle</command> 
65         <property>/controls/armament/gunsight/sunScreenDown</property>     
66       </binding>
67     </action>
68  </animation>
69    
70  <animation>
71    <type>rotate</type>
72    <object-name>mask-knob</object-name> 
73    <object-name>mask-lever</object-name>
74    <property>/controls/armament/gunsight/mask-off</property>
75    <interpolation>
76       <entry>
77          <ind>0</ind>
78          <dep>45</dep>
79       </entry>
80           <entry>
81          <ind>1</ind>
82          <dep>0</dep>
83       </entry>
84    </interpolation>
85    <center>
86      <x-m>-0.052</x-m>
87      <y-m>-0.067911</y-m>
88      <z-m>0.0112</z-m>
89    </center>
90    <axis>
91      <x>0</x>
92      <y>1</y>
93      <z>0</z>
94    </axis>
95  </animation>
96  
97  <animation>
98    <type>pick</type>
99    <object-name>mask-knob</object-name>
100    <action>
101      <button>0</button>
102      <repeatable>false</repeatable>
103      <binding>
104         <command>property-toggle</command> 
105         <property>/controls/armament/gunsight/mask-off</property>          
106      </binding>
107    </action>    
108  </animation>
109  
110  <animation>
111    <type>rotate</type>
112    <object-name>span-lever</object-name> 
113    <property>/controls/armament/gunsight/span</property>
114       <interpolation>
115       <entry>
116          <ind>30</ind>
117          <dep>-56.0</dep>
118       </entry>
119           <entry>
120          <ind>40</ind>
121          <dep>-34.0</dep>
122       </entry>
123           <entry>
124          <ind>50</ind>
125          <dep>-13.0</dep>
126       </entry>
127       <entry>
128          <ind>60</ind>
129          <dep>0.0</dep>
130       </entry>
131           <entry>
132          <ind>70</ind>
133          <dep>12.0</dep>
134       </entry>
135           <entry>
136          <ind>80</ind>
137          <dep>24.0</dep>
138       </entry>
139           <entry>
140          <ind>90</ind>
141          <dep>34.0</dep>
142       </entry>
143           <entry>
144          <ind>100</ind>
145          <dep>42.0</dep>
146       </entry>
147           <entry>
148          <ind>110</ind>
149          <dep>50.0</dep>
150       </entry>
151       <entry>
152          <ind>120</ind>
153          <dep>56.0</dep>
154       </entry>
155    </interpolation>
156    <center>
157      <x-m>-0.0002</x-m>
158      <y-m>0.0005</y-m>
159      <z-m>-0.0105</z-m>
160    </center>
161    <axis>
162      <x>0.75</x>
163      <y>0</y>
164      <z>-0.25</z>
165    </axis>
166  </animation> 
167  
168    <animation>
169     <type>pick</type>
170     <object-name>span-scale</object-name> 
171     <action>
172            <button>1</button>
173        <repeatable>true</repeatable>
174        <binding>
175           <command>property-adjust</command>
176           <property>/controls/armament/gunsight/span</property>
177           <step>-1</step>
178           <min>30</min>
179           <max>120</max>
180        </binding>               
181     </action>
182  </animation>
183  
184    <animation>
185     <type>pick</type>
186     <object-name>span-scale</object-name>
187     <action>
188            <button>0</button>
189        <repeatable>true</repeatable>
190        <binding>              
191           <command>property-adjust</command>
192           <property>/controls/armament/gunsight/span</property>
193           <step>1</step>
194           <min>30</min>
195           <max>120</max>
196        </binding>               
197     </action>
198  </animation>
199  
200   <animation>
201    <type>rotate</type>
202    <object-name>rangeDial</object-name> 
203    <property>/controls/armament/gunsight/range</property>
204       <interpolation>
205       <entry>
206          <ind>600</ind>
207          <dep>0</dep>
208       </entry>
209           <entry>
210          <ind>650</ind>
211          <dep>26</dep>
212       </entry>
213           <entry>
214          <ind>700</ind>
215          <dep>49</dep>
216       </entry>
217       <entry>
218          <ind>750</ind>
219          <dep>70.5</dep>
220       </entry>
221           <entry>
222          <ind>800</ind>
223          <dep>90</dep>
224       </entry>
225           <entry>
226          <ind>850</ind>
227          <dep>107</dep>
228       </entry>
229           <entry>
230          <ind>900</ind>
231          <dep>123</dep>
232       </entry>
233           <entry>
234          <ind>950</ind>
235          <dep>140</dep>
236       </entry>
237           <entry>
238          <ind>1000</ind>
239          <dep>154</dep>
240       </entry>
241       <entry>
242          <ind>1100</ind>
243          <dep>168</dep>
244       </entry>
245           <entry>
246          <ind>1200</ind>
247          <dep>182</dep>
248       </entry>
249           <entry>
250          <ind>1300</ind>
251          <dep>194</dep>
252       </entry>
253           <entry>
254          <ind>1400</ind>
255          <dep>206</dep>
256       </entry>
257       <entry>
258          <ind>1500</ind>
259          <dep>217</dep>
260       </entry>
261           <entry>
262          <ind>1600</ind>
263          <dep>228</dep>
264       </entry>
265           <entry>
266          <ind>1700</ind>
267          <dep>240.5</dep>
268       </entry>
269           <entry>
270          <ind>1800</ind>
271          <dep>252</dep>
272       </entry>
273           <entry>
274          <ind>1900</ind>
275          <dep>261</dep>
276       </entry>
277           <entry>
278          <ind>2000</ind>
279          <dep>270</dep>
280       </entry>
281       <entry>
282          <ind>2100</ind>
283          <dep>282</dep>
284       </entry>
285           <entry>
286          <ind>2200</ind>
287          <dep>294</dep>
288       </entry>
289           <entry>
290          <ind>2300</ind>
291          <dep>305</dep>
292       </entry>
293           <entry>
294          <ind>2400</ind>
295          <dep>315</dep>
296       </entry>
297    </interpolation>
298    <center>
299      <x-m>-0.0485</x-m>
300      <y-m>-0.0762</y-m>
301      <z-m>-0.05053</z-m>
302    </center>
303    <axis>
304      <x>0</x>
305      <y>-1</y>
306      <z>0</z>
307    </axis>
308  </animation> 
309  
310     <animation>
311     <type>pick</type>
312     <object-name>rangeDial</object-name> 
313     <action>
314            <button>1</button>
315        <repeatable>true</repeatable>
316        <binding>
317           <command>property-adjust</command>
318           <property>/controls/armament/gunsight/range</property>
319           <step>30</step>
320           <min>600</min>
321           <max>2400</max>
322        </binding>               
323     </action>
324  </animation>
325  
326  <animation>
327     <type>pick</type>
328     <object-name>rangeDial</object-name>
329     <action>
330            <button>0</button>
331        <repeatable>true</repeatable>
332        <binding>              
333           <command>property-adjust</command>
334           <property>/controls/armament/gunsight/range</property>
335           <step>-30</step>
336           <min>600</min>
337           <max>2400</max>
338        </binding>               
339     </action>
340  </animation>
341  
342   <effect>
343     <inherits-from>Effects/model-transparent</inherits-from>
344     <condition>
345       <property>/sim/rendering/rembrandt/enabled</property>
346     </condition>
347     <object-name>reflector-plate</object-name>
348   </effect>
349
350 </PropertyList>