1
0
Fork 0
fgdata/Aircraft/c172p/Systems/c172p-sounds.xml
Stuart Buchanan f44db83b25 Merge of the c172p-detailed
From https://github.com/Juanvvc/c172p-detailed/ release/2016.1
commit 3f33b88bb015a8ee685ab3178932d16d6e072410

A big Thank-You to the c172p-detailed team for their ongoing work.
2016-02-10 21:32:19 +00:00

97 lines
3.8 KiB
XML

<?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">
<channel name="stallhorn">
<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>
0.0 -11.6364
10.0 -10.1364
30.0 -9.6364
</tableData>
</table>
<value>0.5</value>
</sum>
<value>2.0</value>
</product>
</log10>
</function>
<clipto>
<min>0.0</min>
<max>1.0</max>
</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
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
</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>