2015-07-05 18:32:41 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
Copyright (c) 2015 onox
|
|
|
|
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation, either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
-->
|
|
|
|
<system name="c172p sounds">
|
|
|
|
|
2016-02-10 21:32:19 +00:00
|
|
|
<channel name="stallhorn">
|
2015-07-05 18:32:41 +00:00
|
|
|
|
|
|
|
<fcs_function name="sounds/stall-horn-volume">
|
|
|
|
<function>
|
|
|
|
<log10>
|
|
|
|
<product>
|
|
|
|
<sum>
|
|
|
|
<property>aero/alpha-deg</property>
|
|
|
|
<table>
|
|
|
|
<independentVar>fcs/flap-pos-deg</independentVar>
|
|
|
|
<!-- 85 % of max alpha at 0 deg flap -->
|
|
|
|
<tableData>
|
2016-02-10 21:32:19 +00:00
|
|
|
0.0 -11.6364
|
|
|
|
10.0 -10.1364
|
|
|
|
30.0 -9.6364
|
2015-07-05 18:32:41 +00:00
|
|
|
</tableData>
|
|
|
|
</table>
|
|
|
|
<value>0.5</value>
|
|
|
|
</sum>
|
|
|
|
<value>2.0</value>
|
|
|
|
</product>
|
|
|
|
</log10>
|
|
|
|
</function>
|
|
|
|
<clipto>
|
|
|
|
<min>0.0</min>
|
2016-02-10 21:32:19 +00:00
|
|
|
<max>1.0</max>
|
2015-07-05 18:32:41 +00:00
|
|
|
</clipto>
|
|
|
|
</fcs_function>
|
|
|
|
|
|
|
|
<fcs_function name="sounds/stall-horn-pitch">
|
|
|
|
<function>
|
|
|
|
<sum>
|
|
|
|
<product>
|
|
|
|
<table>
|
|
|
|
<independentVar lookup="row">aero/alpha-deg</independentVar>
|
|
|
|
<independentVar lookup="column">fcs/flap-pos-deg</independentVar>
|
|
|
|
|
|
|
|
<!-- Normalized pitch range. 0.0 is minimum,
|
|
|
|
1.0 is maximum.
|
|
|
|
-->
|
|
|
|
<tableData>
|
|
|
|
0.0 10.0 20.0 30.0
|
2016-02-10 21:32:19 +00:00
|
|
|
9.5000 0.0 0.0 0.0 0.0
|
|
|
|
9.5428 0.0 0.0 0.0 0.5
|
|
|
|
10.0000 0.0 0.0 0.0 0.5
|
|
|
|
10.0428 0.0 0.0 0.5 0.5
|
|
|
|
10.5000 0.0 0.0 0.5 0.5
|
|
|
|
10.5428 0.0 0.5 0.5 1.0
|
|
|
|
11.0000 0.0 0.5 0.5 1.0
|
|
|
|
11.0428 0.5 0.5 1.0 1.0
|
|
|
|
11.5000 0.5 0.5 1.0 1.0
|
|
|
|
11.5428 0.5 1.0 1.0 1.0
|
|
|
|
12.0000 0.5 1.0 1.0 1.0
|
|
|
|
12.0428 1.0 1.0 1.0 1.0
|
2015-07-05 18:32:41 +00:00
|
|
|
</tableData>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<!-- Difference between maximum and minimum -->
|
|
|
|
<difference>
|
|
|
|
<value>1.1</value>
|
|
|
|
<value>0.9</value>
|
|
|
|
</difference>
|
|
|
|
</product>
|
|
|
|
|
|
|
|
<!-- Minimum pitch -->
|
|
|
|
<value>0.9</value>
|
|
|
|
</sum>
|
|
|
|
</function>
|
|
|
|
<clipto>
|
|
|
|
<min>0.9</min>
|
|
|
|
<max>1.1</max>
|
|
|
|
</clipto>
|
|
|
|
</fcs_function>
|
|
|
|
|
|
|
|
</channel>
|
|
|
|
|
|
|
|
</system>
|