From 14993d2c04bcefc87c06101e4df0718c089964bb Mon Sep 17 00:00:00 2001 From: legoboyvdlp R Date: Tue, 16 Jun 2020 18:51:43 +0100 Subject: [PATCH] Fixes to bleed page, also crossbleed (thanks pinto!) --- Models/Instruments/Lower-ECAM/Lower-ECAM.nas | 10 +-- Models/Instruments/Lower-ECAM/res/bleed.svg | 36 +++++----- Systems/a320-pneumatic.xml | 72 ++++++++++---------- 3 files changed, 62 insertions(+), 56 deletions(-) diff --git a/Models/Instruments/Lower-ECAM/Lower-ECAM.nas b/Models/Instruments/Lower-ECAM/Lower-ECAM.nas index 51e400a0..d2670eaa 100644 --- a/Models/Instruments/Lower-ECAM/Lower-ECAM.nas +++ b/Models/Instruments/Lower-ECAM/Lower-ECAM.nas @@ -727,7 +727,7 @@ var canvas_lowerECAM_bleed = { return m; }, getKeys: func() { - return ["TAT","SAT","GW","UTCh","UTCm","GW-weight-unit", "BLEED-XFEED", "BLEED-Ram-Air", "BLEED-APU", "BLEED-HP-Valve-1", + return ["TAT","SAT","GW","UTCh","UTCm","GW-weight-unit", "BLEED-XFEED", "BLEED-Ram-Air", "BLEED-APU-CIRCLE", "BLEED-HP-Valve-1", "BLEED-APU-LINES","BLEED-ENG-1", "BLEED-HP-Valve-2", "BLEED-ENG-2", "BLEED-Precooler-1-Inlet-Press", "BLEED-Precooler-1-Outlet-Temp", "BLEED-Precooler-2-Inlet-Press", "BLEED-Precooler-2-Outlet-Temp", "BLEED-ENG-1-label", "BLEED-ENG-2-label", "BLEED-GND", "BLEED-Pack-1-Flow-Valve", "BLEED-Pack-2-Flow-Valve", "BLEED-Pack-1-Out-Temp","BLEED-APU-connectionTop", @@ -818,11 +818,11 @@ var canvas_lowerECAM_bleed = { if (apu_master.getValue()) { me["BLEED-APU-LINES"].show(); if (apu_valve_state2 == 1) { - me["BLEED-APU"].setRotation(0); + me["BLEED-APU-CIRCLE"].setRotation(0); me["BLEED-APU-connectionTop"].show(); me["BLEED-xbleedLeft"].show(); } else { - me["BLEED-APU"].setRotation(90 * D2R); + me["BLEED-APU-CIRCLE"].setRotation(90 * D2R); me["BLEED-APU-connectionTop"].hide(); if (xbleed.getValue() != 1) { me["BLEED-xbleedLeft"].hide(); @@ -831,9 +831,9 @@ var canvas_lowerECAM_bleed = { } } if (apuBleedNotOn.getValue() != 1) { - me["BLEED-APU"].setColor(0.0509,0.7529,0.2941); + me["BLEED-APU-CIRCLE"].setColor(0.0509,0.7529,0.2941); } else { - me["BLEED-APU"].setColor(0.7333,0.3803,0); + me["BLEED-APU-CIRCLE"].setColor(0.7333,0.3803,0); } } else { if (xbleed.getValue() != 1) { diff --git a/Models/Instruments/Lower-ECAM/res/bleed.svg b/Models/Instruments/Lower-ECAM/res/bleed.svg index d10fe3f9..e6533a05 100644 --- a/Models/Instruments/Lower-ECAM/res/bleed.svg +++ b/Models/Instruments/Lower-ECAM/res/bleed.svg @@ -42,7 +42,7 @@ id="namedview371" showgrid="true" inkscape:zoom="0.73868665" - inkscape:cx="492.21406" + inkscape:cx="272.22904" inkscape:cy="280.96379" inkscape:window-x="-8" inkscape:window-y="-8" @@ -299,21 +299,25 @@ - - + + + + /controls/engines/engine[0]/fire-btn eq 1 /controls/pneumatics/switches/bleed-1 eq 0 - /systems/pneumatics/valves/apu-bleed-valve ne 0 + /systems/pneumatics/valves/apu-bleed-valve eq 1 /systems/pneumatics/valves/starter-valve-1 ne 0 /systems/pneumatics/psi/engine-1-upstream-src lt 8 /systems/pneumatics/valves/engine-1-prv-valve-autoclose-cmd eq 1 @@ -328,7 +328,7 @@ /controls/engines/engine[1]/fire-btn eq 1 /controls/pneumatics/switches/bleed-2 eq 0 - /systems/pneumatics/valves/apu-bleed-valve ne 0 + /systems/pneumatics/valves/apu-bleed-valve eq 1 /systems/pneumatics/valves/crossbleed-valve ne 0 /systems/pneumatics/valves/starter-valve-2 ne 0 @@ -835,7 +835,7 @@ /systems/pneumatics/source/apu-psi ne 0 - /systems/pneumatics/valves/apu-bleed-valve eq 1 + /systems/pneumatics/valves/apu-bleed-valve ge 0.5 @@ -863,7 +863,7 @@ /systems/pneumatics/source/apu-psi ne 0 - /systems/pneumatics/valves/apu-bleed-valve ne 0 + /systems/pneumatics/valves/apu-bleed-valve ge 0.5 /systems/pneumatics/valves/crossbleed-valve ne 0 @@ -889,37 +889,39 @@ - - - - /systems/pneumatics/psi/engine-left-src eq 1 - - - /systems/pneumatics/psi/engine-left-src eq 2 - - - /systems/pneumatics/psi/engine-left-src eq 3 - - - /systems/pneumatics/psi/engine-left-src eq 4 - - + + + +

/systems/pneumatics/psi/engine-left-src

+ 0 + + /systems/pneumatics/valves/apu-bleed-valve + /systems/pneumatics/source/apu-psi + + /systems/pneumatics/psi/engine-1-downstream-opv + /systems/pneumatics/psi/engine-2-psi + /systems/pneumatics/source/gnd-psi +
+
+
+ + + + +

/systems/pneumatics/psi/engine-right-src

+ 0 + + /systems/pneumatics/valves/apu-bleed-valve + /systems/pneumatics/valves/crossbleed-valve + /systems/pneumatics/source/apu-psi + + /systems/pneumatics/psi/engine-2-downstream-opv + /systems/pneumatics/psi/engine-1-psi + /systems/pneumatics/source/gnd-psi +
+
+
- - - - /systems/pneumatics/psi/engine-right-src eq 1 - - - /systems/pneumatics/psi/engine-right-src eq 2 - - - /systems/pneumatics/psi/engine-right-src eq 3 - - - /systems/pneumatics/psi/engine-right-src eq 4 - - @@ -1169,7 +1171,7 @@ - /systems/pneumatics/valves/apu-bleed-valve eq 0 + /systems/pneumatics/valves/apu-bleed-valve ne 1 /controls/apu/master eq 1 /controls/pneumatics/switches/apu eq 1