diff --git a/Models/Instruments/Lower-ECAM/Lower-ECAM.nas b/Models/Instruments/Lower-ECAM/Lower-ECAM.nas index bbc98dcb..b6ea780f 100644 --- a/Models/Instruments/Lower-ECAM/Lower-ECAM.nas +++ b/Models/Instruments/Lower-ECAM/Lower-ECAM.nas @@ -2294,7 +2294,7 @@ var canvas_lowerECAM_fuel = { getKeys: func() { return["TAT","SAT","GW","UTCh","UTCm","GW-weight-unit","FUEL-Pump-Left-1","FUEL-Pump-Left-2","FUEL-Pump-Center-1","FUEL-Pump-Center-2","FUEL-Pump-Right-1","FUEL-Pump-Right-2","FUEL-Left-blocked","FUEL-Right-blocked","FUEL-Center-blocked","FUEL-Left-Transfer", "FUEL-Right-Transfer","FUEL-Left-Outer-Inacc","FUEL-Left-Inner-Inacc","FUEL-Center-Inacc","FUEL-Right-Inner-Inacc","FUEL-Right-Outer-Inacc","FUEL-Left-Outer-quantity","FUEL-Left-Inner-quantity","FUEL-Center-quantity","FUEL-Right-Inner-quantity", - "FUEL-Right-Outer-quantity","FUEL-On-Board","FUEL-Flow-per-min","FUEL-APU-arrow","FUEL-APU-label","FUEL-used-1","FUEL-used-both","FUEL-used-2","FUEL-ENG-Master-1","FUEL-ENG-Master-2","FUEL-XFEED","FUEL-XFEED-pipes","FUEL-Left-Outer-temp", + "FUEL-Right-Outer-quantity","FUEL-On-Board","FUEL-Flow-per-min","FUEL-APU-arrow","FUEL-APU-line","FUEL-APU-label","FUEL-used-1","FUEL-used-both","FUEL-used-2","FUEL-ENG-Master-1","FUEL-ENG-Master-2","FUEL-XFEED","FUEL-XFEED-pipes","FUEL-Left-Outer-temp", "FUEL-Left-Inner-temp","FUEL-Right-Inner-temp","FUEL-Right-Outer-temp","FUEL-Pump-Left-1-Closed","FUEL-Pump-Left-1-Open","FUEL-Pump-Left-2-Closed","FUEL-Pump-Left-2-Open","FUEL-Pump-Center-1-Open","FUEL-Pump-Center-1-Closed","FUEL-Pump-Center-2-Closed", "FUEL-Pump-Center-2-Open","FUEL-Pump-Right-1-Closed","FUEL-Pump-Right-1-Open","FUEL-Pump-Right-2-Closed","FUEL-Pump-Right-2-Open","FUEL-ENG-1-label","FUEL-ENG-2-label","FUEL-ENG-1-pipe","FUEL-ENG-2-pipe","ENG1idFFlow","ENG2idFFlow","FUEL-used-1","FUEL-used-2","FUEL-used-both", "Fused-weight-unit","FFlow-weight-unit","FOB-weight-unit"]; @@ -2528,6 +2528,30 @@ var canvas_lowerECAM_fuel = { } else { me["FUEL-Center-blocked"].hide(); } + + # APU + if (systems.FUEL.Valves.apu.getValue() == 1 and systems.APUNodes.Controls.master.getValue() and !systems.APUNodes.Controls.fire.getValue()) { + me["FUEL-APU-label"].setColor(0.8078, 0.8039, 0.8078); + me["FUEL-APU-line"].setColor(0.0509,0.7529,0.2941); + me["FUEL-APU-arrow"].setColor(0.0509,0.7529,0.2941); + me["FUEL-APU-line"].show(); + me["FUEL-APU-arrow"].show(); + } elsif (systems.FUEL.Valves.apu.getValue() == 1 and (!systems.APUNodes.Controls.master.getValue() or systems.APUNodes.Controls.fire.getValue())) { + me["FUEL-APU-label"].setColor(0.7333,0.3803,0); + me["FUEL-APU-line"].setColor(0.7333,0.3803,0); + me["FUEL-APU-arrow"].setColor(0.7333,0.3803,0); + me["FUEL-APU-line"].show(); + me["FUEL-APU-arrow"].show(); + } elsif (systems.FUEL.Valves.apu.getValue() != 1 and (systems.APUNodes.Controls.master.getValue() or systems.APUNodes.Controls.fire.getValue())) { + me["FUEL-APU-label"].setColor(0.7333,0.3803,0); + me["FUEL-APU-line"].hide(); + me["FUEL-APU-arrow"].hide(); + } else { + me["FUEL-APU-label"].setColor(0.8078, 0.8039, 0.8078); + me["FUEL-APU-arrow"].setColor(0.8078, 0.8039, 0.8078); + me["FUEL-APU-line"].hide(); + me["FUEL-APU-arrow"].show(); + } # Hide not yet implemented features # TODO add them diff --git a/Models/Instruments/Lower-ECAM/res/fuel.svg b/Models/Instruments/Lower-ECAM/res/fuel.svg index 0fbd5e5c..dd274305 100644 --- a/Models/Instruments/Lower-ECAM/res/fuel.svg +++ b/Models/Instruments/Lower-ECAM/res/fuel.svg @@ -961,25 +961,21 @@ style="fill:#0dc04b;fill-opacity:1;stroke:none;stroke-width:1.45647562;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" inkscape:label="#rect5105-6-0-7-8-6-8-8-6-6-6-4-6-7-5-6-9-8" /> - - - - + + = 4) { + me.fuelValveCmd.setValue(0); me.autoStop(); } }, diff --git a/Nasal/Systems/fuel.nas b/Nasal/Systems/fuel.nas index 05405edd..e2a1364c 100644 --- a/Nasal/Systems/fuel.nas +++ b/Nasal/Systems/fuel.nas @@ -27,6 +27,7 @@ var FUEL = { allOff: props.globals.getNode("systems/fuel/pumps/all-eng-pump-off"), }, Valves: { + apu: props.globals.getNode("systems/fuel/valves/apu-lp-valve"), crossfeed: props.globals.getNode("systems/fuel/valves/crossfeed-valve"), lpValve1: props.globals.getNode("systems/fuel/valves/engine-1-lp-valve"), lpValve2: props.globals.getNode("systems/fuel/valves/engine-2-lp-valve"),