Instrument backlight redness setting.

parent 2e0a600f
......@@ -47,6 +47,15 @@
<property>gear/unit[0]/pos-norm</property>
<!--
Instrument light redness (inverse), 0.0..1.0. Examples:
0.0: red LED;
0.5: 5W wolfram with red filter;
1.0: 5W wolfram.
-->
<property value="0.5">simulation/settings/instrument-light-1_m_redness-norm</property>
<channel name="Electric consumers" execrate="8">
<switch name="systems/lighting/elec/ok[0]">
......@@ -197,8 +206,8 @@
<product>
<p>systems/lighting/panel/pot/instr</p>
<p>systems/lighting/instr/on</p>
<!-- = 0.773 * 0.5 -->
<v>0.387</v>
<p>simulation/settings/instrument-light-1_m_redness-norm</p>
<v>0.773</v>
</product>
<product>
<p>systems/lighting/panel/pot/cockpit</p>
......@@ -217,8 +226,8 @@
<product>
<p>systems/lighting/panel/pot/instr</p>
<p>systems/lighting/instr/on</p>
<!-- = 0.561 * 0.5 -->
<v>0.281</v>
<p>simulation/settings/instrument-light-1_m_redness-norm</p>
<v>0.561</v>
</product>
<product>
<p>systems/lighting/panel/pot/cockpit</p>
......
......@@ -1217,6 +1217,7 @@
<path>/fdm/jsbsim/simulation/settings/linearity-column-norm</path>
<path>/fdm/jsbsim/simulation/settings/linearity-wheel-norm</path>
<path>/fdm/jsbsim/simulation/settings/linearity-pedal-norm</path>
<path>/fdm/jsbsim/simulation/settings/instrument-light-1_m_redness-norm</path>
<path>/mpclash/control/receive</path>
<!-- Autopush -->
<path>/sim/model/autopush/route/show</path>
......
......@@ -161,7 +161,7 @@
<text>
<row>2</row>
<col>2</col>
<pref-width>16</pref-width>x
<pref-width>16</pref-width>
<property>/fdm/jsbsim/simulation/settings/linearity-pedal-norm</property>
<format>%1.2f</format>
<live>true</live>
......@@ -178,6 +178,50 @@
</button>
</group>
<text><label>Instrument Lights</label></text>
<group><layout>table</layout>
<text>
<row>0</row>
<col>0</col>
<halign>left</halign>
<label>Red</label>
</text>
<slider>
<row>0</row>
<col>1</col>
<min>0.0</min>
<max>1.0</max>
<step>0.01</step>
<property>/fdm/jsbsim/simulation/settings/instrument-light-1_m_redness-norm</property>
<live>true</live>
<binding><command>dialog-apply</command></binding>
</slider>
<text>
<row>0</row>
<col>2</col>
<halign>left</halign>
<label>White</label>
</text>
<text>
<row>0</row>
<col>3</col>
<pref-width>16</pref-width>
<property>/fdm/jsbsim/simulation/settings/instrument-light-1_m_redness-norm</property>
<format>%1.2f</format>
<live>true</live>
</text>
<button>
<row>0</row>
<col>4</col>
<legend>0.5</legend>
<binding>
<command>property-assign</command>
<property>/fdm/jsbsim/simulation/settings/instrument-light-1_m_redness-norm</property>
<value>0.5</value>
</binding>
</button>
</group>
<text><label>Crew</label></text>
<group><layout>table</layout>
<text>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment