2015-06-16 21:20:54 +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/>.
|
|
|
|
-->
|
|
|
|
|
|
|
|
<PropertyList>
|
|
|
|
|
2015-07-05 18:32:41 +00:00
|
|
|
<!--
|
|
|
|
Note: Properties in /systems/electrical/ are computed by
|
|
|
|
Nasal/electrical.nas during replay, thus do not need to be
|
|
|
|
recorded.
|
|
|
|
-->
|
|
|
|
|
2015-06-16 21:20:54 +00:00
|
|
|
<logic>
|
2015-07-05 18:32:41 +00:00
|
|
|
<name>Lighting Landing On/Off</name>
|
2015-06-16 21:20:54 +00:00
|
|
|
<input>
|
|
|
|
<and>
|
|
|
|
<less-than>
|
|
|
|
<property>/systems/electrical/outputs/landing-lights</property>
|
|
|
|
<value>31.5</value>
|
|
|
|
</less-than>
|
|
|
|
<greater-than>
|
|
|
|
<property>/systems/electrical/outputs/landing-lights</property>
|
|
|
|
<value>20.0</value>
|
|
|
|
</greater-than>
|
2015-07-05 18:32:41 +00:00
|
|
|
<not-equals>
|
|
|
|
<property>/sim/model/c172p/damage/left-wing</property>
|
|
|
|
<value>1</value>
|
|
|
|
</not-equals>
|
2018-05-17 11:58:44 +00:00
|
|
|
<not>
|
|
|
|
<property>/fdm/jsbsim/crash</property>
|
|
|
|
</not>
|
2015-06-16 21:20:54 +00:00
|
|
|
</and>
|
|
|
|
</input>
|
|
|
|
<output>
|
2015-07-05 18:32:41 +00:00
|
|
|
<property>/sim/model/c172p/lighting/landing</property>
|
2015-06-16 21:20:54 +00:00
|
|
|
</output>
|
|
|
|
</logic>
|
|
|
|
|
|
|
|
<logic>
|
2015-07-05 18:32:41 +00:00
|
|
|
<name>Lighting Taxi On/Off</name>
|
2015-06-16 21:20:54 +00:00
|
|
|
<input>
|
|
|
|
<and>
|
|
|
|
<less-than>
|
|
|
|
<property>/systems/electrical/outputs/taxi-light</property>
|
|
|
|
<value>31.5</value>
|
|
|
|
</less-than>
|
|
|
|
<greater-than>
|
|
|
|
<property>/systems/electrical/outputs/taxi-light</property>
|
|
|
|
<value>20.0</value>
|
|
|
|
</greater-than>
|
2015-07-05 18:32:41 +00:00
|
|
|
<not-equals>
|
|
|
|
<property>/sim/model/c172p/damage/left-wing</property>
|
|
|
|
<value>1</value>
|
|
|
|
</not-equals>
|
2018-05-17 11:58:44 +00:00
|
|
|
<not>
|
|
|
|
<property>/fdm/jsbsim/crash</property>
|
|
|
|
</not>
|
2015-07-05 18:32:41 +00:00
|
|
|
</and>
|
|
|
|
</input>
|
|
|
|
<output>
|
|
|
|
<property>/sim/model/c172p/lighting/taxi</property>
|
|
|
|
</output>
|
|
|
|
</logic>
|
|
|
|
|
|
|
|
<logic>
|
|
|
|
<name>ALS Lighting Landing</name>
|
|
|
|
<input>
|
|
|
|
<and>
|
|
|
|
<property>/sim/current-view/internal</property>
|
|
|
|
<property>/sim/model/c172p/lighting/landing</property>
|
|
|
|
</and>
|
|
|
|
</input>
|
|
|
|
<output>
|
|
|
|
<property>/sim/rendering/als-secondary-lights/use-landing-light</property>
|
|
|
|
</output>
|
|
|
|
</logic>
|
|
|
|
|
|
|
|
<logic>
|
|
|
|
<name>ALS Lighting Taxi</name>
|
|
|
|
<input>
|
|
|
|
<and>
|
|
|
|
<property>/sim/current-view/internal</property>
|
|
|
|
<property>/sim/model/c172p/lighting/taxi</property>
|
2015-06-16 21:20:54 +00:00
|
|
|
</and>
|
|
|
|
</input>
|
|
|
|
<output>
|
|
|
|
<property>/sim/rendering/als-secondary-lights/use-alt-landing-light</property>
|
|
|
|
</output>
|
|
|
|
</logic>
|
|
|
|
|
2016-11-12 21:32:27 +00:00
|
|
|
<logic>
|
|
|
|
<name>ALS Lighting Exterior Landing</name>
|
|
|
|
<input>
|
|
|
|
<and>
|
|
|
|
<not>
|
|
|
|
<property>/sim/current-view/internal</property>
|
|
|
|
</not>
|
|
|
|
<property>/sim/model/c172p/lighting/landing</property>
|
|
|
|
</and>
|
|
|
|
</input>
|
|
|
|
<output>
|
|
|
|
<property>/sim/rendering/als-secondary-lights/use-landing-light-ext</property>
|
|
|
|
</output>
|
|
|
|
</logic>
|
|
|
|
|
|
|
|
<logic>
|
|
|
|
<name>ALS Lighting Exterior Taxi</name>
|
|
|
|
<input>
|
|
|
|
<and>
|
|
|
|
<not>
|
|
|
|
<property>/sim/current-view/internal</property>
|
|
|
|
</not>
|
|
|
|
<property>/sim/model/c172p/lighting/taxi</property>
|
|
|
|
</and>
|
|
|
|
</input>
|
|
|
|
<output>
|
|
|
|
<property>/sim/rendering/als-secondary-lights/use-taxi-light-ext</property>
|
|
|
|
</output>
|
|
|
|
</logic>
|
|
|
|
|
2015-06-16 21:20:54 +00:00
|
|
|
<filter>
|
|
|
|
<name>Instruments Lighting</name>
|
|
|
|
<type>gain</type>
|
|
|
|
<input>
|
|
|
|
<condition>
|
|
|
|
<and>
|
|
|
|
<less-than>
|
|
|
|
<property>/systems/electrical/outputs/instrument-lights</property>
|
|
|
|
<value>31.5</value>
|
|
|
|
</less-than>
|
|
|
|
<greater-than>
|
|
|
|
<property>/systems/electrical/outputs/instrument-lights</property>
|
|
|
|
<value>20.0</value>
|
|
|
|
</greater-than>
|
|
|
|
</and>
|
|
|
|
</condition>
|
|
|
|
<property>/controls/lighting/instruments-norm</property>
|
|
|
|
</input>
|
|
|
|
<input>
|
|
|
|
<value>0.0</value>
|
|
|
|
</input>
|
|
|
|
<output>
|
|
|
|
<property>/sim/model/material/instruments/factor</property>
|
|
|
|
</output>
|
|
|
|
</filter>
|
|
|
|
|
2015-07-24 17:37:16 +00:00
|
|
|
<logic>
|
|
|
|
<name>Lighting Beacon On/Off</name>
|
|
|
|
<input>
|
|
|
|
<and>
|
|
|
|
<less-than>
|
|
|
|
<property>/systems/electrical/outputs/beacon</property>
|
|
|
|
<value>31.5</value>
|
|
|
|
</less-than>
|
|
|
|
<greater-than>
|
|
|
|
<property>/systems/electrical/outputs/beacon</property>
|
|
|
|
<value>20.0</value>
|
|
|
|
</greater-than>
|
|
|
|
</and>
|
|
|
|
</input>
|
|
|
|
<output>
|
|
|
|
<property>/sim/model/c172p/lighting/beacon/enabled</property>
|
|
|
|
</output>
|
|
|
|
</logic>
|
|
|
|
|
|
|
|
<logic>
|
|
|
|
<name>Lighting Strobe On/Off</name>
|
|
|
|
<input>
|
|
|
|
<and>
|
|
|
|
<less-than>
|
|
|
|
<property>/systems/electrical/outputs/strobe</property>
|
|
|
|
<value>31.5</value>
|
|
|
|
</less-than>
|
|
|
|
<greater-than>
|
|
|
|
<property>/systems/electrical/outputs/strobe</property>
|
|
|
|
<value>20.0</value>
|
|
|
|
</greater-than>
|
|
|
|
</and>
|
|
|
|
</input>
|
|
|
|
<output>
|
|
|
|
<property>/sim/model/c172p/lighting/strobes/enabled</property>
|
|
|
|
</output>
|
|
|
|
</logic>
|
|
|
|
|
|
|
|
<logic>
|
|
|
|
<name>Lighting Navigation On/Off</name>
|
|
|
|
<input>
|
|
|
|
<and>
|
|
|
|
<less-than>
|
|
|
|
<property>/systems/electrical/outputs/nav-lights</property>
|
|
|
|
<value>31.5</value>
|
|
|
|
</less-than>
|
|
|
|
<greater-than>
|
|
|
|
<property>/systems/electrical/outputs/nav-lights</property>
|
|
|
|
<value>20.0</value>
|
|
|
|
</greater-than>
|
|
|
|
</and>
|
|
|
|
</input>
|
|
|
|
<output>
|
|
|
|
<property>/sim/model/c172p/lighting/nav-lights</property>
|
|
|
|
</output>
|
|
|
|
</logic>
|
|
|
|
|
2018-05-17 11:58:44 +00:00
|
|
|
<logic>
|
|
|
|
<name>Lighting Navigation Ground Spots On/Off Left</name>
|
|
|
|
<input>
|
|
|
|
<and>
|
|
|
|
<less-than>
|
|
|
|
<property>/systems/electrical/outputs/nav-lights</property>
|
|
|
|
<value>31.5</value>
|
|
|
|
</less-than>
|
|
|
|
<greater-than>
|
|
|
|
<property>/systems/electrical/outputs/nav-lights</property>
|
|
|
|
<value>20.0</value>
|
|
|
|
</greater-than>
|
|
|
|
<not-equals>
|
|
|
|
<property>/sim/model/c172p/damage/left-wing</property>
|
|
|
|
<value>1</value>
|
|
|
|
</not-equals>
|
|
|
|
<not>
|
|
|
|
<property>/fdm/jsbsim/crash</property>
|
|
|
|
</not>
|
|
|
|
</and>
|
|
|
|
</input>
|
|
|
|
<output>
|
|
|
|
<property>/sim/model/c172p/lighting/nav-lights/left-on</property>
|
|
|
|
</output>
|
|
|
|
</logic>
|
|
|
|
|
|
|
|
<logic>
|
|
|
|
<name>Lighting Navigation Ground Spots On/Off Right</name>
|
|
|
|
<input>
|
|
|
|
<and>
|
|
|
|
<less-than>
|
|
|
|
<property>/systems/electrical/outputs/nav-lights</property>
|
|
|
|
<value>31.5</value>
|
|
|
|
</less-than>
|
|
|
|
<greater-than>
|
|
|
|
<property>/systems/electrical/outputs/nav-lights</property>
|
|
|
|
<value>20.0</value>
|
|
|
|
</greater-than>
|
|
|
|
<not-equals>
|
|
|
|
<property>/sim/model/c172p/damage/right-wing</property>
|
|
|
|
<value>1</value>
|
|
|
|
</not-equals>
|
|
|
|
<not>
|
|
|
|
<property>/fdm/jsbsim/crash</property>
|
|
|
|
</not>
|
|
|
|
</and>
|
|
|
|
</input>
|
|
|
|
<output>
|
|
|
|
<property>/sim/model/c172p/lighting/nav-lights/right-on</property>
|
|
|
|
</output>
|
|
|
|
</logic>
|
|
|
|
|
2016-02-10 21:32:19 +00:00
|
|
|
<logic>
|
|
|
|
<name>Amphibious Panel Lights On/Off</name>
|
|
|
|
<input>
|
|
|
|
<and>
|
|
|
|
<less-than>
|
|
|
|
<property>systems/electrical/outputs/instrument-lights</property>
|
|
|
|
<value>31.5</value>
|
|
|
|
</less-than>
|
|
|
|
<greater-than>
|
|
|
|
<property>systems/electrical/outputs/instrument-lights</property>
|
|
|
|
<value>20.0</value>
|
|
|
|
</greater-than>
|
|
|
|
</and>
|
|
|
|
</input>
|
|
|
|
<output>
|
|
|
|
<property>/sim/model/c172p/lighting/amphibious</property>
|
|
|
|
</output>
|
|
|
|
</logic>
|
2016-05-18 21:11:05 +00:00
|
|
|
|
|
|
|
<filter>
|
|
|
|
<name>Inst Red Factor</name>
|
|
|
|
<type>gain</type>
|
|
|
|
<gain>0.010</gain>
|
|
|
|
<input>
|
2016-08-12 18:57:03 +00:00
|
|
|
<condition>
|
|
|
|
<greater-than>
|
2016-05-18 21:11:05 +00:00
|
|
|
<property>/controls/lighting/radio-norm</property>
|
2016-08-12 18:57:03 +00:00
|
|
|
<value>0.0</value>
|
|
|
|
</greater-than>
|
|
|
|
</condition>
|
|
|
|
<expression>
|
|
|
|
<sum>
|
|
|
|
<property>/sim/model/c172p/lighting/comm0</property>
|
|
|
|
<property>/sim/model/c172p/lighting/comm1</property>
|
|
|
|
<property>/sim/model/c172p/lighting/adf</property>
|
|
|
|
</sum>
|
2016-05-18 21:11:05 +00:00
|
|
|
</expression>
|
|
|
|
</input>
|
2016-08-12 18:57:03 +00:00
|
|
|
<input>
|
|
|
|
<condition>
|
|
|
|
<and>
|
|
|
|
<equals>
|
|
|
|
<property>/controls/lighting/radio-norm</property>
|
|
|
|
<value>0.0</value>
|
|
|
|
</equals>
|
|
|
|
<property>/sim/model/c172p/lighting/comm0-power</property>
|
|
|
|
<property>/sim/model/c172p/lighting/comm1-power</property>
|
|
|
|
<property>/instrumentation/adf[0]/operable</property>
|
|
|
|
</and>
|
|
|
|
</condition>
|
|
|
|
<value>3.0</value>
|
|
|
|
</input>
|
2016-05-18 21:11:05 +00:00
|
|
|
<output>
|
|
|
|
<property>/sim/model/c172p/lighting/inst-r-norm</property>
|
|
|
|
</output>
|
|
|
|
</filter>
|
|
|
|
|
|
|
|
<filter>
|
|
|
|
<name>Inst Blue Factor</name>
|
|
|
|
<type>gain</type>
|
|
|
|
<gain>0.006</gain>
|
|
|
|
<input>
|
2016-08-12 18:57:03 +00:00
|
|
|
<condition>
|
|
|
|
<greater-than>
|
2016-05-18 21:11:05 +00:00
|
|
|
<property>/controls/lighting/radio-norm</property>
|
2016-08-12 18:57:03 +00:00
|
|
|
<value>0.0</value>
|
|
|
|
</greater-than>
|
|
|
|
</condition>
|
|
|
|
<expression>
|
|
|
|
<sum>
|
|
|
|
<property>/sim/model/c172p/lighting/comm0</property>
|
|
|
|
<property>/sim/model/c172p/lighting/comm1</property>
|
|
|
|
<property>/sim/model/c172p/lighting/adf</property>
|
|
|
|
</sum>
|
2016-05-18 21:11:05 +00:00
|
|
|
</expression>
|
|
|
|
</input>
|
2016-08-12 18:57:03 +00:00
|
|
|
<input>
|
|
|
|
<condition>
|
|
|
|
<and>
|
|
|
|
<equals>
|
|
|
|
<property>/controls/lighting/radio-norm</property>
|
|
|
|
<value>0.0</value>
|
|
|
|
</equals>
|
|
|
|
<property>/sim/model/c172p/lighting/comm0-power</property>
|
|
|
|
<property>/sim/model/c172p/lighting/comm1-power</property>
|
|
|
|
<property>/instrumentation/adf[0]/operable</property>
|
|
|
|
</and>
|
|
|
|
</condition>
|
|
|
|
<value>3.0</value>
|
|
|
|
</input>
|
2016-05-18 21:11:05 +00:00
|
|
|
<output>
|
|
|
|
<property>/sim/model/c172p/lighting/inst-g-norm</property>
|
|
|
|
</output>
|
|
|
|
</filter>
|
|
|
|
|
|
|
|
<filter>
|
|
|
|
<name>Inst Green Factor</name>
|
|
|
|
<type>gain</type>
|
|
|
|
<gain>0.006</gain>
|
|
|
|
<input>
|
2016-08-12 18:57:03 +00:00
|
|
|
<condition>
|
|
|
|
<greater-than>
|
2016-05-18 21:11:05 +00:00
|
|
|
<property>/controls/lighting/radio-norm</property>
|
2016-08-12 18:57:03 +00:00
|
|
|
<value>0.0</value>
|
|
|
|
</greater-than>
|
|
|
|
</condition>
|
|
|
|
<expression>
|
|
|
|
<sum>
|
|
|
|
<property>/sim/model/c172p/lighting/comm0</property>
|
|
|
|
<property>/sim/model/c172p/lighting/comm1</property>
|
|
|
|
<property>/sim/model/c172p/lighting/adf</property>
|
|
|
|
</sum>
|
2016-05-18 21:11:05 +00:00
|
|
|
</expression>
|
|
|
|
</input>
|
2016-08-12 18:57:03 +00:00
|
|
|
<input>
|
|
|
|
<condition>
|
|
|
|
<and>
|
|
|
|
<equals>
|
|
|
|
<property>/controls/lighting/radio-norm</property>
|
|
|
|
<value>0.0</value>
|
|
|
|
</equals>
|
|
|
|
<property>/sim/model/c172p/lighting/comm0-power</property>
|
|
|
|
<property>/sim/model/c172p/lighting/comm1-power</property>
|
|
|
|
<property>/instrumentation/adf[0]/operable</property>
|
|
|
|
</and>
|
|
|
|
</condition>
|
|
|
|
<value>3.0</value>
|
|
|
|
</input>
|
2016-05-18 21:11:05 +00:00
|
|
|
<output>
|
|
|
|
<property>/sim/model/c172p/lighting/inst-b-norm</property>
|
|
|
|
</output>
|
|
|
|
</filter>
|
|
|
|
|
|
|
|
<!-- Reduce the red glow from the digits of the radio stack
|
|
|
|
if the instrument lighting is at 100 %.
|
|
|
|
-->
|
|
|
|
<filter>
|
|
|
|
<name>Inst Gain As Function Of Instrument Lighting</name>
|
|
|
|
<type>gain</type>
|
|
|
|
<input>
|
|
|
|
<expression>
|
|
|
|
<table>
|
|
|
|
<property>/sim/model/material/instruments/factor</property>
|
|
|
|
<entry><ind>0.0</ind><dep>1.0</dep></entry>
|
|
|
|
<entry><ind>1.0</ind><dep>0.5</dep></entry>
|
|
|
|
</table>
|
|
|
|
</expression>
|
|
|
|
</input>
|
|
|
|
<output>
|
|
|
|
<property>/sim/model/c172p/lighting/inst-gain</property>
|
|
|
|
</output>
|
|
|
|
</filter>
|
|
|
|
|
|
|
|
<filter>
|
|
|
|
<name>RGB Red Factor</name>
|
|
|
|
<type>gain</type>
|
|
|
|
<input>
|
|
|
|
<property>/sim/model/c172p/lighting/ra-r</property>
|
|
|
|
<scale>
|
|
|
|
<property>/sim/model/material/instruments/factor</property>
|
|
|
|
</scale>
|
|
|
|
<offset>
|
|
|
|
<property>/sim/model/c172p/lighting/inst-r-norm</property>
|
|
|
|
<scale>
|
|
|
|
<property>/sim/model/c172p/lighting/inst-gain</property>
|
|
|
|
</scale>
|
|
|
|
</offset>
|
|
|
|
</input>
|
|
|
|
<output>
|
|
|
|
<property>/sim/model/c172p/lighting/rgb-ra-r-factor</property>
|
|
|
|
</output>
|
|
|
|
</filter>
|
|
|
|
|
|
|
|
<filter>
|
|
|
|
<name>RGB Green Factor</name>
|
|
|
|
<type>gain</type>
|
|
|
|
<input>
|
|
|
|
<property>/sim/model/c172p/lighting/ra-g</property>
|
|
|
|
<scale>
|
|
|
|
<property>/sim/model/material/instruments/factor</property>
|
|
|
|
</scale>
|
|
|
|
<offset>
|
|
|
|
<property>/sim/model/c172p/lighting/inst-g-norm</property>
|
|
|
|
<scale>
|
|
|
|
<property>/sim/model/c172p/lighting/inst-gain</property>
|
|
|
|
</scale>
|
|
|
|
</offset>
|
|
|
|
</input>
|
|
|
|
<output>
|
|
|
|
<property>/sim/model/c172p/lighting/rgb-ra-g-factor</property>
|
|
|
|
</output>
|
|
|
|
</filter>
|
|
|
|
|
|
|
|
<filter>
|
|
|
|
<name>RGB Blue Factor</name>
|
|
|
|
<type>gain</type>
|
|
|
|
<input>
|
|
|
|
<property>/sim/model/c172p/lighting/ra-b</property>
|
|
|
|
<scale>
|
|
|
|
<property>/sim/model/material/instruments/factor</property>
|
|
|
|
</scale>
|
|
|
|
<offset>
|
|
|
|
<property>/sim/model/c172p/lighting/inst-b-norm</property>
|
|
|
|
<scale>
|
|
|
|
<property>/sim/model/c172p/lighting/inst-gain</property>
|
|
|
|
</scale>
|
|
|
|
</offset>
|
|
|
|
</input>
|
|
|
|
<output>
|
|
|
|
<property>/sim/model/c172p/lighting/rgb-ra-b-factor</property>
|
|
|
|
</output>
|
|
|
|
</filter>
|
|
|
|
|
2015-06-16 21:20:54 +00:00
|
|
|
</PropertyList>
|