From c0517ded0899a29dfab59f16941d558929fb527d Mon Sep 17 00:00:00 2001 From: legoboyvdlp R Date: Fri, 15 May 2020 12:36:11 +0100 Subject: [PATCH] Pack flow sound; fix bug in ECAM BLEED 2 NOT CLOSED (is buggy ,need to fix; fix pack 2 logic --- A320-main.xml | 4 ++-- Nasal/ECAM/ECAM-logic.nas | 2 +- Sounds/A320-common-sound.xml | 1 + Systems/a320-aircond.xml | 2 ++ Systems/sound-common.xml | 4 ++-- 5 files changed, 8 insertions(+), 5 deletions(-) diff --git a/A320-main.xml b/A320-main.xml index 06c57453..a0300c35 100644 --- a/A320-main.xml +++ b/A320-main.xml @@ -839,8 +839,8 @@ 0 - 0 - 0 + 1 + 1 0 0 0 diff --git a/Nasal/ECAM/ECAM-logic.nas b/Nasal/ECAM/ECAM-logic.nas index 2aac71fa..763e4448 100644 --- a/Nasal/ECAM/ECAM-logic.nas +++ b/Nasal/ECAM/ECAM-logic.nas @@ -1540,7 +1540,7 @@ var messages_priority_2 = func { ECAM_controller.warningReset(eng1BleedNotClsdOff); } - if (eng2BleedNotClsd.clearFlag == 0 and (phaseVar <= 2 or phaseVar >= 9 or phaseVar == 6) and warningNodes.Timers.bleed2NotShutOutput.getValue == 1) { + if (eng2BleedNotClsd.clearFlag == 0 and (phaseVar <= 2 or phaseVar >= 9 or phaseVar == 6) and warningNodes.Timers.bleed2NotShutOutput.getValue() == 1) { eng2BleedNotClsd.active = 1; if (systems.PNEU.Switch.bleed2.getBoolValue()) { eng2BleedNotClsdOff.active = 1; diff --git a/Sounds/A320-common-sound.xml b/Sounds/A320-common-sound.xml index fde97a94..d315e16a 100644 --- a/Sounds/A320-common-sound.xml +++ b/Sounds/A320-common-sound.xml @@ -1064,6 +1064,7 @@ /sim/sound/other/air-con + 6 diff --git a/Systems/a320-aircond.xml b/Systems/a320-aircond.xml index 5d011749..4f504916 100644 --- a/Systems/a320-aircond.xml +++ b/Systems/a320-aircond.xml @@ -71,6 +71,8 @@ /gear/gear[1]/wow eq 0 + /systems/pressurization/ditchingpb eq 1 + /systems/pneumatics/psi/engine-2-psi le 13.8 /controls/pneumatics/switches/pack-2 eq 1 diff --git a/Systems/sound-common.xml b/Systems/sound-common.xml index db7ff037..2f8985b0 100644 --- a/Systems/sound-common.xml +++ b/Systems/sound-common.xml @@ -203,12 +203,12 @@ gain - 0.025 + 1 /sim/sound/internal-custom - /systems/pneumatic/pack-psi + /systems/air-conditioning/mass-flow-cockpit-kg_s 0 /sim/sound/other/air-con