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,36 +415,36 @@ var flashfault2 = func {
|
|||
setprop("/controls/deice/eng2-fault", 0);
|
||||
}, 0.5);
|
||||
}
|
||||
# Oxygen (Cabin)
|
||||
|
||||
setlistener("/controls/oxygen/masksDeployMan", func {
|
||||
if (guard and masks) {
|
||||
setprop("/controls/oxygen/masksDeployMan", 0);
|
||||
} else if (!guard and masks) {
|
||||
setprop("/controls/oxygen/masksDeployMan", 1);
|
||||
setprop("/controls/oxygen/masksDeploy", 1);
|
||||
setprop("/controls/oxygen/masksSys", 1);
|
||||
}
|
||||
});
|
||||
# Oxygen (Cabin)
|
||||
|
||||
if (cabinalt > 13500) {
|
||||
setlistener("/controls/oxygen/masksDeployMan", func {
|
||||
if (guard and masks) {
|
||||
setprop("/controls/oxygen/masksDeployMan", 0);
|
||||
} else if (!guard and masks) {
|
||||
setprop("/controls/oxygen/masksDeployMan", 1);
|
||||
setprop("/controls/oxygen/masksDeploy", 1);
|
||||
setprop("/controls/oxygen/masksSys", 1);
|
||||
}
|
||||
|
||||
setlistener("/controls/oxygen/masksDeployMan", func {
|
||||
var masks = getprop("/controls/oxygen/masksDeployMan");
|
||||
var autoMasks = getprop("/controls/oxygen/masksDeploy");
|
||||
if (!masks) {
|
||||
setprop("/controls/oxygen/masksDeployMan", 1);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
setlistener("/controls/oxygen/masksDeploy", func {
|
||||
var masks = getprop("/controls/oxygen/masksDeployMan");
|
||||
var autoMasks = getprop("/controls/oxygen/masksDeploy");
|
||||
if (!autoMasks) {
|
||||
setprop("/controls/oxygen/masksDeploy", 1);
|
||||
}
|
||||
});
|
||||
if (cabinalt > 13500) {
|
||||
setprop("/controls/oxygen/masksDeploy", 1);
|
||||
setprop("/controls/oxygen/masksSys", 1);
|
||||
}
|
||||
|
||||
setlistener("/controls/oxygen/masksDeployMan", func {
|
||||
var masks = getprop("/controls/oxygen/masksDeployMan");
|
||||
var autoMasks = getprop("/controls/oxygen/masksDeploy");
|
||||
if (!masks) {
|
||||
setprop("/controls/oxygen/masksDeployMan", 1);
|
||||
}
|
||||
});
|
||||
|
||||
setlistener("/controls/oxygen/masksDeploy", func {
|
||||
var masks = getprop("/controls/oxygen/masksDeployMan");
|
||||
var autoMasks = getprop("/controls/oxygen/masksDeploy");
|
||||
if (!autoMasks) {
|
||||
setprop("/controls/oxygen/masksDeploy", 1);
|
||||
}
|
||||
});
|
||||
|
|
Reference in a new issue