Make GPWS functional - add animation for ND brightness
This commit is contained in:
parent
f67d01606e
commit
0755cc34cc
3 changed files with 144 additions and 2 deletions
|
@ -1035,9 +1035,11 @@
|
|||
<DU>
|
||||
<du1 type="double">1</du1>
|
||||
<du2 type="double">1</du2>
|
||||
<du2-layer type="double">1</du2-layer>
|
||||
<du3 type="double">1</du3>
|
||||
<du4 type="double">1</du4>
|
||||
<du5 type="double">1</du5>
|
||||
<du5-layer type="double">1</du5-layer>
|
||||
<du6 type="double">1</du6>
|
||||
<iesi type="double">1</iesi>
|
||||
<mcdu1 type="double">1</mcdu1>
|
||||
|
@ -1174,8 +1176,8 @@
|
|||
<emerCallLtC type="bool">0</emerCallLtC>
|
||||
<landing-lights-l type="float">0.0</landing-lights-l>
|
||||
<landing-lights-r type="float">0.0</landing-lights-r>
|
||||
<loudspeaker-l type="float">0.0</loudspeaker-l>
|
||||
<loudspeaker-r type="float">0.0</loudspeaker-r>
|
||||
<loudspeaker-l type="float">1.0</loudspeaker-l>
|
||||
<loudspeaker-r type="float">1.0</loudspeaker-r>
|
||||
<LrainRpt type="bool">0</LrainRpt>
|
||||
<mechCall type="bool">0</mechCall>
|
||||
<no-smoking-sign type="double">0.5</no-smoking-sign>
|
||||
|
|
|
@ -2264,6 +2264,35 @@
|
|||
</axis>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>knob</type>
|
||||
<object-name>brightness_nd_1_cpt</object-name>
|
||||
<object-name>brightness_nd_1_cpt.mark</object-name>
|
||||
<property>controls/lighting/DU/du2-layer</property>
|
||||
<offset-deg>-125</offset-deg>
|
||||
<factor>250</factor>
|
||||
<axis>
|
||||
<object-name>brightness_nd_cpt.axis</object-name>
|
||||
</axis>
|
||||
<action>
|
||||
<repeatable>true</repeatable>
|
||||
<binding>
|
||||
<command>property-adjust</command>
|
||||
<property>controls/lighting/DU/du2-layer</property>
|
||||
<factor>0.05</factor>
|
||||
<min>0</min>
|
||||
<max>1</max>
|
||||
</binding>
|
||||
</action>
|
||||
<hovered>
|
||||
<binding>
|
||||
<command>set-tooltip</command>
|
||||
<tooltip-id>nd_brt_cpt_layer-lbl</tooltip-id>
|
||||
<label>WXR / TERR brightness control</label>
|
||||
</binding>
|
||||
</hovered>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>knob</type>
|
||||
<object-name>brightness_nd_2_cpt</object-name>
|
||||
|
@ -2294,6 +2323,35 @@
|
|||
</animation>
|
||||
|
||||
<!-- Dimmer Panel Right -->
|
||||
<animation>
|
||||
<type>knob</type>
|
||||
<object-name>brightness_nd_1_fo</object-name>
|
||||
<object-name>brightness_nd_1_fo.mark</object-name>
|
||||
<property>controls/lighting/DU/du5-layer</property>
|
||||
<offset-deg>-125</offset-deg>
|
||||
<factor>250</factor>
|
||||
<axis>
|
||||
<object-name>brightness_nd_fo.axis</object-name>
|
||||
</axis>
|
||||
<action>
|
||||
<repeatable>true</repeatable>
|
||||
<binding>
|
||||
<command>property-adjust</command>
|
||||
<property>controls/lighting/DU/du5-layer</property>
|
||||
<factor>0.05</factor>
|
||||
<min>0</min>
|
||||
<max>1</max>
|
||||
</binding>
|
||||
</action>
|
||||
<hovered>
|
||||
<binding>
|
||||
<command>set-tooltip</command>
|
||||
<tooltip-id>nd_brt_fo_layer-lbl</tooltip-id>
|
||||
<label>WXR / TERR brightness control</label>
|
||||
</binding>
|
||||
</hovered>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>knob</type>
|
||||
<object-name>brightness_nd_2_fo</object-name>
|
||||
|
@ -2551,6 +2609,84 @@
|
|||
</condition>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>pick</type>
|
||||
<object-name>gpws_gs_sw</object-name>
|
||||
<object-name>gpws_gs_sw_gs_on</object-name>
|
||||
<object-name>gpws_gs_sw_gpws_on</object-name>
|
||||
<action>
|
||||
<button>0</button>
|
||||
<binding>
|
||||
<condition>
|
||||
<and>
|
||||
<greater-than-equals>
|
||||
<property>systems/electrical/bus/ac-1</property>
|
||||
<value>110</value>
|
||||
</greater-than-equals>
|
||||
</and>
|
||||
</condition>
|
||||
<command>property-assign</command>
|
||||
<property>/instrumentation/mk-viii/inputs/discretes/self-test</property>
|
||||
<value>1</value>
|
||||
</binding>
|
||||
<binding>
|
||||
<condition>
|
||||
<and>
|
||||
<greater-than-equals>
|
||||
<property>systems/electrical/bus/ac-1</property>
|
||||
<value>110</value>
|
||||
</greater-than-equals>
|
||||
</and>
|
||||
</condition>
|
||||
<command>property-assign</command>
|
||||
<property>/instrumentation/mk-viii/inputs/discretes/glideslope-cancel</property>
|
||||
<value>1</value>
|
||||
</binding>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>libraries.pushbutton();</script>
|
||||
</binding>
|
||||
<binding>
|
||||
<command>property-assign</command>
|
||||
<property>/controls/cockpit/gpws_l-translate</property>
|
||||
<value>0.00075</value>
|
||||
</binding>
|
||||
<mod-up>
|
||||
<binding>
|
||||
<command>property-assign</command>
|
||||
<property>/instrumentation/mk-viii/inputs/discretes/self-test</property>
|
||||
<value>0</value>
|
||||
</binding>
|
||||
<binding>
|
||||
<command>property-assign</command>
|
||||
<property>/instrumentation/mk-viii/inputs/discretes/glideslope-cancel</property>
|
||||
<value>0</value>
|
||||
</binding>
|
||||
<binding>
|
||||
<command>property-assign</command>
|
||||
<property>/controls/cockpit/gpws_l-translate</property>
|
||||
<value>0.0</value>
|
||||
</binding>
|
||||
</mod-up>
|
||||
</action>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>translate</type>
|
||||
<object-name>gpws_gs_sw</object-name>
|
||||
<object-name>gpws_gs_sw_gs_on</object-name>
|
||||
<object-name>gpws_gs_sw_gpws_on</object-name>
|
||||
<property>/controls/cockpit/gpws_l-translate</property>
|
||||
<axis>
|
||||
<x1-m>-0.366265</x1-m>
|
||||
<y1-m>0.39799</y1-m>
|
||||
<z1-m>0.481225</z1-m>
|
||||
<x2-m>-0.375885</x2-m>
|
||||
<y2-m>0.39799</y2-m>
|
||||
<z2-m>0.478435</z2-m>
|
||||
</axis>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>select</type>
|
||||
<object-name>gpws_gs_sw_gs_on</object-name>
|
||||
|
|
|
@ -50,14 +50,18 @@ var variousReset = func() {
|
|||
setprop("/controls/lighting/taxi-light-switch", 0);
|
||||
setprop("/controls/lighting/DU/du1", 1);
|
||||
setprop("/controls/lighting/DU/du2", 1);
|
||||
setprop("/controls/lighting/DU/du2-layer", 1);
|
||||
setprop("/controls/lighting/DU/du3", 1);
|
||||
setprop("/controls/lighting/DU/du4", 1);
|
||||
setprop("/controls/lighting/DU/du5", 1);
|
||||
setprop("/controls/lighting/DU/du5-layer", 1);
|
||||
setprop("/controls/lighting/DU/du6", 1);
|
||||
setprop("/controls/lighting/DU/mcdu1", 1);
|
||||
setprop("/controls/lighting/DU/mcdu2", 1);
|
||||
setprop("/controls/navigation/switching/att-hdg", 0);
|
||||
setprop("/controls/navigation/switching/air-data", 0);
|
||||
setprop("/controls/switches/loudspeaker-l", 1);
|
||||
setprop("/controls/switches/loudspeaker-r", 1);
|
||||
pts.Controls.Switches.noSmokingSwitch.setValue(0);
|
||||
pts.Controls.Switches.seatbeltSwitch.setValue(0);
|
||||
pts.Controls.Switches.emerLtsSwitch.setValue(0);
|
||||
|
|
Loading…
Reference in a new issue