44a2b6dedf
c172p-detailed commit 8d1e0bf03f19e10bca386190321ec2e6e477aba9
8d1e0bf03f
68 lines
2.3 KiB
XML
68 lines
2.3 KiB
XML
<?xml version="1.0"?>
|
|
|
|
<!--
|
|
|
|
c172p damage effects for JSBSim.
|
|
|
|
Copyright (c) 2015 Gilberto Agostinho
|
|
|
|
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, write to the Free Software
|
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
-->
|
|
|
|
<system name="engine">
|
|
|
|
<channel name="oil">
|
|
|
|
<fcs_function name="consumed-oil-weight">
|
|
<function>
|
|
<product>
|
|
<property>/engines/active-engine/oil-lacking</property>
|
|
<value>1.7686</value>
|
|
<value>-1</value>
|
|
</product>
|
|
</function>
|
|
<output>/fdm/jsbsim/inertia/pointmass-weight-lbs[16]</output>
|
|
</fcs_function>
|
|
|
|
</channel>
|
|
|
|
<channel name="carburetor">
|
|
|
|
<fcs_function name="Carb heat on causes RPM drop on 160 HP engine">
|
|
<function>
|
|
<ifthen>
|
|
<property>/controls/anti-ice/engine[0]/carb-heat</property>
|
|
<value>0.475</value>
|
|
<value>0.15185</value>
|
|
</ifthen>
|
|
</function>
|
|
<output>/fdm/jsbsim/propulsion/engine[0]/air-intake-impedance-factor</output>
|
|
</fcs_function>
|
|
|
|
<fcs_function name="Carb heat on causes RPM drop on 180 HP engine">
|
|
<function>
|
|
<ifthen>
|
|
<property>/controls/anti-ice/engine[1]/carb-heat</property>
|
|
<value>0.475</value>
|
|
<value>0.15185</value>
|
|
</ifthen>
|
|
</function>
|
|
<output>/fdm/jsbsim/propulsion/engine[1]/air-intake-impedance-factor</output>
|
|
</fcs_function>
|
|
|
|
</channel>
|
|
|
|
</system>
|