1
0
Fork 0

Standby compass integral light

This commit is contained in:
Jonathan Redpath 2022-07-27 18:44:55 +01:00
parent 67a09ab7c6
commit 7c38a34925
3 changed files with 66 additions and 0 deletions

View file

@ -39632,6 +39632,58 @@
<factor-prop>sim/model/lights/dome-light</factor-prop> <factor-prop>sim/model/lights/dome-light</factor-prop>
</emission> </emission>
</animation> </animation>
<animation>
<name>Standby compass integral lighting</name>
<type>material</type>
<object-name>compass_box.wheel</object-name>
<condition>
<not>
<and>
<greater-than>
<property>sim/model/lights/dome-light</property>
<value>0</value>
</greater-than>
<less-than>
<property>controls/lighting/stby-compass</property>
<value>0.25</value>
</less-than>
</and>
</not>
</condition>
<emission>
<red>1</red>
<green>0.725</green>
<blue>0.259</blue>
<factor-prop>controls/lighting/stby-compass</factor-prop>
</emission>
</animation>
<animation>
<name>Standby compass integral lighting (dome)</name>
<type>material</type>
<object-name>compass_box.wheel</object-name>
<condition>
<and>
<not>
<greater-than>
<property>controls/lighting/stby-compass</property>
<value>0.25</value>
</greater-than>
</not>
<greater-than>
<property>sim/model/lights/dome-light</property>
<value>0</value>
</greater-than>
</and>
</condition>
<emission>
<red>0.20</red>
<green>0.20</green>
<blue>0.20</blue>
<factor-prop>sim/model/lights/dome-light</factor-prop>
</emission>
</animation>
<!-- Dome Light --> <!-- Dome Light -->
<animation> <animation>

View file

@ -43,6 +43,13 @@
<output>/controls/lighting/overhead-panel-norm</output> <output>/controls/lighting/overhead-panel-norm</output>
</filter> </filter>
<filter>
<type>gain</type>
<gain>1.0</gain>
<input>/controls/lighting/stby-compass-tied</input>
<output>/controls/lighting/stby-compass</output>
</filter>
<filter> <filter>
<type>gain</type> <type>gain</type>
<gain>1.0</gain> <gain>1.0</gain>

View file

@ -108,6 +108,13 @@
/systems/electrical/bus/dc-ess ge 25 /systems/electrical/bus/dc-ess ge 25
</test> </test>
</switch> </switch>
<switch name="/controls/lighting/stby-compass-tied">
<default value="0" />
<test value="/controls/lighting/stby-compass-switch">
/systems/electrical/bus/dc-ess ge 25
</test>
</switch>
</channel> </channel>
<channel name="Exterior Lights" execrate="8"> <channel name="Exterior Lights" execrate="8">