From 608cb60affc6ec88cbe1f2c723720e8f110c8859 Mon Sep 17 00:00:00 2001 From: Joshua Davidson Date: Tue, 1 Aug 2017 09:37:29 -0400 Subject: [PATCH] A3XX: Fix PTU never ever becoming active --- Nasal/hydraulics.nas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Nasal/hydraulics.nas b/Nasal/hydraulics.nas index 703a8392..bd033128 100644 --- a/Nasal/hydraulics.nas +++ b/Nasal/hydraulics.nas @@ -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);