1
0
Fork 0

Crossbleed on LOWER ECAM

This commit is contained in:
legoboyvdlp R 2020-05-10 16:05:57 +01:00
parent bb897df526
commit 7f5c407ce0
2 changed files with 46 additions and 36 deletions

View file

@ -83,8 +83,9 @@ var switch_bleedapu = props.globals.getNode("/controls/pneumatic/switches/apu",
var apuBleedNotOn = props.globals.getNode("/systems/pneumatics/warnings/apu-bleed-not-on", 1);
var apu_valve = props.globals.getNode("/systems/pneumatics/valves/apu-bleed-valve-cmd", 1);
var apu_valve_state = props.globals.getNode("/systems/pneumatics/valves/apu-bleed-valve", 1);
var pneumatic_xbleed_state = props.globals.getNode("/systems/pneumatics/xbleed-state", 1);
var xbleedcmd = props.globals.getNode("/systems/pneumatics/valves/crossbleed-valve-cmd", 1);
var xbleed = props.globals.getNode("/systems/pneumatics/valves/crossbleed-valve", 1);
var xbleedstate = nil;
var hp_valve1_state = props.globals.getNode("/systems/pneumatics/valves/engine-1-hp-valve", 1);
var hp_valve2_state = props.globals.getNode("/systems/pneumatics/valves/engine-2-hp-valve", 1);
var hp_valve1 = props.globals.getNode("/systems/pneumatics/valves/engine-1-hp-valve-cmd", 1);
@ -739,7 +740,7 @@ var canvas_lowerECAM_bleed = {
},
getKeys: func() {
return ["TAT","SAT","GW","UTCh","UTCm","GW-weight-unit", "BLEED-XFEED", "BLEED-Ram-Air", "BLEED-APU", "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-ENG-1", "BLEED-HP-Valve-2", "BLEED-ENG-2", "BLEED-Precooler-1-Inlet-Press", "BLEED-Precooler-1-Outlet-Temp","BLEED-XFEEDLines",
"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-Pack-1-Comp-Out-Temp", "BLEED-Pack-1-Packflow-needel", "BLEED-Pack-1-Bypass-needel", "BLEED-Pack-2-Out-Temp",
@ -748,26 +749,27 @@ var canvas_lowerECAM_bleed = {
},
update: func() {
# X BLEED
if (pneumatic_xbleed_state.getValue() == "transit") {
xbleedstate = xbleed.getValue();
if (xbleedcmd.getBoolValue() != xbleedstate) {
me["BLEED-XFEED"].setColor(0.7333,0.3803,0);
me["BLEED-XFEED"].setRotation(45 * D2R);
} else {
if (pneumatic_xbleed_state.getValue() == "open") {
var xbleed_state = 1;
} else {
var xbleed_state = 0;
me["BLEED-XFEED"].setColor(0.0509,0.7529,0.2941);
}
if (xbleed_state == 1) {
if (xbleedcmd.getBoolValue() == xbleedstate) {
if (xbleedcmd.getBoolValue()) {
me["BLEED-XFEED"].setRotation(0);
} else {
me["BLEED-XFEED"].setRotation(90 * D2R);
}
if (xbleed_state == xbleed.getValue()) {
me["BLEED-XFEED"].setColor(0.0509,0.7529,0.2941);
} else {
me["BLEED-XFEED"].setColor(0.7333,0.3803,0);
me["BLEED-XFEED"].setRotation(45 * D2R);
}
if (xbleedstate != 0) {
me["BLEED-XFEEDLines"].show();
} else {
me["BLEED-XFEEDLines"].hide();
}
# HP valve 1
@ -778,6 +780,7 @@ var canvas_lowerECAM_bleed = {
} else {
me["BLEED-HP-Valve-1"].setRotation(0);
}
if (hp_valve_state == hp_valve1.getValue()) {
me["BLEED-HP-Valve-1"].setColor(0.0509,0.7529,0.2941);
} else {
@ -792,6 +795,7 @@ var canvas_lowerECAM_bleed = {
} else {
me["BLEED-HP-Valve-2"].setRotation(0);
}
if (hp_valve_state == hp_valve2.getValue()) {
me["BLEED-HP-Valve-2"].setColor(0.0509,0.7529,0.2941);
} else {
@ -806,6 +810,7 @@ var canvas_lowerECAM_bleed = {
} else {
me["BLEED-ENG-1"].setRotation(0);
}
if (eng_valve_state == eng_valve1.getValue()) {
me["BLEED-ENG-1"].setColor(0.0509,0.7529,0.2941);
} else {
@ -839,6 +844,7 @@ var canvas_lowerECAM_bleed = {
} else {
me["BLEED-ENG-2"].setRotation(0);
}
if (eng_valve_state == eng_valve2.getValue()) {
me["BLEED-ENG-2"].setColor(0.0509,0.7529,0.2941);
} else {

View file

@ -12,7 +12,7 @@
viewBox="0 0 1024 1024"
version="1.1"
id="svg2"
inkscape:version="0.92.2 (5c3e80d, 2017-08-06)"
inkscape:version="0.92.4 (5da689c313, 2019-01-14)"
sodipodi:docname="bleed.svg">
<metadata
id="metadata375">
@ -41,9 +41,9 @@
inkscape:window-height="705"
id="namedview371"
showgrid="false"
inkscape:zoom="1.4773733"
inkscape:cx="843.6625"
inkscape:cy="621.84897"
inkscape:zoom="0.73868665"
inkscape:cx="546.41121"
inkscape:cy="680.16775"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1"
@ -70,14 +70,6 @@
id="rect5105-2"
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
style="fill:#0dc04b;fill-opacity:1;stroke:none;stroke-width:4.09363317;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="rect5105-5"
width="5.3955846"
height="367.33694"
x="463.6044"
y="-581.08691"
transform="rotate(90)" />
<text
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:32.18700027px;line-height:0%;font-family:'Liberation Sans';-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#179ab7;fill-opacity:1;stroke:none;stroke-width:2.68228626px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;"
@ -359,14 +351,26 @@
d="m 394.46275,504.39542 h 29.17835 v 0 L 409.59225,480.539 v 0 z"
style="fill:none;stroke:#cecdce;stroke-width:2.87359571;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
</g>
<g
id="BLEED-XFEEDLines"
inkscape:label="#g1014">
<rect
style="fill:#0dc04b;fill-opacity:1;stroke:none;stroke-width:2.66503072;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="rect5105-5-7"
width="4.7754087"
height="175.90536"
x="464.18976"
transform="rotate(90)"
y="-581.08691"
x="463.6044"
height="367.33694"
width="5.3955846"
id="rect5105-5"
style="fill:#0dc04b;fill-opacity:1;stroke:none;stroke-width:4.09363317;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<rect
transform="rotate(90)"
y="-813.75"
transform="rotate(90)" />
x="464.18976"
height="175.90536"
width="4.7754087"
id="rect5105-5-7"
style="fill:#0dc04b;fill-opacity:1;stroke:none;stroke-width:2.66503072;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
</g>
<g
id="BLEED-Pack-1-Flow-Valve"
inkscape:label="#g3445"

Before

Width:  |  Height:  |  Size: 73 KiB

After

Width:  |  Height:  |  Size: 73 KiB