A32X: Electrical bugfix

This commit is contained in:
Joshua Davidson 2017-09-26 14:56:35 -04:00
parent 3d3cb1a7b6
commit 476bae9fa6
2 changed files with 4 additions and 3 deletions

View file

@ -169,8 +169,6 @@ var master_elec = func {
extpwr_on = getprop("/controls/switches/cart");
stateL = getprop("/engines/engine[0]/state");
stateR = getprop("/engines/engine[1]/state");
xtieL = getprop("/controls/electrical/xtie/xtieL");
xtieR = getprop("/controls/electrical/xtie/xtieR");
ac1 = getprop("/systems/electrical/bus/ac1");
ac2 = getprop("/systems/electrical/bus/ac2");
ac_ess = getprop("/systems/electrical/bus/ac-ess");
@ -231,6 +229,9 @@ var master_elec = func {
setprop("/controls/electrical/xtie/xtieL", 0);
}
xtieL = getprop("/controls/electrical/xtie/xtieL");
xtieR = getprop("/controls/electrical/xtie/xtieR");
# Left DC bus yes?
if (stateL == 3 and gen1_sw and !gen1_fail) {
setprop("/systems/electrical/bus/dc1", dc_volt_std);

View file

@ -1 +1 @@
1538
1539