Landing gear warning light, add emission animation and electrical dependency
This commit is contained in:
parent
b94e19bd67
commit
c6d607e6b2
3 changed files with 64 additions and 11 deletions
|
@ -5444,18 +5444,64 @@
|
||||||
<type>select</type>
|
<type>select</type>
|
||||||
<object-name>gear_lever_down_arrow</object-name>
|
<object-name>gear_lever_down_arrow</object-name>
|
||||||
<condition>
|
<condition>
|
||||||
<or>
|
<and>
|
||||||
<equals>
|
<or>
|
||||||
<property>controls/switches/annun-test</property>
|
<greater-than>
|
||||||
<value>1</value>
|
<property>systems/electrical/bus/ac-ess</property>
|
||||||
</equals>
|
<value>110</value>
|
||||||
<equals>
|
</greater-than>
|
||||||
<property>systems/gear/landing-gear-warning-light</property>
|
<greater-than>
|
||||||
<value>1</value>
|
<property>systems/electrical/bus/ac-2</property>
|
||||||
</equals>
|
<value>110</value>
|
||||||
</or>
|
</greater-than>
|
||||||
|
</or>
|
||||||
|
<or>
|
||||||
|
<equals>
|
||||||
|
<property>controls/switches/annun-test</property>
|
||||||
|
<value>1</value>
|
||||||
|
</equals>
|
||||||
|
<equals>
|
||||||
|
<property>ECAM/warnings/landing-gear-warning-light</property>
|
||||||
|
<value>1</value>
|
||||||
|
</equals>
|
||||||
|
</or>
|
||||||
|
</and>
|
||||||
</condition>
|
</condition>
|
||||||
</animation>
|
</animation>
|
||||||
|
|
||||||
|
<animation>
|
||||||
|
<type>material</type>
|
||||||
|
<object-name>gear_lever_down_arrow</object-name>
|
||||||
|
<condition>
|
||||||
|
<and>
|
||||||
|
<or>
|
||||||
|
<greater-than>
|
||||||
|
<property>systems/electrical/bus/ac-ess</property>
|
||||||
|
<value>110</value>
|
||||||
|
</greater-than>
|
||||||
|
<greater-than>
|
||||||
|
<property>systems/electrical/bus/ac-2</property>
|
||||||
|
<value>110</value>
|
||||||
|
</greater-than>
|
||||||
|
</or>
|
||||||
|
<or>
|
||||||
|
<equals>
|
||||||
|
<property>controls/switches/annun-test</property>
|
||||||
|
<value>1</value>
|
||||||
|
</equals>
|
||||||
|
<equals>
|
||||||
|
<property>ECAM/warnings/landing-gear-warning-light</property>
|
||||||
|
<value>1</value>
|
||||||
|
</equals>
|
||||||
|
</or>
|
||||||
|
</and>
|
||||||
|
</condition>
|
||||||
|
<emission>
|
||||||
|
<red>1.00</red>
|
||||||
|
<green>0.0</green>
|
||||||
|
<blue>0.0</blue>
|
||||||
|
</emission>
|
||||||
|
</animation>
|
||||||
|
|
||||||
<!-- Landing Gear Lights -->
|
<!-- Landing Gear Lights -->
|
||||||
<animation>
|
<animation>
|
||||||
|
|
|
@ -653,8 +653,14 @@ var messages_priority_3 = func {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (gearNotDown.clearFlag == 0 and (warningNodes.Logic.gearNotDown1.getBoolValue() or warningNodes.Logic.gearNotDown2.getBoolValue()) and phaseVar3 != 3 and phaseVar3 != 4 and phaseVar3 != 5) {
|
if (gearNotDown.clearFlag == 0 and (warningNodes.Logic.gearNotDown1.getBoolValue() or warningNodes.Logic.gearNotDown2.getBoolValue()) and phaseVar3 != 3 and phaseVar3 != 4 and phaseVar3 != 5) {
|
||||||
|
if (!gearNotDown.active) {
|
||||||
|
gearWarnLight.setValue(1);
|
||||||
|
}
|
||||||
gearNotDown.active = 1;
|
gearNotDown.active = 1;
|
||||||
} else {
|
} else {
|
||||||
|
if (gearNotDown.active) {
|
||||||
|
gearWarnLight.setValue(0);
|
||||||
|
}
|
||||||
ECAM_controller.warningReset(gearNotDown);
|
ECAM_controller.warningReset(gearNotDown);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -19,10 +19,11 @@ var engStrtTimeSw = 0;
|
||||||
var engStrtTime = 0;
|
var engStrtTime = 0;
|
||||||
var page = 0;
|
var page = 0;
|
||||||
|
|
||||||
|
var gearWarnLight = props.globals.initNode("/ECAM/warnings/landing-gear-warning-light", 0, "BOOL");
|
||||||
|
|
||||||
var ECAM = {
|
var ECAM = {
|
||||||
_cachePage: "",
|
_cachePage: "",
|
||||||
init: func() {
|
init: func() {
|
||||||
setprop("/systems/gear/landing-gear-warning-light", 0);
|
|
||||||
page = props.globals.initNode("/ECAM/Lower/page", "door", "STRING");
|
page = props.globals.initNode("/ECAM/Lower/page", "door", "STRING");
|
||||||
|
|
||||||
apOffTime = props.globals.initNode("/ECAM/warnings/ap-off-time", 0, "INT");
|
apOffTime = props.globals.initNode("/ECAM/warnings/ap-off-time", 0, "INT");
|
||||||
|
|
Loading…
Reference in a new issue