From 6408e95ac4462e33ad38566c2875533c5284ca0c Mon Sep 17 00:00:00 2001 From: legoboyvdlp R Date: Tue, 12 May 2020 22:03:29 +0100 Subject: [PATCH] Correct pressure ratings from AMM for engine start --- Nasal/Systems/FADEC/engines-cfm.nas | 12 +++++------- Nasal/Systems/FADEC/engines-iae.nas | 10 +++++----- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/Nasal/Systems/FADEC/engines-cfm.nas b/Nasal/Systems/FADEC/engines-cfm.nas index d5d19aa3..84875c31 100644 --- a/Nasal/Systems/FADEC/engines-cfm.nas +++ b/Nasal/Systems/FADEC/engines-cfm.nas @@ -98,7 +98,7 @@ var start_one_mancheck = func { } var start_one_mancheck_b = func { - if (systems.PNEU.Psi.engine1.getValue() >= 28) { + if (systems.PNEU.Psi.engine1.getValue() >= 25) { setprop("/engines/engine[0]/state", 1); setprop("/controls/engines/engine[0]/starter", 1); } @@ -181,7 +181,7 @@ var start_two_mancheck = func { } var start_two_mancheck_b = func { - if (systems.PNEU.Psi.engine2.getValue() >= 28) { + if (systems.PNEU.Psi.engine2.getValue() >= 25) { setprop("/engines/engine[1]/state", 1); setprop("/controls/engines/engine[1]/starter", 1); } @@ -195,7 +195,7 @@ var start_two_check = func { } var start_two_check_b = func { - if (getprop("/controls/engines/engine-start-switch") == 2 and systems.PNEU.Psi.engine2.getValue() >= 28 and !getprop("/controls/engines/engine[1]/cutoff-switch")) { + if (getprop("/controls/engines/engine-start-switch") == 2 and systems.PNEU.Psi.engine2.getValue() >= 25 and !getprop("/controls/engines/engine[1]/cutoff-switch")) { auto_start_two(); } } @@ -355,9 +355,8 @@ setlistener("/controls/engines/engine-start-switch", func { }); setlistener("/systems/pneumatics/psi/engine-1-psi", func { - if (systems.PNEU.Psi.engine1.getValue() <= 22) { + if (systems.PNEU.Psi.engine1.getValue() < 24.5) { if (getprop("/engines/engine[0]/state") == 1 or getprop("/engines/engine[0]/state") == 2) { - print("kappa"); setprop("/controls/engines/engine[0]/starter", 0); setprop("/controls/engines/engine[0]/cutoff", 1); setprop("/systems/pneumatics/valves/starter-valve-1", 0); @@ -368,9 +367,8 @@ setlistener("/systems/pneumatics/psi/engine-1-psi", func { }, 0, 0); setlistener("/systems/pneumatics/psi/engine-2-psi", func { - if (systems.PNEU.Psi.engine2.getValue() <= 22) { + if (systems.PNEU.Psi.engine2.getValue() < 24.5) { if (getprop("/engines/engine[1]/state") == 1 or getprop("/engines/engine[1]/state") == 2) { - print("kappa yay"); setprop("/controls/engines/engine[1]/starter", 0); setprop("/controls/engines/engine[1]/cutoff", 1); setprop("/systems/pneumatics/valves/starter-valve-2", 0); diff --git a/Nasal/Systems/FADEC/engines-iae.nas b/Nasal/Systems/FADEC/engines-iae.nas index 28d476d2..81f4dc31 100644 --- a/Nasal/Systems/FADEC/engines-iae.nas +++ b/Nasal/Systems/FADEC/engines-iae.nas @@ -98,7 +98,7 @@ var start_one_mancheck = func { } var start_one_mancheck_b = func { - if (systems.PNEU.Psi.engine1.getValue() >= 28) { + if (systems.PNEU.Psi.engine1.getValue() >= 25) { setprop("/engines/engine[0]/state", 1); setprop("/controls/engines/engine[0]/starter", 1); } @@ -181,7 +181,7 @@ var start_two_mancheck = func { } var start_two_mancheck_b = func { - if (systems.PNEU.Psi.engine1.getValue() >= 28) { + if (systems.PNEU.Psi.engine1.getValue() >= 25) { setprop("/engines/engine[1]/state", 1); setprop("/controls/engines/engine[1]/starter", 1); } @@ -195,7 +195,7 @@ var start_two_check = func { } var start_two_check_b = func { - if (getprop("/controls/engines/engine-start-switch") == 2 and systems.PNEU.Psi.engine2.getValue() >= 28 and !getprop("/controls/engines/engine[1]/cutoff-switch")) { { + if (getprop("/controls/engines/engine-start-switch") == 2 and systems.PNEU.Psi.engine2.getValue() >= 25 and !getprop("/controls/engines/engine[1]/cutoff-switch")) { { auto_start_two(); } } @@ -355,7 +355,7 @@ setlistener("/controls/engines/engine-start-switch", func { }); setlistener("/systems/pneumatics/psi/engine-1-psi", func { - if (systems.PNEU.Psi.engine1.getValue() <= 22) { + if (systems.PNEU.Psi.engine1.getValue() < 24.5) { if (getprop("/engines/engine[0]/state") == 1 or getprop("/engines/engine[0]/state") == 2) { setprop("/controls/engines/engine[0]/starter", 0); setprop("/controls/engines/engine[0]/cutoff", 1); @@ -367,7 +367,7 @@ setlistener("/systems/pneumatics/psi/engine-1-psi", func { }, 0, 0); setlistener("/systems/pneumatics/psi/engine-2-psi", func { - if (systems.PNEU.Psi.engine2.getValue() <= 22) { + if (systems.PNEU.Psi.engine2.getValue() < 24.5) { if (getprop("/engines/engine[1]/state") == 1 or getprop("/engines/engine[1]/state") == 2) { setprop("/controls/engines/engine[1]/starter", 0); setprop("/controls/engines/engine[1]/cutoff", 1);