A3XX: Fix PTU never ever becoming active

This commit is contained in:
Joshua Davidson 2017-08-01 09:37:29 -04:00
parent 6f7b6e8b22
commit 608cb60aff

View file

@ -117,7 +117,7 @@ var master_hyd = func {
ptu_fail = getprop("/systems/failures/ptu");
dc2 = getprop("/systems/electrical/bus/dc2");
if (psi_diff > 500 or psi_diff < -500 and ptu_sw and dc2 > 28) {
if ((psi_diff > 500 or psi_diff < -500) and ptu_sw and dc2 > 25) {
setprop("/systems/hydraulic/ptu-active", 1);
} else if (psi_diff < 20 and psi_diff > -20) {
setprop("/systems/hydraulic/ptu-active", 0);