Add lights to elec

This commit is contained in:
Jonathan Redpath 2018-10-23 16:46:36 +01:00
parent 4da271c2c8
commit b1c7dc1c19
9 changed files with 41 additions and 5 deletions

View file

@ -141,6 +141,7 @@ xsi:noNamespaceSchemaLocation="http://jsbsim.sourceforge.net/JSBSim.xsd">
<system file="glass-effect1"/> <system file="glass-effect1"/>
<system file="a320-fcs"/> <system file="a320-fcs"/>
<system file="a320-spoiler"/> <system file="a320-spoiler"/>
<system file="a320-lights"/>
<flight_control name="none"/> <flight_control name="none"/>

View file

@ -141,6 +141,7 @@ xsi:noNamespaceSchemaLocation="http://jsbsim.sourceforge.net/JSBSim.xsd">
<system file="glass-effect1"/> <system file="glass-effect1"/>
<system file="a320-fcs"/> <system file="a320-fcs"/>
<system file="a320-spoiler"/> <system file="a320-spoiler"/>
<system file="a320-lights"/>
<flight_control name="none"/> <flight_control name="none"/>

View file

@ -141,6 +141,7 @@ xsi:noNamespaceSchemaLocation="http://jsbsim.sourceforge.net/JSBSim.xsd">
<system file="glass-effect1"/> <system file="glass-effect1"/>
<system file="a320-fcs"/> <system file="a320-fcs"/>
<system file="a320-spoiler"/> <system file="a320-spoiler"/>
<system file="a320-lights"/>
<flight_control name="none"/> <flight_control name="none"/>
<aerodynamics file="Systems/a320-aerodynamics.xml"/> <aerodynamics file="Systems/a320-aerodynamics.xml"/>

View file

@ -141,6 +141,7 @@ xsi:noNamespaceSchemaLocation="http://jsbsim.sourceforge.net/JSBSim.xsd">
<system file="glass-effect1"/> <system file="glass-effect1"/>
<system file="a320-fcs"/> <system file="a320-fcs"/>
<system file="a320-spoiler"/> <system file="a320-spoiler"/>
<system file="a320-lights"/>
<flight_control name="none"/> <flight_control name="none"/>

View file

@ -141,6 +141,7 @@ xsi:noNamespaceSchemaLocation="http://jsbsim.sourceforge.net/JSBSim.xsd">
<system file="glass-effect1"/> <system file="glass-effect1"/>
<system file="a320-fcs"/> <system file="a320-fcs"/>
<system file="a320-spoiler"/> <system file="a320-spoiler"/>
<system file="a320-lights"/>
<flight_control name="none"/> <flight_control name="none"/>

View file

@ -7,7 +7,7 @@
<dirt-enabled type="int">0</dirt-enabled> <dirt-enabled type="int">0</dirt-enabled>
<ambient-correction type="float">0.0</ambient-correction> <ambient-correction type="float">0.0</ambient-correction>
<lightmap-enabled type="int">1</lightmap-enabled> <lightmap-enabled type="int">1</lightmap-enabled>
<lightmap-factor type="float" n="0"><use>/controls/lighting/main-flood-knb</use></lightmap-factor> <lightmap-factor type="float" n="0"><use>/controls/lighting/panel-light</use></lightmap-factor>
<lightmap-color type="vec3d" n="0">1.0 1.0 1.0</lightmap-color> <lightmap-color type="vec3d" n="0">1.0 1.0 1.0</lightmap-color>
<texture n="3"> <texture n="3">
<image>Aircraft/IDG-A32X/Models/Effects/panel-floodlight.png</image> <image>Aircraft/IDG-A32X/Models/Effects/panel-floodlight.png</image>

View file

@ -7,8 +7,7 @@
<dirt-enabled type="int">0</dirt-enabled> <dirt-enabled type="int">0</dirt-enabled>
<ambient-correction type="float">0.0</ambient-correction> <ambient-correction type="float">0.0</ambient-correction>
<lightmap-enabled type="int">1</lightmap-enabled> <lightmap-enabled type="int">1</lightmap-enabled>
<!--<lightmap-factor type="float" n="0"><use>/controls/lighting/reading-light-knb</use></lightmap-factor>--> <lightmap-factor type="float" n="0"><use>/controls/lighting/reading-light</use>*0.5</lightmap-factor>
<lightmap-factor type="float" n="0"><use>/controls/lighting/main-flood-knb</use></lightmap-factor>
<lightmap-color type="vec3d" n="0">1.0 1.0 1.0</lightmap-color> <lightmap-color type="vec3d" n="0">1.0 1.0 1.0</lightmap-color>
<texture n="3"> <texture n="3">
<image>Aircraft/IDG-A32X/Models/Effects/checklist.png</image> <image>Aircraft/IDG-A32X/Models/Effects/checklist.png</image>

View file

@ -7,8 +7,7 @@
<dirt-enabled type="int">0</dirt-enabled> <dirt-enabled type="int">0</dirt-enabled>
<ambient-correction type="float">0.0</ambient-correction> <ambient-correction type="float">0.0</ambient-correction>
<lightmap-enabled type="int">1</lightmap-enabled> <lightmap-enabled type="int">1</lightmap-enabled>
<!--<lightmap-factor type="float" n="0"><use>/controls/lighting/reading-light-knb</use></lightmap-factor>--> <lightmap-factor type="float" n="0"><use>/controls/lighting/reading-light</use></lightmap-factor>
<lightmap-factor type="float" n="0"><use>/controls/lighting/main-flood-knb</use></lightmap-factor>
<lightmap-color type="vec3d" n="0">1.0 1.0 1.0</lightmap-color> <lightmap-color type="vec3d" n="0">1.0 1.0 1.0</lightmap-color>
<texture n="3"> <texture n="3">
<image>Aircraft/IDG-A32X/Models/Effects/reading-light.png</image> <image>Aircraft/IDG-A32X/Models/Effects/reading-light.png</image>

33
Systems/a320-lights.xml Normal file
View file

@ -0,0 +1,33 @@
<!-- Airbus A320 FCS -->
<!-- Joshua Davidson (it0uchpods) -->
<!--
##############################################
# Copyright (c) Joshua Davidson (it0uchpods) #
##############################################
-->
<system name="A320: Lights">
<channel name="Lights">
<switch name="lights/reading-light">
<output>/controls/lighting/reading-light</output>
<default value="0" />
<test logic="OR" value="/controls/lighting/main-flood-knb">
/systems/electrical/bus/dc1 gt 25
</test>
</switch>
<switch name="lights/panel-light">
<output>/controls/lighting/panel-light</output>
<default value="0" />
<test logic="OR" value="/controls/lighting/main-flood-knb">
/systems/electrical/bus/dc-ess gt 25
/systems/electrical/bus/dc1 gt 25
</test>
</switch>
</channel>
</system>