Debian Codegraph @

Aircraft/c172p/Systems/c172p-sounds.xml

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <!--
4 Copyright (c) 2015 onox
5
6 This program is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 2 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
18 -->
19 <system name="c172p sounds">
20
21 <channel name="stallhorn">
22
23 <fcs_function name="sounds/stall-horn-volume">
24 <function>
25 <log10>
26 <product>
27 <sum>
28 <property>aero/alpha-deg</property>
29 <table>
30 <independentVar>fcs/flap-pos-deg</independentVar>
31 <!-- 85 % of max alpha at 0 deg flap -->
32 <tableData>
33 0.0 -11.6364
34 10.0 -10.1364
35 30.0 -9.6364
36 </tableData>
37 </table>
38 <value>0.5</value>
39 </sum>
40 <value>2.0</value>
41 </product>
42 </log10>
43 </function>
44 <clipto>
45 <min>0.0</min>
46 <max>1.0</max>
47 </clipto>
48 </fcs_function>
49
50 <fcs_function name="sounds/stall-horn-pitch">
51 <function>
52 <sum>
53 <product>
54 <table>
55 <independentVar lookup="row">aero/alpha-deg</independentVar>
56 <independentVar lookup="column">fcs/flap-pos-deg</independentVar>
57
58 <!-- Normalized pitch range. 0.0 is minimum,
59 1.0 is maximum.
60 -->
61 <tableData>
62 0.0 10.0 20.0 30.0
63 9.5000 0.0 0.0 0.0 0.0
64 9.5428 0.0 0.0 0.0 0.5
65 10.0000 0.0 0.0 0.0 0.5
66 10.0428 0.0 0.0 0.5 0.5
67 10.5000 0.0 0.0 0.5 0.5
68 10.5428 0.0 0.5 0.5 1.0
69 11.0000 0.0 0.5 0.5 1.0
70 11.0428 0.5 0.5 1.0 1.0
71 11.5000 0.5 0.5 1.0 1.0
72 11.5428 0.5 1.0 1.0 1.0
73 12.0000 0.5 1.0 1.0 1.0
74 12.0428 1.0 1.0 1.0 1.0
75 </tableData>
76 </table>
77
78 <!-- Difference between maximum and minimum -->
79 <difference>
80 <value>1.1</value>
81 <value>0.9</value>
82 </difference>
83 </product>
84
85 <!-- Minimum pitch -->
86 <value>0.9</value>
87 </sum>
88 </function>
89 <clipto>
90 <min>0.9</min>
91 <max>1.1</max>
92 </clipto>
93 </fcs_function>
94
95 </channel>
96
97 </system>