Remove extra bracket from pneumatics.nas
This commit is contained in:
parent
3d5bd86529
commit
0803bb1822
1 changed files with 26 additions and 26 deletions
|
@ -415,9 +415,10 @@ var flashfault2 = func {
|
||||||
setprop("/controls/deice/eng2-fault", 0);
|
setprop("/controls/deice/eng2-fault", 0);
|
||||||
}, 0.5);
|
}, 0.5);
|
||||||
}
|
}
|
||||||
# Oxygen (Cabin)
|
|
||||||
|
|
||||||
setlistener("/controls/oxygen/masksDeployMan", func {
|
# Oxygen (Cabin)
|
||||||
|
|
||||||
|
setlistener("/controls/oxygen/masksDeployMan", func {
|
||||||
if (guard and masks) {
|
if (guard and masks) {
|
||||||
setprop("/controls/oxygen/masksDeployMan", 0);
|
setprop("/controls/oxygen/masksDeployMan", 0);
|
||||||
} else if (!guard and masks) {
|
} else if (!guard and masks) {
|
||||||
|
@ -425,26 +426,25 @@ var flashfault2 = func {
|
||||||
setprop("/controls/oxygen/masksDeploy", 1);
|
setprop("/controls/oxygen/masksDeploy", 1);
|
||||||
setprop("/controls/oxygen/masksSys", 1);
|
setprop("/controls/oxygen/masksSys", 1);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if (cabinalt > 13500) {
|
if (cabinalt > 13500) {
|
||||||
setprop("/controls/oxygen/masksDeploy", 1);
|
setprop("/controls/oxygen/masksDeploy", 1);
|
||||||
setprop("/controls/oxygen/masksSys", 1);
|
setprop("/controls/oxygen/masksSys", 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
setlistener("/controls/oxygen/masksDeployMan", func {
|
setlistener("/controls/oxygen/masksDeployMan", func {
|
||||||
var masks = getprop("/controls/oxygen/masksDeployMan");
|
var masks = getprop("/controls/oxygen/masksDeployMan");
|
||||||
var autoMasks = getprop("/controls/oxygen/masksDeploy");
|
var autoMasks = getprop("/controls/oxygen/masksDeploy");
|
||||||
if (!masks) {
|
if (!masks) {
|
||||||
setprop("/controls/oxygen/masksDeployMan", 1);
|
setprop("/controls/oxygen/masksDeployMan", 1);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
setlistener("/controls/oxygen/masksDeploy", func {
|
setlistener("/controls/oxygen/masksDeploy", func {
|
||||||
var masks = getprop("/controls/oxygen/masksDeployMan");
|
var masks = getprop("/controls/oxygen/masksDeployMan");
|
||||||
var autoMasks = getprop("/controls/oxygen/masksDeploy");
|
var autoMasks = getprop("/controls/oxygen/masksDeploy");
|
||||||
if (!autoMasks) {
|
if (!autoMasks) {
|
||||||
setprop("/controls/oxygen/masksDeploy", 1);
|
setprop("/controls/oxygen/masksDeploy", 1);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
|
||||||
|
|
Reference in a new issue