Computing gun sight code with USAAF K-14A sight.
[fg:toms-fgdata.git] / Aircraft / Instruments-3d / computing-gun-sights / K14 / sight-controler.xml
1 <?xml version="1.0"?>
2 <PropertyList>
3
4  <path>Aircraft/Instruments-3d/computing-gun-sights/K14/K14-controller.ac</path>
5
6   <animation>
7      <type>range</type>
8      <min-m>0</min-m>
9      <max-m>45</max-m>
10   </animation>
11
12  <animation>
13     <type>material</type>
14     <object-name>GS-gyro-fixed</object-name>
15     <object-name>GS-brightness</object-name>
16     <object-name>GS-power</object-name>
17     <object-name>GS-body</object-name>
18         <object-name>Switch</object-name>
19         <object-name>switchGuard</object-name>
20         <object-name>switchCase</object-name>
21         <object-name>switchNut</object-name>
22         <object-name>upperSwitchPlate</object-name>
23     <emission>
24         <factor-prop>/controls/lighting/cabin-norm</factor-prop>
25         <red>0.2</red>
26         <green>0.1</green>
27         <blue>0.1</blue>
28     </emission>
29  </animation>
30  
31  <animation>
32   <type>rotate</type>
33   <object-name>GS-brightness</object-name>
34   <property>/controls/armament/gunsight/intensity</property>
35   <interpolation>
36       <entry>
37          <ind>0</ind>
38          <dep>140.0</dep>
39       </entry>
40           <entry>
41          <ind>0.5</ind>
42          <dep>0</dep>
43       </entry>
44           <entry>
45          <ind>1.0</ind>
46          <dep>-140.0</dep>
47       </entry>
48         </interpolation>
49         <center>
50      <x-m>0.0475</x-m>
51      <y-m>-0.00006</y-m>
52      <z-m>0.0</z-m> 
53    </center>
54    <axis>
55      <x>0</x>
56      <y>0</y>
57      <z>1</z>
58    </axis>        
59  </animation>
60  
61  <animation>
62     <type>rotate</type>
63     <object-name>GS-gyro-fixed</object-name>
64     <property>/controls/armament/gunsight/reticleSelectorPos</property> 
65     <interpolation>
66       <entry>
67          <ind>0</ind>
68          <dep>90.0</dep>
69       </entry>
70           <entry>
71          <ind>1</ind>
72          <dep>0</dep>
73       </entry>
74           <entry>
75          <ind>2</ind>
76          <dep>-90.0</dep>
77       </entry>
78         </interpolation>
79         <center>
80        <x-m>-0.0474</x-m>
81        <y-m>0.000032</y-m>
82        <z-m>0.</z-m> 
83     </center>
84     <axis>
85        <x>0</x>
86        <y>0</y>
87        <z>1</z>
88     </axis>       
89  </animation>
90  
91  <animation>
92    <type>rotate</type>
93    <object-name>Switch</object-name>
94    <property>/controls/armament/gunsight/computer-on</property>
95    <interpolation>
96       <entry>
97          <ind>0</ind>
98          <dep>0</dep>
99       </entry>
100           <entry>
101          <ind>1</ind>
102          <dep>-60</dep>
103       </entry>
104         </interpolation>
105    <center>
106        <x-m>0.000056</x-m>
107        <y-m>0.01</y-m>
108        <z-m>0.0082</z-m> 
109     </center>
110     <axis>
111        <x>1</x>
112        <y>0</y>
113        <z>0</z>
114     </axis>       
115  </animation>
116  
117  <animation>
118    <type>pick</type>
119    <object-name>Switch</object-name>
120    <action>
121      <button>0</button>
122      <binding>
123         <command>property-toggle</command>
124         <property>/controls/armament/gunsight/computer-on</property>
125      </binding>         
126    </action>
127  </animation>
128  
129   <animation>
130     <type>pick</type>
131     <object-name>GS-brightness</object-name>
132     <action>
133            <button>1</button>
134        <repeatable>true</repeatable>
135        <binding>
136           <command>property-adjust</command>
137           <property>/controls/armament/gunsight/intensity</property>
138           <step>0.01</step>
139           <min>0</min>
140           <max>1</max>
141        </binding>               
142     </action>
143  </animation>
144  
145    <animation>
146     <type>pick</type>
147     <object-name>GS-brightness</object-name>
148     <action>
149            <button>0</button>
150        <repeatable>true</repeatable>
151        <binding>              
152           <command>property-adjust</command>
153           <property>/controls/armament/gunsight/intensity</property>
154           <step>-0.01</step>
155           <min>0</min>
156           <max>1</max>
157        </binding>               
158     </action>
159  </animation>
160  
161    <animation>
162     <type>pick</type>
163     <object-name>GS-gyro-fixed</object-name>
164     <action>
165            <button>1</button>
166        <repeatable>false</repeatable>
167        <binding>
168           <command>property-adjust</command>
169           <property>/controls/armament/gunsight/reticleSelectorPos</property>
170           <step>1</step>
171           <min>0</min>
172           <max>2</max>
173        </binding>               
174     </action>
175  </animation>
176  
177    <animation>
178     <type>pick</type>
179     <object-name>GS-gyro-fixed</object-name>
180     <action>
181            <button>0</button>
182        <repeatable>false</repeatable>
183        <binding>              
184           <command>property-adjust</command>
185           <property>/controls/armament/gunsight/reticleSelectorPos</property>
186           <step>-1</step>
187           <min>0</min>
188           <max>2</max>
189        </binding>               
190     </action>
191  </animation>
192  
193 </PropertyList>
194
195