Debian Codegraph @

Environment/clouds-altitude-interpolate.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 <PropertyList>
19 <params>
20 <from>environment/metar/clouds/layer[0]/elevation-ft</from>
21 <to>/environment/clouds/layer[0]/elevation-ft</to>
22 </params>
23 <name>MetarController:clouds:altitude_interpolate</name>
24 <type>exponential</type>
25 <filter-time>
26 <condition>
27 <!-- dont't interpolate to -9999 or if more than 2000ft offset -->
28 <or>
29 <less-than>
30 <property alias="../../../../../params/from"/>
31 <value>-9000</value>
32 </less-than>
33 <less-than>
34 <property alias="../../../../../params/to"/>
35 <value>-9000</value>
36 </less-than>
37 <greater-than>
38 <expression>
39 <abs>
40 <difference>
41 <property alias="../../../../../../../../params/from"/>
42 <property alias="../../../../../../../../params/to"/>
43 </difference>
44 </abs>
45 </expression>
46 <value>2000</value>
47 </greater-than>
48 </or>
49 </condition>
50 <value>0</value>
51 </filter-time>
52
53 <filter-time>60</filter-time>
54
55 <enable>
56 <condition>
57 <property>/environment/metar/valid</property>
58 <property>/environment/params/metar-updates-environment</property>
59 </condition>
60 </enable>
61 <input alias="../params/from"/>
62 <output alias="../params/to"/>
63 </PropertyList>