A32X: Fix a bunch of Hydraulics and FBW bugs when engines fail, #116
This commit is contained in:
parent
b4c83e22df
commit
9802fab6c0
3 changed files with 3 additions and 3 deletions
|
@ -123,7 +123,7 @@ var HYD = {
|
|||
|
||||
ptu_active = getprop("/systems/hydraulic/ptu-active");
|
||||
|
||||
if ((elec_pump_blue_sw and dc_ess >= 25 and !blue_pump_fail) and (stateL == 3 or stateR == 3) and !blue_leak) {
|
||||
if ((elec_pump_blue_sw and dc_ess >= 25 and !blue_pump_fail) and (stateL == 3 or stateR == 3 or getprop("/gear/gear[0]/wow") == 0) and !blue_leak) {
|
||||
if (blue_psi < 2900) {
|
||||
setprop("/systems/hydraulic/blue-psi", blue_psi + 50);
|
||||
} else {
|
||||
|
|
|
@ -158,7 +158,7 @@ var update_loop = func {
|
|||
var law = getprop("/it-fbw/law");
|
||||
|
||||
# Mech Backup can always return to direct, if it can.
|
||||
if (law == 3 and getprop("/systems/electrical/bus/ac-ess") >= 110 and getprop("/systems/hydraulic/blue-psi") >= 1500) {
|
||||
if (law == 3 and getprop("/systems/electrical/bus/ac-ess") >= 110 and (getprop("/systems/hydraulic/green-psi") >= 1500 or getprop("/systems/hydraulic/blue-psi") >= 1500 or getprop("/systems/hydraulic/yellow-psi") >= 1500)) {
|
||||
setprop("/it-fbw/degrade-law", 2);
|
||||
}
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
4112
|
||||
4113
|
Reference in a new issue