Debian Codegraph @

Environment/interpolator.xml

raw symbols SCIP
1 <?xml version="1.0" ?>
2 <!--
3 This file is part of FlightGear, the free flight simulator
4 http://www.flightgear.org/
5
6 Copyright (C) 2009 Torsten Dreyer, Torsten (at) t3r _dot_ de
7
8 This program is free software; you can redistribute it and/or
9 modify it under the terms of the GNU General Public License as
10 published by the Free Software Foundation; either version 2 of the
11 License, or (at your option) any later version.
12
13 This program is distributed in the hope that it will be useful, but
14 WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 General Public License for more details.
17 -->
18 <!--
19 Interpolate the values of /environment/interpolated/* over time
20 and write the results to /environment/*, the environment of our
21 aircraft
22 All filters are enabled on /environment/config/enabled=true
23 -->
24 <PropertyList>
25
26 <filter>
27 <name>EnvironmentInterpolator:temperature-sea-level-degc</name>
28 <enable>
29 <property>/environment/config/enabled</property>
30 </enable>
31 <input>/environment/config/interpolated/temperature-sea-level-degc</input>
32 <output>/environment/temperature-sea-level-degc</output>
33 <type>noise-spike</type>
34 <max-rate-of-change>0.1667</max-rate-of-change>
35 </filter>
36
37 <filter>
38 <name>EnvironmentInterpolator:dewpoint-sea-level-degc</name>
39 <enable>
40 <property>/environment/config/enabled</property>
41 </enable>
42 <input>/environment/config/interpolated/dewpoint-sea-level-degc</input>
43 <output>/environment/dewpoint-sea-level-degc</output>
44 <type>noise-spike</type>
45 <max-rate-of-change>0.1667</max-rate-of-change>
46 </filter>
47
48 <filter>
49 <!--
50 transfer the interpolated QNH to the global environment
51 limit the rate of change to approx 1hpa/sec
52 -->
53 <name>EnvironmentInterpolator:pressure-sea-level-inhg</name>
54 <type>noise-spike</type>
55 <max-rate-of-change>0.03</max-rate-of-change>
56 <enable>
57 <property>/environment/config/enabled</property>
58 </enable>
59 <input>/environment/config/interpolated/pressure-sea-level-inhg</input>
60 <output>/environment/pressure-sea-level-inhg</output>
61 </filter>
62
63 <filter>
64 <name>EnvironmentInterpolator:visibility-m</name>
65 <enable>
66 <property>/environment/config/enabled</property>
67 </enable>
68 <input>
69 <condition>
70 <property>/environment/config/presets/visibility-m-override</property>
71 </condition>
72 <property>/environment/config/presets/visibility-m</property>
73 </input>
74 <input>/environment/config/interpolated/visibility-m</input>
75 <output>/environment/visibility-m</output>
76 <type>exponential</type>
77 <filter-time>2</filter-time>
78 </filter>
79
80 <!--
81 filter the wind vector by filtering the cartesian representation
82 -->
83 <filter>
84 <name>EnvironmentInterpolator:wind-from-north</name>
85 <enable>
86 <property>/environment/config/enabled</property>
87 </enable>
88 <input>
89 <condition>
90 <property>/environment/config/presets/wind-override</property>
91 </condition>
92 <property>/environment/config/presets/wind-from-north-fps</property>
93 </input>
94 <input>/environment/config/interpolated/wind-from-north-fps</input>
95 <output>/environment/wind-from-north-fps</output>
96 <type>noise-spike</type>
97 <max-rate-of-change>0.5</max-rate-of-change>
98 </filter>
99
100 <filter>
101 <name>EnvironmentInterpolator:wind-from-east</name>
102 <enable>
103 <property>/environment/config/enabled</property>
104 </enable>
105 <input>
106 <condition>
107 <property>/environment/config/presets/wind-override</property>
108 </condition>
109 <property>/environment/config/presets/wind-from-east-fps</property>
110 </input>
111 <input>/environment/config/interpolated/wind-from-east-fps</input>
112 <output>/environment/wind-from-east-fps</output>
113 <type>noise-spike</type>
114 <max-rate-of-change>0.5</max-rate-of-change>
115 </filter>
116
117 <filter>
118 <name>EnvironmentInterpolator:wind-from-down</name>
119 <input>
120 <expression>
121 <sum>
122 <property>/environment/thermal-lift-fps</property>
123 <property>/environment/ridge-lift-fps</property>
124 <property>/environment/local-weather-lift-fps</property>
125 </sum>
126 </expression>
127 </input>
128 <output>/environment/wind-from-down-fps</output>
129 <type>noise-spike</type>
130 <max-rate-of-change>2.0</max-rate-of-change>
131 </filter>
132
133 <filter>
134 <name>EnvironmentInterpolator:turbulence-raw-magnitude</name>
135 <enable>
136 <property>/environment/config/enabled</property>
137 </enable>
138 <input>
139 <condition>
140 <property>/environment/config/presets/turbulence-magnitude-norm-override</property>
141 </condition>
142 <property>/environment/config/presets/turbulence-magnitude-norm</property>
143 </input>
144 <input>
145 <property>/environment/config/interpolated/turbulence/magnitude-norm</property>
146 </input>
147 <output>/environment/turbulence/raw-magnitude-norm</output>
148 <type>noise-spike</type>
149 <max-rate-of-change>0.2</max-rate-of-change>
150 </filter>
151
152 <filter>
153 <name>EnvironmentInterpolator:turbulence-magnitude</name>
154 <enable>
155 <property>/environment/config/enabled</property>
156 </enable>
157 <input>
158 <expression>
159 <pow>
160 <property>/environment/turbulence/raw-magnitude-norm</property>
161 <property>/environment/turbulence/sensitivity</property>
162 </pow>
163 </expression>
164 </input>
165 <output>/environment/turbulence/magnitude-norm</output>
166 <type>gain</type>
167 <gain>1</gain>
168 </filter>
169
170 <filter>
171 <name>EnvironmentInterpolator:turbulence-rate</name>
172 <enable>
173 <property>/environment/config/enabled</property>
174 </enable>
175 <input>/environment/config/interpolated/turbulence/rate-hz</input>
176 <output>/environment/turbulence/rate-hz</output>
177 <type>exponential</type>
178 <filter-time>1</filter-time>
179 </filter>
180
181 <!-- replace weather-utility.nas -->
182 <!--
183 #this utility is a workaround for the fact that a shader uses listeners which cannot
184 # be used with a tied property
185 -->
186 <filter>
187 <name>EnvironmentInterpolator:wave:wind-from-east-fps</name>
188 <input>/environment/config/boundary/entry[0]/wind-from-east-fps</input>
189 <output>/environment/sea/surface/wind-from-east-fps</output>
190 <type>noise-spike</type>
191 <max-rate-of-change>/environment/sea/config/wind-filter-time</max-rate-of-change>
192 </filter>
193
194 <filter>
195 <name>EnvironmentInterpolator:wave:wind-from-north-fps</name>
196 <input>/environment/config/boundary/entry[0]/wind-from-north-fps</input>
197 <output>/environment/sea/surface/wind-from-north-fps</output>
198 <type>noise-spike</type>
199 <max-rate-of-change>/environment/sea/config/wind-filter-time</max-rate-of-change>
200 </filter>
201
202 <!--filter> unused?
203 <name>EnvironmentInterpolator:wave:wind-from-heading-deg</name>
204 <input>/environment/config/boundary/entry[0]/wind-from-heading-deg</input>
205 <output>/environment/sea/surface/wind-from-deg</output>
206 <type>gain</type>
207 <gain>1</gain>
208 </filter-->
209
210 <!--filter> unused?
211 <name>EnvironmentInterpolator:wave:wind-speed-kt</name>
212 <input>/environment/config/boundary/entry[0]/wind-speed-kt</input>
213 <output>/environment/sea/surface/wind-speed-kt</output>
214 <type>gain</type>
215 <gain>1</gain>
216 </filter-->
217
218 <logic>
219 <name>EnvironmentInterpolator:wave:enabled</name>
220 <input>
221 <property>/environment/config/enabled</property>
222 </input>
223 <output>/environment/sea/config/enabled</output>
224 </logic>
225
226 <filter>
227 <name>EnvironmentInterpolator:model:heading</name>
228 <input>/orientation/heading-deg</input>
229 <output>/orientation/model/heading-deg</output>
230 <type>gain</type>
231 <gain>1</gain>
232 </filter>
233
234 <filter>
235 <name>EnvironmentInterpolator:model:pitch</name>
236 <input>/orientation/pitch-deg</input>
237 <output>/orientation/model/pitch-deg</output>
238 <type>gain</type>
239 <gain>1</gain>
240 </filter>
241
242 <filter>
243 <name>EnvironmentInterpolator:model:roll</name>
244 <type>gain</type>
245 <gain>1</gain>
246 <input>/orientation/roll-deg</input>
247 <output>/orientation/model/roll-deg</output>
248 </filter>
249
250 <filter>
251 <name>EnvironmentInterpolator:model:latitude</name>
252 <input>/position/latitude-deg</input>
253 <output>/position/model/latitude-deg</output>
254 <type>gain</type>
255 <gain>1</gain>
256 </filter>
257
258 <filter>
259 <name>EnvironmentInterpolator:model:longitude</name>
260 <input>/position/longitude-deg</input>
261 <output>/position/model/longitude-deg</output>
262 <type>gain</type>
263 <gain>1</gain>
264 </filter>
265
266 <filter>
267 <name>EnvironmentInterpolator:wave:amp</name>
268 <type>gain</type>
269 <gain>1</gain>
270 <input>
271 <expression>
272 <sum>
273 <value>1.0</value>
274 <product>
275 <value>0.02</value>
276 <property>/environment/config/boundary/entry[0]/wind-speed-kt</property>
277 </product>
278 </sum>
279 </expression>
280 </input>
281 <output>/environment/wave/amp</output>
282 <min>1.0</min>
283 <max>2.0</max>
284 </filter>
285
286 <filter>
287 <name>EnvironmentInterpolator:wave:angle</name>
288 <type>gain</type>
289 <gain>1</gain>
290 <input>
291 <expression>
292 <sum>
293 <value>35.0</value>
294 <product>
295 <value>0.2</value>
296 <property>/environment/config/boundary/entry[0]/wind-speed-kt</property>
297 </product>
298 </sum>
299 </expression>
300 </input>
301 <output>/environment/wave/angle</output>
302 </filter>
303
304 <filter>
305 <name>EnvironmentInterpolator:wave:dangle</name>
306 <type>gain</type>
307 <gain>1</gain>
308 <input>
309 <expression>
310 <difference>
311 <value>20.0</value>
312 <product>
313 <value>0.4</value>
314 <property>/environment/config/boundary/entry[0]/wind-speed-kt</property>
315 </product>
316 </difference>
317 </expression>
318 </input>
319 <output>/environment/wave/dangle</output>
320 </filter>
321
322 <filter>
323 <name>EnvironmentInterpolator:wave:freq</name>
324 <type>gain</type>
325 <gain>1</gain>
326 <input>
327 <expression>
328 <sum>
329 <value>0.01</value>
330 <product>
331 <value>0.0008</value>
332 <property>/environment/config/boundary/entry[0]/wind-speed-kt</property>
333 </product>
334 </sum>
335 </expression>
336 </input>
337 <output>/environment/wave/freq</output>
338 <min>0.01</min>
339 <max>0.015</max>
340 </filter>
341
342 <filter>
343 <name>EnvironmentInterpolator:wave:factor</name>
344 <type>gain</type>
345 <gain>1</gain>
346 <input>
347 <expression>
348 <difference>
349 <value>0.0004</value>
350 <product>
351 <value>0.00001</value>
352 <property>/environment/config/boundary/entry[0]/wind-speed-kt</property>
353 </product>
354 </difference>
355 </expression>
356 </input>
357 <output>/environment/wave/factor</output>
358 <min>0.0001</min>
359 <max>0.0004</max>
360 </filter>
361
362 <filter>
363 <name>EnvironmentInterpolator:wave:sharp</name>
364 <type>gain</type>
365 <gain>1</gain>
366 <input>
367 <expression>
368 <sum>
369 <value>1.0</value>
370 <product>
371 <value>0.02</value>
372 <property>/environment/config/boundary/entry[0]/wind-speed-kt</property>
373 </product>
374 </sum>
375 </expression>
376 </input>
377 <output>/environment/wave/sharp</output>
378 <min>1.0</min>
379 <max>2.0</max>
380 </filter>
381
382 </PropertyList>