1
0
Fork 0

Bugfix, restore A320 center fuel pumps

This commit is contained in:
legoboyvdlp R 2019-11-08 17:16:55 +00:00
parent 6da2a26147
commit 6d1ddcbd4b
2 changed files with 8 additions and 8 deletions

View file

@ -2268,7 +2268,7 @@ var canvas_lowerECAM_fuel = {
# TODO use the valve prop and add amber if difference between eng master and valve
# TODO add transition state
# TODO fix amber/green at the same time when closed
if (systems.FUEL.Valves.lpValve1.getValue() == 0) {
if (systems.FUEL.Valves.lpValve1.getValue() == 1) {
me["FUEL-ENG-Master-1"].setRotation(0);
me["FUEL-ENG-Master-1"].setColor(0.0509,0.7529,0.2941);
me["FUEL-ENG-1-pipe"].setColor(0.0509,0.7529,0.2941);
@ -2281,7 +2281,7 @@ var canvas_lowerECAM_fuel = {
# TODO use the valve prop and add amber if difference between eng master and valve
# TODO add transition state
# TODO fix amber/green at the same time when closed
if (systems.FUEL.Valves.lpValve2.getValue() == 0) {
if (systems.FUEL.Valves.lpValve2.getValue() == 1) {
me["FUEL-ENG-Master-2"].setRotation(0);
me["FUEL-ENG-Master-2"].setColor(0.0509,0.7529,0.2941);
me["FUEL-ENG-2-pipe"].setColor(0.0509,0.7529,0.2941);

View file

@ -427,7 +427,7 @@
</test>
</switch>
<switch name="/systems/fuel/internal/center-tank-left">
<switch name="/systems/fuel/internal/center-tank-eng-1">
<default value="0"/>
<test logic="AND" value="9">
<test logic="OR">
@ -470,7 +470,7 @@
</test>
</switch>
<switch name="/systems/fuel/internal/center-tank-right">
<switch name="/systems/fuel/internal/center-tank-eng-2">
<default value="0"/>
<test logic="AND" value="9">
<test logic="OR">
@ -521,21 +521,19 @@
<summer name="/systems/fuel/internal/left-inner-flow-rate">
<input>/systems/fuel/internal/left-wing-outer-to-inner-tank</input>
<input>/systems/fuel/internal/center-tank-left</input>
<input>-/systems/fuel/internal/left-wing-tank-eng-1</input>
<input>-/systems/fuel/internal/left-wing-tank-eng-2</input>
<output>propulsion/tank[1]/external-flow-rate-pps</output>
</summer>
<summer name="/systems/fuel/internal/center-flow-rate">
<input>-/systems/fuel/internal/center-tank-eng-1</input>
<input>-/systems/fuel/internal/center-tank-eng-2</input>
<input>-/systems/fuel/internal/center-tank-left</input>
<input>-/systems/fuel/internal/center-tank-right</input>
<output>propulsion/tank[2]/external-flow-rate-pps</output>
</summer>
<summer name="/systems/fuel/internal/right-inner-flow-rate">
<input>/systems/fuel/internal/right-wing-outer-to-inner-tank</input>
<input>/systems/fuel/internal/center-tank-right</input>
<input>-/systems/fuel/internal/right-wing-tank-eng-1</input>
<input>-/systems/fuel/internal/right-wing-tank-eng-2</input>
<output>propulsion/tank[3]/external-flow-rate-pps</output>
@ -549,12 +547,14 @@
<summer name="/systems/fuel/internal/eng-1-flow-rate">
<input>/systems/fuel/internal/left-wing-tank-eng-1</input>
<input>/systems/fuel/internal/right-wing-tank-eng-1</input>
<input>/systems/fuel/internal/center-tank-eng-2</input>
<output>propulsion/tank[5]/external-flow-rate-pps</output>
</summer>
<summer name="/systems/fuel/internal/eng-2-flow-rate">
<input>/systems/fuel/internal/left-wing-tank-eng-2</input>
<input>/systems/fuel/internal/right-wing-tank-eng-2</input>
<input>/systems/fuel/internal/center-tank-eng-2</input>
<output>propulsion/tank[6]/external-flow-rate-pps</output>
</summer>
</channel>