Debian Codegraph @

Aircraft/c172p/Models/Interior/Panel/Flaps/flaps.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2
3 <PropertyList>
4
5 <path>flaps.ac</path>
6
7 <params>
8 <flaps-lever>/sim/model/c172p/cockpit/flaps-lever</flaps-lever>
9 </params>
10
11 <effect>
12 <inherits-from>../../../Effects/interior/lm-flaps</inherits-from>
13 <object-name>FlapSwitch</object-name>
14 <object-name>FlapPos</object-name>
15 <object-name>rect</object-name>
16 <object-name>legend</object-name>
17 </effect>
18
19 <!-- ================================================================== -->
20 <!-- Flaps position indicator -->
21 <!-- ================================================================== -->
22
23 <animation>
24 <type>translate</type>
25 <property>surface-positions/flap-pos-norm</property>
26 <object-name>FlapPos</object-name>
27 <axis>
28 <x>0.0</x>
29 <y>0.0</y>
30 <z>-1.0</z>
31 </axis>
32 <interpolation>
33 <entry>
34 <ind>0.0</ind>
35 <dep>0.0</dep>
36 </entry>
37 <entry>
38 <ind>0.333333</ind>
39 <dep>0.022</dep>
40 </entry>
41 <entry>
42 <ind>0.666666</ind>
43 <dep>0.034</dep>
44 </entry>
45 <entry>
46 <ind>1.0</ind>
47 <dep>0.045</dep>
48 </entry>
49 </interpolation>
50 </animation>
51
52 <!-- ================================================================== -->
53 <!-- Flaps lever -->
54 <!-- ================================================================== -->
55
56 <animation>
57 <type>slider</type>
58 <drag-direction>vertical</drag-direction>
59 <drag-scale-px>30</drag-scale-px>
60 <property alias="/params/flaps-lever"/>
61 <object-name>FlapSwitch</object-name>
62 <axis>
63 <x>0.0</x>
64 <y>0.0</y>
65 <z>-1.0</z>
66 </axis>
67 <interpolation>
68 <entry>
69 <ind>0.0</ind>
70 <dep>0.0</dep>
71 </entry>
72 <entry>
73 <ind>0.333333</ind>
74 <dep>0.022</dep>
75 </entry>
76 <entry>
77 <ind>0.666666</ind>
78 <dep>0.036</dep>
79 </entry>
80 <entry>
81 <ind>1.0</ind>
82 <dep>0.052</dep>
83 </entry>
84 </interpolation>
85
86 <!-- Flaps moving down -->
87 <decrease>
88 <binding>
89 <command>nasal</command>
90 <script>controls.flapsDown(1);</script>
91 </binding>
92 </decrease>
93
94 <!-- Flaps moving up -->
95 <increase>
96 <binding>
97 <command>nasal</command>
98 <script>controls.flapsDown(-1);</script>
99 </binding>
100 </increase>
101 </animation>
102
103 <animation>
104 <type>translate</type>
105 <property alias="/params/flaps-lever"/>
106 <object-name>FlapSwitch</object-name>
107 <axis>
108 <x>0.0</x>
109 <y>1.0</y>
110 <z>0.0</z>
111 </axis>
112 <interpolation>
113 <entry>
114 <ind>0.0</ind>
115 <dep>-0.001</dep>
116 </entry>
117 <entry>
118 <ind>0.333333</ind>
119 <dep>-0.001</dep>
120 </entry>
121 <entry>
122 <ind>0.345</ind>
123 <dep>0.0035</dep>
124 </entry>
125 <entry>
126 <ind>0.666666</ind>
127 <dep>0.0035</dep>
128 </entry>
129 <entry>
130 <ind>0.675</ind>
131 <dep>0.0055</dep>
132 </entry>
133 <entry>
134 <ind>1.0</ind>
135 <dep>0.0055</dep>
136 </entry>
137 </interpolation>
138 </animation>
139
140 <animation>
141 <type>material</type>
142 <object-name>FlapSwitch</object-name>
143 <object-name>FlapPos</object-name>
144 <object-name>rect</object-name>
145 <condition>
146 <or>
147 <not>
148 <property>sim/rendering/shaders/skydome</property>
149 </not>
150 <equals>
151 <property>sim/rendering/shaders/model</property>
152 <value>0</value>
153 </equals>
154 </or>
155 </condition>
156 <emission>
157 <red-prop>/sim/model/c172p/lighting/rgb-ra-r-factor</red-prop>
158 <green-prop>/sim/model/c172p/lighting/rgb-ra-g-factor</green-prop>
159 <blue-prop>/sim/model/c172p/lighting/rgb-ra-b-factor</blue-prop>
160 </emission>
161 </animation>
162
163 </PropertyList>