1
0
Fork 0

Fixes to bleed page, also crossbleed (thanks pinto!)

This commit is contained in:
legoboyvdlp R 2020-06-16 18:51:43 +01:00
parent 76dfdcc997
commit 14993d2c04
3 changed files with 62 additions and 56 deletions

View file

@ -727,7 +727,7 @@ var canvas_lowerECAM_bleed = {
return m; return m;
}, },
getKeys: func() { 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-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-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", "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()) { if (apu_master.getValue()) {
me["BLEED-APU-LINES"].show(); me["BLEED-APU-LINES"].show();
if (apu_valve_state2 == 1) { if (apu_valve_state2 == 1) {
me["BLEED-APU"].setRotation(0); me["BLEED-APU-CIRCLE"].setRotation(0);
me["BLEED-APU-connectionTop"].show(); me["BLEED-APU-connectionTop"].show();
me["BLEED-xbleedLeft"].show(); me["BLEED-xbleedLeft"].show();
} else { } else {
me["BLEED-APU"].setRotation(90 * D2R); me["BLEED-APU-CIRCLE"].setRotation(90 * D2R);
me["BLEED-APU-connectionTop"].hide(); me["BLEED-APU-connectionTop"].hide();
if (xbleed.getValue() != 1) { if (xbleed.getValue() != 1) {
me["BLEED-xbleedLeft"].hide(); me["BLEED-xbleedLeft"].hide();
@ -831,9 +831,9 @@ var canvas_lowerECAM_bleed = {
} }
} }
if (apuBleedNotOn.getValue() != 1) { 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 { } else {
me["BLEED-APU"].setColor(0.7333,0.3803,0); me["BLEED-APU-CIRCLE"].setColor(0.7333,0.3803,0);
} }
} else { } else {
if (xbleed.getValue() != 1) { if (xbleed.getValue() != 1) {

View file

@ -42,7 +42,7 @@
id="namedview371" id="namedview371"
showgrid="true" showgrid="true"
inkscape:zoom="0.73868665" inkscape:zoom="0.73868665"
inkscape:cx="492.21406" inkscape:cx="272.22904"
inkscape:cy="280.96379" inkscape:cy="280.96379"
inkscape:window-x="-8" inkscape:window-x="-8"
inkscape:window-y="-8" inkscape:window-y="-8"
@ -299,21 +299,25 @@
<g <g
id="BLEED-APU-LINES" id="BLEED-APU-LINES"
inkscape:label="#g1035"> inkscape:label="#g1035">
<g
id="BLEED-APU-CIRCLE"
inkscape:label="#g1015">
<path <path
style="fill:none;fill-opacity:1;stroke:#0dc04b;stroke-width:4.80000019;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" transform="rotate(-90,880.67777,539.21767)"
d="m 872.14551,172.28989 c 0,15.58192 -12.63164,28.21356 -28.21356,28.21356 -15.58192,0 -28.21356,-12.63164 -28.21356,-28.21356 0,-15.58192 12.63164,-28.21356 28.21356,-28.21356 15.58192,0 28.21356,12.63164 28.21356,28.21356 z"
id="path5107-1-44-0"
inkscape:connector-curvature="0"
sodipodi:nodetypes="zzzzz" sodipodi:nodetypes="zzzzz"
transform="rotate(-90,880.67777,539.21767)" /> inkscape:connector-curvature="0"
id="path5107-1-44-0"
d="m 872.14551,172.28989 c 0,15.58192 -12.63164,28.21356 -28.21356,28.21356 -15.58192,0 -28.21356,-12.63164 -28.21356,-28.21356 0,-15.58192 12.63164,-28.21356 28.21356,-28.21356 15.58192,0 28.21356,12.63164 28.21356,28.21356 z"
style="fill:none;fill-opacity:1;stroke:#0dc04b;stroke-width:4.80000019;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<rect <rect
style="fill:#0dc04b;fill-opacity:1;stroke:none;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" transform="rotate(-90,880.67777,539.21767)"
id="rect5105-2-5-3-6"
width="53.195583"
height="5.1203089"
x="817.61298"
y="169.28328" y="169.28328"
transform="rotate(-90,880.67777,539.21767)" /> x="817.61298"
height="5.1203089"
width="53.195583"
id="rect5105-2-5-3-6"
style="fill:#0dc04b;fill-opacity:1;stroke:none;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
</g>
<rect <rect
y="602.28253" y="602.28253"
x="510.74338" x="510.74338"

Before

Width:  |  Height:  |  Size: 73 KiB

After

Width:  |  Height:  |  Size: 73 KiB

View file

@ -247,7 +247,7 @@
<test logic="OR" value="0"> <test logic="OR" value="0">
/controls/engines/engine[0]/fire-btn eq 1 /controls/engines/engine[0]/fire-btn eq 1
/controls/pneumatics/switches/bleed-1 eq 0 /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/valves/starter-valve-1 ne 0
/systems/pneumatics/psi/engine-1-upstream-src lt 8 /systems/pneumatics/psi/engine-1-upstream-src lt 8
/systems/pneumatics/valves/engine-1-prv-valve-autoclose-cmd eq 1 /systems/pneumatics/valves/engine-1-prv-valve-autoclose-cmd eq 1
@ -328,7 +328,7 @@
/controls/engines/engine[1]/fire-btn eq 1 /controls/engines/engine[1]/fire-btn eq 1
/controls/pneumatics/switches/bleed-2 eq 0 /controls/pneumatics/switches/bleed-2 eq 0
<test logic="AND"> <test logic="AND">
/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/crossbleed-valve ne 0
</test> </test>
/systems/pneumatics/valves/starter-valve-2 ne 0 /systems/pneumatics/valves/starter-valve-2 ne 0
@ -835,7 +835,7 @@
<default value="/systems/pneumatics/psi/engine-left-src"/> <default value="/systems/pneumatics/psi/engine-left-src"/>
<test logic="AND" value="1"> <!-- apu --> <test logic="AND" value="1"> <!-- apu -->
/systems/pneumatics/source/apu-psi ne 0 /systems/pneumatics/source/apu-psi ne 0
/systems/pneumatics/valves/apu-bleed-valve eq 1 /systems/pneumatics/valves/apu-bleed-valve ge 0.5
</test> </test>
<test logic="AND" value="2"> <!-- left engine --> <test logic="AND" value="2"> <!-- left engine -->
<test logic="OR"> <test logic="OR">
@ -863,7 +863,7 @@
<default value="/systems/pneumatics/psi/engine-right-src"/> <default value="/systems/pneumatics/psi/engine-right-src"/>
<test logic="AND" value="1"> <!-- apu --> <test logic="AND" value="1"> <!-- apu -->
/systems/pneumatics/source/apu-psi ne 0 /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 /systems/pneumatics/valves/crossbleed-valve ne 0
</test> </test>
<test logic="AND" value="2"> <!-- right engine --> <test logic="AND" value="2"> <!-- right engine -->
@ -889,37 +889,39 @@
</test> </test>
</switch> </switch>
<switch name="/systems/pneumatics/psi/engine-1-psi"> <fcs_function name="/systems/pneumatics/psi/engine-1-psi">
<default value="0"/> <function>
<test value="/systems/pneumatics/source/apu-psi"> <switch>
/systems/pneumatics/psi/engine-left-src eq 1 <p>/systems/pneumatics/psi/engine-left-src</p>
</test> <v>0</v>
<test value="/systems/pneumatics/psi/engine-1-downstream-opv"> <product>
/systems/pneumatics/psi/engine-left-src eq 2 <property>/systems/pneumatics/valves/apu-bleed-valve</property>
</test> <property>/systems/pneumatics/source/apu-psi</property>
<test value="/systems/pneumatics/psi/engine-2-psi"> </product>
/systems/pneumatics/psi/engine-left-src eq 3 <property>/systems/pneumatics/psi/engine-1-downstream-opv</property>
</test> <property>/systems/pneumatics/psi/engine-2-psi</property>
<test value="/systems/pneumatics/source/gnd-psi"> <property>/systems/pneumatics/source/gnd-psi</property>
/systems/pneumatics/psi/engine-left-src eq 4
</test>
</switch> </switch>
</function>
</fcs_function>
<switch name="/systems/pneumatics/psi/engine-2-psi"> <fcs_function name="/systems/pneumatics/psi/engine-2-psi">
<default value="0"/> <function>
<test value="/systems/pneumatics/source/apu-psi"> <switch>
/systems/pneumatics/psi/engine-right-src eq 1 <p>/systems/pneumatics/psi/engine-right-src</p>
</test> <v>0</v>
<test value="/systems/pneumatics/psi/engine-2-downstream-opv"> <product>
/systems/pneumatics/psi/engine-right-src eq 2 <property>/systems/pneumatics/valves/apu-bleed-valve</property>
</test> <property>/systems/pneumatics/valves/crossbleed-valve</property>
<test value="/systems/pneumatics/psi/engine-1-psi"> <property>/systems/pneumatics/source/apu-psi</property>
/systems/pneumatics/psi/engine-right-src eq 3 </product>
</test> <property>/systems/pneumatics/psi/engine-2-downstream-opv</property>
<test value="/systems/pneumatics/source/gnd-psi"> <property>/systems/pneumatics/psi/engine-1-psi</property>
/systems/pneumatics/psi/engine-right-src eq 4 <property>/systems/pneumatics/source/gnd-psi</property>
</test>
</switch> </switch>
</function>
</fcs_function>
</channel> </channel>
<channel name="Precooler Left" execute="/systems/pneumatics/indicating/bmc1-working"> <!-- These values come from BMC, so makes sense to not have them when BMC lacks power --> <channel name="Precooler Left" execute="/systems/pneumatics/indicating/bmc1-working"> <!-- These values come from BMC, so makes sense to not have them when BMC lacks power -->
@ -1169,7 +1171,7 @@
<switch name="/systems/pneumatics/warnings/apu-bleed-not-on-cmd"> <switch name="/systems/pneumatics/warnings/apu-bleed-not-on-cmd">
<default value="0"/> <default value="0"/>
<test logic="AND" value="1"> <test logic="AND" value="1">
/systems/pneumatics/valves/apu-bleed-valve eq 0 /systems/pneumatics/valves/apu-bleed-valve ne 1
/controls/apu/master eq 1 /controls/apu/master eq 1
/controls/pneumatics/switches/apu eq 1 /controls/pneumatics/switches/apu eq 1
</test> </test>