A32X: Connect DUs to proper buses, and fix RAT buses
This commit is contained in:
parent
475e9994d7
commit
79114cd57e
6 changed files with 81 additions and 29 deletions
|
@ -88,7 +88,7 @@ var canvas_lowerECAM_base = {
|
||||||
},
|
},
|
||||||
update: func() {
|
update: func() {
|
||||||
elapsedtime = getprop("/sim/time/elapsed-sec");
|
elapsedtime = getprop("/sim/time/elapsed-sec");
|
||||||
if (getprop("/systems/electrical/bus/ac1") >= 110 and getprop("/systems/electrical/bus/ac2") >= 110) {
|
if (getprop("/systems/electrical/bus/ac2") >= 110) {
|
||||||
if (getprop("/systems/acconfig/autoconfig-running") != 1 and getprop("/instrumentation/du/du4-test") != 1) {
|
if (getprop("/systems/acconfig/autoconfig-running") != 1 and getprop("/instrumentation/du/du4-test") != 1) {
|
||||||
setprop("/instrumentation/du/du4-test", 1);
|
setprop("/instrumentation/du/du4-test", 1);
|
||||||
setprop("/instrumentation/du/du4-test-time", getprop("/sim/time/elapsed-sec"));
|
setprop("/instrumentation/du/du4-test-time", getprop("/sim/time/elapsed-sec"));
|
||||||
|
@ -100,7 +100,7 @@ var canvas_lowerECAM_base = {
|
||||||
setprop("/instrumentation/du/du4-test", 0);
|
setprop("/instrumentation/du/du4-test", 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (getprop("/systems/electrical/bus/ac1") >= 110 and getprop("/systems/electrical/ac1-src") != "RAT" and getprop("/systems/electrical/bus/ac2") >= 110 and getprop("/systems/electrical/ac2-src") != "RAT" and getprop("/controls/lighting/DU/du4") > 0) {
|
if (getprop("/systems/electrical/bus/ac2") >= 110 and getprop("/controls/lighting/DU/du4") > 0) {
|
||||||
if (getprop("/instrumentation/du/du4-test-time") + 40 >= elapsedtime) {
|
if (getprop("/instrumentation/du/du4-test-time") + 40 >= elapsedtime) {
|
||||||
lowerECAM_apu.page.hide();
|
lowerECAM_apu.page.hide();
|
||||||
lowerECAM_eng.page.hide();
|
lowerECAM_eng.page.hide();
|
||||||
|
|
|
@ -76,7 +76,7 @@ var canvas_nd_base = {
|
||||||
},
|
},
|
||||||
update: func() {
|
update: func() {
|
||||||
elapsedtime = getprop("/sim/time/elapsed-sec");
|
elapsedtime = getprop("/sim/time/elapsed-sec");
|
||||||
if (getprop("/systems/electrical/bus/ac1") >= 110 and getprop("/systems/electrical/bus/ac2") >= 110) {
|
if (getprop("/systems/electrical/bus/ac-ess-shed") >= 110) {
|
||||||
if (getprop("/systems/acconfig/autoconfig-running") != 1 and getprop("/instrumentation/du/du2-test") != 1) {
|
if (getprop("/systems/acconfig/autoconfig-running") != 1 and getprop("/instrumentation/du/du2-test") != 1) {
|
||||||
setprop("/instrumentation/du/du2-test", 1);
|
setprop("/instrumentation/du/du2-test", 1);
|
||||||
setprop("/instrumentation/du/du2-test-time", getprop("/sim/time/elapsed-sec"));
|
setprop("/instrumentation/du/du2-test-time", getprop("/sim/time/elapsed-sec"));
|
||||||
|
@ -84,6 +84,10 @@ var canvas_nd_base = {
|
||||||
setprop("/instrumentation/du/du2-test", 1);
|
setprop("/instrumentation/du/du2-test", 1);
|
||||||
setprop("/instrumentation/du/du2-test-time", getprop("/sim/time/elapsed-sec") - 35);
|
setprop("/instrumentation/du/du2-test-time", getprop("/sim/time/elapsed-sec") - 35);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
setprop("/instrumentation/du/du2-test", 0);
|
||||||
|
}
|
||||||
|
if (getprop("/systems/electrical/bus/ac2") >= 110) {
|
||||||
if (getprop("/systems/acconfig/autoconfig-running") != 1 and getprop("/instrumentation/du/du5-test") != 1) {
|
if (getprop("/systems/acconfig/autoconfig-running") != 1 and getprop("/instrumentation/du/du5-test") != 1) {
|
||||||
setprop("/instrumentation/du/du5-test", 1);
|
setprop("/instrumentation/du/du5-test", 1);
|
||||||
setprop("/instrumentation/du/du5-test-time", getprop("/sim/time/elapsed-sec"));
|
setprop("/instrumentation/du/du5-test-time", getprop("/sim/time/elapsed-sec"));
|
||||||
|
@ -92,11 +96,10 @@ var canvas_nd_base = {
|
||||||
setprop("/instrumentation/du/du5-test-time", getprop("/sim/time/elapsed-sec") - 35);
|
setprop("/instrumentation/du/du5-test-time", getprop("/sim/time/elapsed-sec") - 35);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
setprop("/instrumentation/du/du2-test", 0);
|
|
||||||
setprop("/instrumentation/du/du5-test", 0);
|
setprop("/instrumentation/du/du5-test", 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (getprop("/systems/electrical/bus/ac1") >= 110 and getprop("/systems/electrical/ac1-src") != "RAT" and getprop("/systems/electrical/bus/ac2") >= 110 and getprop("/systems/electrical/ac2-src") != "RAT" and getprop("/controls/lighting/DU/du2") > 0) {
|
if (getprop("/systems/electrical/bus/ac-ess-shed") >= 110 and getprop("/controls/lighting/DU/du2") > 0) {
|
||||||
if (getprop("/instrumentation/du/du2-test-time") + 38.5 >= elapsedtime and getprop("/modes/cpt-du-xfr") != 1) {
|
if (getprop("/instrumentation/du/du2-test-time") + 38.5 >= elapsedtime and getprop("/modes/cpt-du-xfr") != 1) {
|
||||||
ND_1.page.hide();
|
ND_1.page.hide();
|
||||||
ND_1_test.page.show();
|
ND_1_test.page.show();
|
||||||
|
@ -112,7 +115,7 @@ var canvas_nd_base = {
|
||||||
ND_1_test.page.hide();
|
ND_1_test.page.hide();
|
||||||
ND_1.page.hide();
|
ND_1.page.hide();
|
||||||
}
|
}
|
||||||
if (getprop("/systems/electrical/bus/ac1") >= 110 and getprop("/systems/electrical/ac1-src") != "RAT" and getprop("/systems/electrical/bus/ac2") >= 110 and getprop("/systems/electrical/ac2-src") != "RAT" and getprop("/controls/lighting/DU/du5") > 0) {
|
if (getprop("/systems/electrical/bus/ac2") >= 110 and getprop("/controls/lighting/DU/du5") > 0) {
|
||||||
if (getprop("/instrumentation/du/du5-test-time") + 38.5 >= elapsedtime and getprop("/modes/fo-du-xfr") != 1) {
|
if (getprop("/instrumentation/du/du5-test-time") + 38.5 >= elapsedtime and getprop("/modes/fo-du-xfr") != 1) {
|
||||||
ND_2.page.hide();
|
ND_2.page.hide();
|
||||||
ND_2_test.page.show();
|
ND_2_test.page.show();
|
||||||
|
|
|
@ -132,7 +132,7 @@ var canvas_PFD_base = {
|
||||||
},
|
},
|
||||||
update: func() {
|
update: func() {
|
||||||
elapsedtime = getprop("/sim/time/elapsed-sec");
|
elapsedtime = getprop("/sim/time/elapsed-sec");
|
||||||
if (getprop("/systems/electrical/bus/ac1") >= 110 or getprop("/systems/electrical/bus/ac2") >= 110) {
|
if (getprop("/systems/electrical/bus/ac-ess") >= 110) {
|
||||||
if (getprop("/systems/acconfig/autoconfig-running") != 1 and getprop("/instrumentation/du/du1-test") != 1) {
|
if (getprop("/systems/acconfig/autoconfig-running") != 1 and getprop("/instrumentation/du/du1-test") != 1) {
|
||||||
setprop("/instrumentation/du/du1-test", 1);
|
setprop("/instrumentation/du/du1-test", 1);
|
||||||
setprop("/instrumentation/du/du1-test-time", getprop("/sim/time/elapsed-sec"));
|
setprop("/instrumentation/du/du1-test-time", getprop("/sim/time/elapsed-sec"));
|
||||||
|
@ -143,7 +143,7 @@ var canvas_PFD_base = {
|
||||||
} else {
|
} else {
|
||||||
setprop("/instrumentation/du/du1-test", 0);
|
setprop("/instrumentation/du/du1-test", 0);
|
||||||
}
|
}
|
||||||
if (getprop("/systems/electrical/bus/ac1") >= 110 and getprop("/systems/electrical/bus/ac2") >= 110) {
|
if (getprop("/systems/electrical/bus/ac2") >= 110) {
|
||||||
if (getprop("/systems/acconfig/autoconfig-running") != 1 and getprop("/instrumentation/du/du6-test") != 1) {
|
if (getprop("/systems/acconfig/autoconfig-running") != 1 and getprop("/instrumentation/du/du6-test") != 1) {
|
||||||
setprop("/instrumentation/du/du6-test", 1);
|
setprop("/instrumentation/du/du6-test", 1);
|
||||||
setprop("/instrumentation/du/du6-test-time", getprop("/sim/time/elapsed-sec"));
|
setprop("/instrumentation/du/du6-test-time", getprop("/sim/time/elapsed-sec"));
|
||||||
|
@ -155,7 +155,7 @@ var canvas_PFD_base = {
|
||||||
setprop("/instrumentation/du/du6-test", 0);
|
setprop("/instrumentation/du/du6-test", 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((getprop("/systems/electrical/bus/ac1") >= 110 or getprop("/systems/electrical/bus/ac2") >= 110) and getprop("/controls/lighting/DU/du1") > 0) {
|
if (getprop("/systems/electrical/bus/ac-ess") >= 110 and getprop("/controls/lighting/DU/du1") > 0) {
|
||||||
if (getprop("/instrumentation/du/du1-test-time") + 39.5 >= elapsedtime and getprop("/modes/cpt-du-xfr") != 1) {
|
if (getprop("/instrumentation/du/du1-test-time") + 39.5 >= elapsedtime and getprop("/modes/cpt-du-xfr") != 1) {
|
||||||
PFD_1.page.hide();
|
PFD_1.page.hide();
|
||||||
PFD_1_test.page.show();
|
PFD_1_test.page.show();
|
||||||
|
@ -171,7 +171,7 @@ var canvas_PFD_base = {
|
||||||
PFD_1_test.page.hide();
|
PFD_1_test.page.hide();
|
||||||
PFD_1.page.hide();
|
PFD_1.page.hide();
|
||||||
}
|
}
|
||||||
if (getprop("/systems/electrical/bus/ac1") >= 110 and getprop("/systems/electrical/ac1-src") != "RAT" and getprop("/systems/electrical/bus/ac2") >= 110 and getprop("/systems/electrical/ac2-src") != "RAT" and getprop("/controls/lighting/DU/du6") > 0) {
|
if (getprop("/systems/electrical/bus/ac2") >= 110 and getprop("/controls/lighting/DU/du6") > 0) {
|
||||||
if (getprop("/instrumentation/du/du6-test-time") + 39.5 >= elapsedtime and getprop("/modes/fo-du-xfr") != 1) {
|
if (getprop("/instrumentation/du/du6-test-time") + 39.5 >= elapsedtime and getprop("/modes/fo-du-xfr") != 1) {
|
||||||
PFD_2.page.hide();
|
PFD_2.page.hide();
|
||||||
PFD_2_test.page.show();
|
PFD_2_test.page.show();
|
||||||
|
|
|
@ -49,7 +49,7 @@ var canvas_upperECAM_base = {
|
||||||
},
|
},
|
||||||
update: func() {
|
update: func() {
|
||||||
elapsedtime = getprop("/sim/time/elapsed-sec");
|
elapsedtime = getprop("/sim/time/elapsed-sec");
|
||||||
if (getprop("/systems/electrical/bus/ac1") >= 110 or getprop("/systems/electrical/bus/ac2") >= 110) {
|
if (getprop("/systems/electrical/bus/ac-ess") >= 110) {
|
||||||
if (getprop("/systems/acconfig/autoconfig-running") != 1 and getprop("/instrumentation/du/du3-test") != 1) {
|
if (getprop("/systems/acconfig/autoconfig-running") != 1 and getprop("/instrumentation/du/du3-test") != 1) {
|
||||||
setprop("/instrumentation/du/du3-test", 1);
|
setprop("/instrumentation/du/du3-test", 1);
|
||||||
setprop("/instrumentation/du/du3-test-time", getprop("/sim/time/elapsed-sec"));
|
setprop("/instrumentation/du/du3-test-time", getprop("/sim/time/elapsed-sec"));
|
||||||
|
@ -61,7 +61,7 @@ var canvas_upperECAM_base = {
|
||||||
setprop("/instrumentation/du/du3-test", 0);
|
setprop("/instrumentation/du/du3-test", 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((getprop("/systems/electrical/bus/ac1") >= 110 or getprop("/systems/electrical/bus/ac2") >= 110) and getprop("/controls/lighting/DU/du3") > 0) {
|
if (getprop("/systems/electrical/bus/ac-ess") >= 110 and getprop("/controls/lighting/DU/du3") > 0) {
|
||||||
if (getprop("/instrumentation/du/du3-test-time") + 39 >= elapsedtime) {
|
if (getprop("/instrumentation/du/du3-test-time") + 39 >= elapsedtime) {
|
||||||
upperECAM_cfm_eis2.page.hide();
|
upperECAM_cfm_eis2.page.hide();
|
||||||
upperECAM_iae_eis2.page.hide();
|
upperECAM_iae_eis2.page.hide();
|
||||||
|
|
|
@ -348,9 +348,9 @@ var ELEC = {
|
||||||
setprop("/systems/electrical/bus/dc-ess", dc_volt_std);
|
setprop("/systems/electrical/bus/dc-ess", dc_volt_std);
|
||||||
setprop("/systems/electrical/bus/dc1-amps", dc_amps_std);
|
setprop("/systems/electrical/bus/dc1-amps", dc_amps_std);
|
||||||
} else if (emergen) {
|
} else if (emergen) {
|
||||||
setprop("/systems/electrical/bus/dc1", dc_volt_std);
|
setprop("/systems/electrical/bus/dc1", 0);
|
||||||
setprop("/systems/electrical/bus/dc-ess", dc_volt_std);
|
setprop("/systems/electrical/bus/dc-ess", dc_volt_std);
|
||||||
setprop("/systems/electrical/bus/dc1-amps", dc_amps_std);
|
setprop("/systems/electrical/bus/dc1-amps", 0);
|
||||||
} else {
|
} else {
|
||||||
setprop("/systems/electrical/bus/dc1", 0);
|
setprop("/systems/electrical/bus/dc1", 0);
|
||||||
setprop("/systems/electrical/bus/dc1-amps", 0);
|
setprop("/systems/electrical/bus/dc1-amps", 0);
|
||||||
|
@ -377,9 +377,9 @@ var ELEC = {
|
||||||
setprop("/systems/electrical/bus/dc-ess", dc_volt_std);
|
setprop("/systems/electrical/bus/dc-ess", dc_volt_std);
|
||||||
setprop("/systems/electrical/bus/dc2-amps", dc_amps_std);
|
setprop("/systems/electrical/bus/dc2-amps", dc_amps_std);
|
||||||
} else if (emergen) {
|
} else if (emergen) {
|
||||||
setprop("/systems/electrical/bus/dc2", dc_volt_std);
|
setprop("/systems/electrical/bus/dc2", 0);
|
||||||
setprop("/systems/electrical/bus/dc-ess", dc_volt_std);
|
setprop("/systems/electrical/bus/dc-ess", dc_volt_std);
|
||||||
setprop("/systems/electrical/bus/dc2-amps", dc_amps_std);
|
setprop("/systems/electrical/bus/dc2-amps", 0);
|
||||||
} else {
|
} else {
|
||||||
setprop("/systems/electrical/bus/dc2", 0);
|
setprop("/systems/electrical/bus/dc2", 0);
|
||||||
setprop("/systems/electrical/bus/dc2-amps", 0);
|
setprop("/systems/electrical/bus/dc2-amps", 0);
|
||||||
|
@ -391,42 +391,98 @@ var ELEC = {
|
||||||
# Left AC bus yes?
|
# Left AC bus yes?
|
||||||
if (stateL == 3 and gen1_sw and !gen1_fail) {
|
if (stateL == 3 and gen1_sw and !gen1_fail) {
|
||||||
setprop("/systems/electrical/bus/ac1", ac_volt_std);
|
setprop("/systems/electrical/bus/ac1", ac_volt_std);
|
||||||
|
if (!ac_ess_fail) {
|
||||||
|
setprop("/systems/electrical/bus/ac-ess", ac_volt_std);
|
||||||
|
} else {
|
||||||
|
setprop("/systems/electrical/bus/ac-ess", 0);
|
||||||
|
}
|
||||||
ac1_src = "GEN";
|
ac1_src = "GEN";
|
||||||
} else if (extpwr_on and gen_ext_sw and apu_ext_crosstie_sw) {
|
} else if (extpwr_on and gen_ext_sw and apu_ext_crosstie_sw) {
|
||||||
setprop("/systems/electrical/bus/ac1", ac_volt_std);
|
setprop("/systems/electrical/bus/ac1", ac_volt_std);
|
||||||
|
if (!ac_ess_fail) {
|
||||||
|
setprop("/systems/electrical/bus/ac-ess", ac_volt_std);
|
||||||
|
} else {
|
||||||
|
setprop("/systems/electrical/bus/ac-ess", 0);
|
||||||
|
}
|
||||||
ac1_src = "EXT";
|
ac1_src = "EXT";
|
||||||
} else if (gen_apu and !genapu_fail and apu_ext_crosstie_sw) {
|
} else if (gen_apu and !genapu_fail and apu_ext_crosstie_sw) {
|
||||||
setprop("/systems/electrical/bus/ac1", ac_volt_std);
|
setprop("/systems/electrical/bus/ac1", ac_volt_std);
|
||||||
|
if (!ac_ess_fail) {
|
||||||
|
setprop("/systems/electrical/bus/ac-ess", ac_volt_std);
|
||||||
|
} else {
|
||||||
|
setprop("/systems/electrical/bus/ac-ess", 0);
|
||||||
|
}
|
||||||
ac1_src = "APU";
|
ac1_src = "APU";
|
||||||
} else if (apu_ext_crosstie_sw == 1 and xtieL) {
|
} else if (apu_ext_crosstie_sw == 1 and xtieL) {
|
||||||
setprop("/systems/electrical/bus/ac1", ac_volt_std);
|
setprop("/systems/electrical/bus/ac1", ac_volt_std);
|
||||||
|
if (!ac_ess_fail) {
|
||||||
|
setprop("/systems/electrical/bus/ac-ess", ac_volt_std);
|
||||||
|
} else {
|
||||||
|
setprop("/systems/electrical/bus/ac-ess", 0);
|
||||||
|
}
|
||||||
ac1_src = "XTIE";
|
ac1_src = "XTIE";
|
||||||
} else if (emergen) {
|
} else if (emergen) {
|
||||||
setprop("/systems/electrical/bus/ac1", ac_volt_std);
|
setprop("/systems/electrical/bus/ac1", 0);
|
||||||
ac1_src = "RAT";
|
if (!ac_ess_fail) {
|
||||||
|
setprop("/systems/electrical/bus/ac-ess", ac_volt_std);
|
||||||
|
} else {
|
||||||
|
setprop("/systems/electrical/bus/ac-ess", 0);
|
||||||
|
}
|
||||||
|
ac1_src = "ESSRAT";
|
||||||
} else {
|
} else {
|
||||||
setprop("/systems/electrical/bus/ac1", 0);
|
setprop("/systems/electrical/bus/ac1", 0);
|
||||||
|
if (getprop("/systems/electrical/bus/ac2") == 0) {
|
||||||
|
setprop("/systems/electrical/bus/ac-ess", 0);
|
||||||
|
}
|
||||||
ac1_src = "XX";
|
ac1_src = "XX";
|
||||||
}
|
}
|
||||||
|
|
||||||
# Right AC bus yes?
|
# Right AC bus yes?
|
||||||
if (stateR == 3 and gen2_sw and !gen2_fail) {
|
if (stateR == 3 and gen2_sw and !gen2_fail) {
|
||||||
setprop("/systems/electrical/bus/ac2", ac_volt_std);
|
setprop("/systems/electrical/bus/ac2", ac_volt_std);
|
||||||
|
if (!ac_ess_fail) {
|
||||||
|
setprop("/systems/electrical/bus/ac-ess", ac_volt_std);
|
||||||
|
} else {
|
||||||
|
setprop("/systems/electrical/bus/ac-ess", 0);
|
||||||
|
}
|
||||||
ac2_src = "GEN";
|
ac2_src = "GEN";
|
||||||
} else if (extpwr_on and gen_ext_sw and apu_ext_crosstie_sw) {
|
} else if (extpwr_on and gen_ext_sw and apu_ext_crosstie_sw) {
|
||||||
setprop("/systems/electrical/bus/ac2", ac_volt_std);
|
setprop("/systems/electrical/bus/ac2", ac_volt_std);
|
||||||
|
if (!ac_ess_fail) {
|
||||||
|
setprop("/systems/electrical/bus/ac-ess", ac_volt_std);
|
||||||
|
} else {
|
||||||
|
setprop("/systems/electrical/bus/ac-ess", 0);
|
||||||
|
}
|
||||||
ac2_src = "EXT";
|
ac2_src = "EXT";
|
||||||
} else if (gen_apu and !genapu_fail and apu_ext_crosstie_sw) {
|
} else if (gen_apu and !genapu_fail and apu_ext_crosstie_sw) {
|
||||||
setprop("/systems/electrical/bus/ac2", ac_volt_std);
|
setprop("/systems/electrical/bus/ac2", ac_volt_std);
|
||||||
|
if (!ac_ess_fail) {
|
||||||
|
setprop("/systems/electrical/bus/ac-ess", ac_volt_std);
|
||||||
|
} else {
|
||||||
|
setprop("/systems/electrical/bus/ac-ess", 0);
|
||||||
|
}
|
||||||
ac2_src = "APU";
|
ac2_src = "APU";
|
||||||
} else if (apu_ext_crosstie_sw == 1 and xtieR) {
|
} else if (apu_ext_crosstie_sw == 1 and xtieR) {
|
||||||
setprop("/systems/electrical/bus/ac2", ac_volt_std);
|
setprop("/systems/electrical/bus/ac2", ac_volt_std);
|
||||||
|
if (!ac_ess_fail) {
|
||||||
|
setprop("/systems/electrical/bus/ac-ess", ac_volt_std);
|
||||||
|
} else {
|
||||||
|
setprop("/systems/electrical/bus/ac-ess", 0);
|
||||||
|
}
|
||||||
ac2_src = "XTIE";
|
ac2_src = "XTIE";
|
||||||
} else if (emergen) {
|
} else if (emergen) {
|
||||||
setprop("/systems/electrical/bus/ac2", ac_volt_std);
|
setprop("/systems/electrical/bus/ac2", 0);
|
||||||
ac2_src = "RAT";
|
if (!ac_ess_fail) {
|
||||||
|
setprop("/systems/electrical/bus/ac-ess", ac_volt_std);
|
||||||
|
} else {
|
||||||
|
setprop("/systems/electrical/bus/ac-ess", 0);
|
||||||
|
}
|
||||||
|
ac2_src = "ESSRAT";
|
||||||
} else {
|
} else {
|
||||||
setprop("/systems/electrical/bus/ac2", 0);
|
setprop("/systems/electrical/bus/ac2", 0);
|
||||||
|
if (getprop("/systems/electrical/bus/ac1") == 0) {
|
||||||
|
setprop("/systems/electrical/bus/ac-ess", 0);
|
||||||
|
}
|
||||||
ac2_src = "XX";
|
ac2_src = "XX";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -465,13 +521,6 @@ var ELEC = {
|
||||||
|
|
||||||
ac1 = getprop("/systems/electrical/bus/ac1");
|
ac1 = getprop("/systems/electrical/bus/ac1");
|
||||||
ac2 = getprop("/systems/electrical/bus/ac2");
|
ac2 = getprop("/systems/electrical/bus/ac2");
|
||||||
|
|
||||||
if ((ac_ess_fail or (ac1 <= 110 or ac2 <= 110)) or (ias > 50 and getprop("/controls/hydraulic/rat-deployed") == 1 and (ac1 == 0) and (ac2 == 0) and wow)) {
|
|
||||||
setprop("/systems/electrical/bus/ac-ess", 0);
|
|
||||||
} else {
|
|
||||||
setprop("/systems/electrical/bus/ac-ess", ac_volt_std);
|
|
||||||
}
|
|
||||||
|
|
||||||
ac_ess = getprop("/systems/electrical/bus/ac-ess");
|
ac_ess = getprop("/systems/electrical/bus/ac-ess");
|
||||||
|
|
||||||
if (ac1 == 0 and ac2 == 0 and emergen == 0) {
|
if (ac1 == 0 and ac2 == 0 and emergen == 0) {
|
||||||
|
@ -496,7 +545,7 @@ var ELEC = {
|
||||||
setprop("/systems/electrical/extra/galleyshed", 0);
|
setprop("/systems/electrical/extra/galleyshed", 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((ac1 == 0) and (ac2 == 0) and (ias > 100) or (manrat) and replay == 0) {
|
if ((ac1 == 0) and (ac2 == 0) and (ias >= 100) or (manrat) and replay == 0) {
|
||||||
setprop("/controls/hydraulic/rat-deployed", 1);
|
setprop("/controls/hydraulic/rat-deployed", 1);
|
||||||
setprop("/controls/hydraulic/rat", 1);
|
setprop("/controls/hydraulic/rat", 1);
|
||||||
setprop("/controls/electrical/switches/emer-gen", 1);
|
setprop("/controls/electrical/switches/emer-gen", 1);
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
4068
|
4069
|
Reference in a new issue