1
0
Fork 0
This commit is contained in:
legoboyvdlp R 2021-07-17 20:52:52 +01:00
parent fd46e987a5
commit 677a57510d
3 changed files with 361 additions and 307 deletions

View file

@ -1,6 +1,15 @@
# A3XX Lower ECAM Canvas
# Copyright (c) 2021 Josh Davidson (Octal450) and Jonathan Redpath
var elec_pump_y_ovht = props.globals.initNode("/systems/hydraulic/elec-pump-yellow-ovht", 0, "BOOL");
var elec_pump_b_ovht = props.globals.initNode("/systems/hydraulic/elec-pump-blue-ovht", 0, "BOOL");
var y_resv_ovht = props.globals.initNode("/systems/hydraulic/yellow-resv-ovht", 0, "BOOL");
var b_resv_ovht = props.globals.initNode("/systems/hydraulic/blue-resv-ovht", 0, "BOOL");
var g_resv_ovht = props.globals.initNode("/systems/hydraulic/green-resv-ovht", 0, "BOOL");
var y_resv_lo_press = props.globals.initNode("/systems/hydraulic/yellow-resv-lo-air-press", 0, "BOOL");
var b_resv_lo_press = props.globals.initNode("/systems/hydraulic/blue-resv-lo-air-press", 0, "BOOL");
var g_resv_lo_press = props.globals.initNode("/systems/hydraulic/green-resv-lo-air-press", 0, "BOOL");
var canvas_lowerECAMPageHyd =
{
new: func(svg,name) {
@ -23,6 +32,298 @@ var canvas_lowerECAMPageHyd =
# init
obj.update_items = [
props.UpdateManager.FromHashValue("blue", 25, func(val) {
obj["Press-Blue"].setText(sprintf("%s", math.round(val, 50)));
if (val >= 1500) {
obj["Blue-Line"].setColor(0.0509,0.7529,0.2941);
obj["Blue-Line"].setColorFill(0.0509,0.7529,0.2941);
obj["Blue-Line-Top"].setColorFill(0.0509,0.7529,0.2941);
obj["Blue-Line-Bottom"].setColorFill(0.0509,0.7529,0.2941);
obj["Blue-Indicator"].setColor(0.0509,0.7529,0.2941);
obj["Press-Blue"].setColor(0.0509,0.7529,0.2941);
obj["Blue-label"].setColor(0.8078,0.8039,0.8078);
} else {
obj["Blue-Line"].setColor(0.7333,0.3803,0);
obj["Blue-Line"].setColorFill(0.7333,0.3803,0);
obj["Blue-Line-Top"].setColorFill(0.7333,0.3803,0);
obj["Blue-Line-Bottom"].setColorFill(0.7333,0.3803,0);
obj["Blue-Indicator"].setColor(0.7333,0.3803,0);
obj["Press-Blue"].setColor(0.7333,0.3803,0);
obj["Blue-label"].setColor(0.7333,0.3803,0);
}
}),
props.UpdateManager.FromHashValue("yellow", 25, func(val) {
obj["Press-Yellow"].setText(sprintf("%s", math.round(val, 50)));
if (val >= 1500) {
obj["Yellow-Line"].setColor(0.0509,0.7529,0.2941);
obj["Yellow-Line"].setColorFill(0.0509,0.7529,0.2941);
obj["Yellow-Line-Top"].setColorFill(0.0509,0.7529,0.2941);
obj["Yellow-Line-Middle"].setColorFill(0.0509,0.7529,0.2941);
obj["Yellow-Line-Bottom"].setColorFill(0.0509,0.7529,0.2941);
obj["Yellow-Indicator"].setColor(0.0509,0.7529,0.2941);
obj["Press-Yellow"].setColor(0.0509,0.7529,0.2941);
obj["Yellow-label"].setColor(0.8078,0.8039,0.8078);
} else {
obj["Yellow-Line"].setColor(0.7333,0.3803,0);
obj["Yellow-Line"].setColorFill(0.7333,0.3803,0);
obj["Yellow-Line-Top"].setColorFill(0.7333,0.3803,0);
obj["Yellow-Line-Middle"].setColorFill(0.7333,0.3803,0);
obj["Yellow-Line-Bottom"].setColorFill(0.7333,0.3803,0);
obj["Yellow-Indicator"].setColor(0.7333,0.3803,0);
obj["Press-Yellow"].setColor(0.7333,0.3803,0);
obj["Yellow-label"].setColor(0.7333,0.3803,0);
}
}),
props.UpdateManager.FromHashValue("green", 25, func(val) {
obj["Press-Green"].setText(sprintf("%s", math.round(val, 50)));
if (val >= 1500) {
obj["Green-Line"].setColor(0.0509,0.7529,0.2941);
obj["Green-Line"].setColorFill(0.0509,0.7529,0.2941);
obj["Green-Line-Top"].setColorFill(0.0509,0.7529,0.2941);
obj["Green-Line-Middle"].setColorFill(0.0509,0.7529,0.2941);
obj["Green-Line-Bottom"].setColorFill(0.0509,0.7529,0.2941);
obj["Green-Indicator"].setColor(0.0509,0.7529,0.2941);
obj["Press-Green"].setColor(0.0509,0.7529,0.2941);
obj["Green-label"].setColor(0.8078,0.8039,0.8078);
} else {
obj["Green-Line"].setColor(0.7333,0.3803,0);
obj["Green-Line"].setColorFill(0.7333,0.3803,0);
obj["Green-Line-Top"].setColorFill(0.7333,0.3803,0);
obj["Green-Line-Middle"].setColorFill(0.7333,0.3803,0);
obj["Green-Line-Bottom"].setColorFill(0.7333,0.3803,0);
obj["Green-Indicator"].setColor(0.7333,0.3803,0);
obj["Press-Green"].setColor(0.7333,0.3803,0);
obj["Green-label"].setColor(0.7333,0.3803,0);
}
}),
props.UpdateManager.FromHashValue("N2_actual_1", 0.5, func(val) {
if (val >= 59) {
obj["Pump-Green-label"].setColor(0.8078,0.8039,0.8078);
} else {
obj["Pump-Green-label"].setColor(0.7333,0.3803,0);
}
}),
props.UpdateManager.FromHashValue("N2_actual_2", 0.5, func(val) {
if (val >= 59) {
obj["Pump-Yellow-label"].setColor(0.8078,0.8039,0.8078);
} else {
obj["Pump-Yellow-label"].setColor(0.7333,0.3803,0);
}
}),
props.UpdateManager.FromHashValue("hydBlueResvLoPrs", nil, func(val) {
if (val) {
obj["LO-AIR-PRESS-Blue"].show();
} else {
obj["LO-AIR-PRESS-Blue"].hide();
}
}),
props.UpdateManager.FromHashValue("hydGreenResvLoPrs", nil, func(val) {
if (val) {
obj["LO-AIR-PRESS-Green"].show();
} else {
obj["LO-AIR-PRESS-Green"].hide();
}
}),
props.UpdateManager.FromHashValue("hydYellowResvLoPrs", nil, func(val) {
if (val) {
obj["LO-AIR-PRESS-Yellow"].show();
} else {
obj["LO-AIR-PRESS-Yellow"].hide();
}
}),
props.UpdateManager.FromHashValue("hydYellowElecPumpOvht", nil, func(val) {
if (val) {
obj["ELEC-OVHT-Yellow"].show();
} else {
obj["ELEC-OVHT-Yellow"].hide();
}
}),
props.UpdateManager.FromHashValue("hydBlueElecPumpOvht", nil, func(val) {
if (val) {
obj["ELEC-OVHT-Blue"].show();
} else {
obj["ELEC-OVHT-Blue"].hide();
}
}),
props.UpdateManager.FromHashValue("hydBlueResvOvht", nil, func(val) {
if (val) {
obj["OVHT-Blue"].show();
} else {
obj["OVHT-Blue"].hide();
}
}),
props.UpdateManager.FromHashValue("hydGreenResvOvht", nil, func(val) {
if (val) {
obj["OVHT-Green"].show();
} else {
obj["OVHT-Green"].hide();
}
}),
props.UpdateManager.FromHashValue("hydYellowResvOvht", nil, func(val) {
if (val) {
obj["OVHT-Yellow"].show();
} else {
obj["OVHT-Yellow"].hide();
}
}),
props.UpdateManager.FromHashValue("hydRATPosition", 0.01, func(val) {
if (val) {
obj["RAT-stowed"].hide();
obj["RAT-not-stowed"].show();
} else {
obj["RAT-stowed"].show();
obj["RAT-not-stowed"].hide();
}
}),
props.UpdateManager.FromHashValue("hydGreenFireValve", 0.01, func(val) {
if (val != 0) {
obj["Fire-Valve-Green"].setColor(0.7333,0.3803,0);
obj["Fire-Valve-Green-Cross"].setColorFill(0.7333,0.3803,0);
obj["Fire-Valve-Green"].setRotation(90 * D2R);
} else {
obj["Fire-Valve-Green"].setColor(0.0509,0.7529,0.2941);
obj["Fire-Valve-Green-Cross"].setColorFill(0.0509,0.7529,0.2941);
obj["Fire-Valve-Green"].setRotation(0);
}
}),
props.UpdateManager.FromHashValue("hydYellowFireValve", 0.01, func(val) {
if (val != 0) {
obj["Fire-Valve-Yellow"].setColor(0.7333,0.3803,0);
obj["Fire-Valve-Yellow-Cross"].setColorFill(0.7333,0.3803,0);
obj["Fire-Valve-Yellow"].setRotation(90 * D2R);
} else {
obj["Fire-Valve-Yellow"].setColor(0.0509,0.7529,0.2941);
obj["Fire-Valve-Yellow-Cross"].setColorFill(0.0509,0.7529,0.2941);
obj["Fire-Valve-Yellow"].setRotation(0);
}
}),
props.UpdateManager.FromHashValue("elecAC1", 1, func(val) {
if (val >= 110) {
obj["ELEC-Blue-label"].setColor(0.8078,0.8039,0.8078);
} else {
obj["ELEC-Blue-label"].setColor(0.7333,0.3803,0);
}
}),
props.UpdateManager.FromHashValue("elecAC2", 1, func(val) {
if (val >= 110) {
obj["ELEC-Yellow-label"].setColor(0.8078,0.8039,0.8078);
} else {
obj["ELEC-Yellow-label"].setColor(0.7333,0.3803,0);
}
}),
props.UpdateManager.FromHashList(["yellow","hydYellowElecPumpSwitch"], nil, func(val) {
if (!val.hydYellowElecPumpSwitch) {
obj["ELEC-Yellow-on"].hide();
obj["ELEC-Yellow-off"].show();
} else {
obj["ELEC-Yellow-on"].show();
obj["ELEC-Yellow-off"].hide();
if (val.yellow >= 1500) {
obj["ELEC-Yellow-on"].setColor(0.0509,0.7529,0.2941);
} else {
obj["ELEC-Yellow-on"].setColor(0.7333,0.3803,0);
}
}
}),
props.UpdateManager.FromHashList(["blue","hydBlueElecPumpSwitch"], nil, func(val) {
if (val.hydBlueElecPumpSwitch) {
obj["Pump-Blue-off"].hide();
if (val.blue >= 1500) {
obj["Pump-Blue-on"].show();
obj["Pump-Blue-off"].hide();
obj["Pump-Blue"].setColorFill(0.0509,0.7529,0.2941);
obj["Pump-Blue"].setColor(0.0509,0.7529,0.2941);
} else {
obj["Pump-Blue-off"].show();
obj["Pump-Blue-on"].hide();
obj["Pump-Blue"].setColorFill(0.7333,0.3803,0);
obj["Pump-Blue"].setColor(0.7333,0.3803,0);
}
} else {
obj["Pump-Blue-off"].show();
obj["Pump-Blue-on"].hide();
obj["Pump-Blue"].setColorFill(0.7333,0.3803,0);
obj["Pump-Blue"].setColor(0.7333,0.3803,0);
}
}),
props.UpdateManager.FromHashList(["yellow","hydYellowEDPPumpSwitch"], nil, func(val) {
if (val.hydYellowEDPPumpSwitch) {
obj["Pump-Yellow-off"].hide();
if (val.yellow >= 1500) {
obj["Pump-Yellow-on"].show();
obj["Pump-LOPR-Yellow"].hide();
obj["Pump-Yellow"].setColorFill(0.0509,0.7529,0.2941);
obj["Pump-Yellow"].setColor(0.0509,0.7529,0.2941);
} else {
obj["Pump-Yellow-on"].hide();
obj["Pump-LOPR-Yellow"].show();
obj["Pump-Yellow"].setColorFill(0.7333,0.3803,0);
obj["Pump-Yellow"].setColor(0.7333,0.3803,0);
}
} else {
obj["Pump-Yellow-off"].show();
obj["Pump-Yellow-on"].hide();
obj["Pump-LOPR-Yellow"].hide();
obj["Pump-Yellow"].setColorFill(0.7333,0.3803,0);
obj["Pump-Yellow"].setColor(0.7333,0.3803,0);
}
}),
props.UpdateManager.FromHashList(["green","hydGreenEDPPumpSwitch"], nil, func(val) {
if (val.hydGreenEDPPumpSwitch) {
obj["Pump-Green-off"].hide();
if (val.green >= 1500) {
obj["Pump-Green-on"].show();
obj["Pump-LOPR-Green"].hide();
obj["Pump-Green"].setColor(0.0509,0.7529,0.2941);
obj["Pump-Green"].setColorFill(0.0509,0.7529,0.2941);
} else {
obj["Pump-Green-on"].hide();
obj["Pump-LOPR-Green"].show();
obj["Pump-Green"].setColor(0.7333,0.3803,0);
obj["Pump-Green"].setColorFill(0.7333,0.3803,0);
}
} else {
obj["Pump-Green-off"].show();
obj["Pump-Green-on"].hide();
obj["Pump-LOPR-Green"].hide();
obj["Pump-Green"].setColor(0.7333,0.3803,0);
}
}),
props.UpdateManager.FromHashList(["hydPTUSwitch","hydPTUDiff","hydPTUActive","hydPTUFault"], nil, func(val) {
if (val.hydPTUSwitch and !val.hydPTUFault) {
obj["PTU-connection"].setColor(0.0509,0.7529,0.2941);
if (val.hydPTUActive) {
if (val.hydPTUDiff < 0) {
obj["PTU-Supply-Line"].show();
obj["PTU-supply-yellow"].show();
obj["PTU-supply-green"].hide();
obj["PTU-Auto-or-off"].hide();
} else {
obj["PTU-Supply-Line"].show();
obj["PTU-supply-yellow"].hide();
obj["PTU-supply-green"].show();
obj["PTU-Auto-or-off"].hide();
}
} else {
obj["PTU-Auto-or-off"].setColor(0.0509,0.7529,0.2941);
obj["PTU-Supply-Line"].hide();
obj["PTU-supply-yellow"].hide();
obj["PTU-supply-green"].hide();
obj["PTU-Auto-or-off"].show();
}
} else {
obj["PTU-connection"].setColor(0.7333,0.3803,0);
obj["PTU-Auto-or-off"].setColor(0.7333,0.3803,0);
obj["PTU-Supply-Line"].hide();
obj["PTU-supply-yellow"].hide();
obj["PTU-supply-green"].hide();
obj["PTU-Auto-or-off"].show();
}
}),
];
obj.displayedGForce = 0;
@ -62,10 +363,11 @@ var canvas_lowerECAMPageHyd =
return ["TAT","SAT","GW","UTCh","UTCm","GLoad","GW-weight-unit"];
},
getKeys: func() {
return["Bulk","BulkLine","BulkLbl","Exit1L","Exit1R","Cabin1Left","Cabin1LeftLbl","Cabin1LeftLine","Cabin1LeftSlide","Cabin1Right","Cabin1RightLbl","Cabin1RightLine","Cabin1RightSlide","Cabin2Left","Cabin2LeftLbl",
"Cabin2LeftLine","Cabin2LeftSlide","Cabin2Right","Cabin2RightLbl","Cabin2RightLine","Cabin2RightSlide","Cabin3Left","Cabin3LeftLbl","Cabin3LeftLine","Cabin3LeftSlide","Cabin3Right","Cabin3RightLbl","Cabin3RightLine","Cabin3RightSlide","AvionicsLine1",
"AvionicsLbl1","AvionicsLine2","AvionicsLbl2","Cargo1Line","Cargo1Lbl","Cargo1Door","Cargo2Line","Cargo2Lbl","Cargo2Door","ExitLSlide","ExitLLine","ExitLLbl","ExitRSlide","ExitRLine","ExitRLbl","Cabin4Left","Cabin4LeftLbl","Cabin4LeftLine",
"Cabin4LeftSlide","Cabin4Right","Cabin4RightLbl","Cabin4RightLine","Cabin4RightSlide","DOOROXY-REGUL-LO-PR"];},
return ["TAT","SAT","GW","UTCh","UTCm","GLoad","GW-weight-unit","Green-Indicator","Blue-Indicator","Yellow-Indicator","Press-Green","Press-Blue","Press-Yellow","Green-Line","Blue-Line","Yellow-Line","Green-Line-Top","Blue-Line-Top","Yellow-Line-Middle","Green-Line-Middle","Yellow-Line-Bottom","Green-Line-Bottom","Blue-Line-Bottom","Yellow-Line-Top","PTU-Supply-Line","PTU-supply-yellow","PTU-supply-green","PTU-connection",
"PTU-Auto-or-off","RAT-label","RAT-stowed","RAT-not-stowed","ELEC-Yellow-off","ELEC-Yellow-on","ELEC-Yellow-label","ELEC-OVTH-Yellow","ELEC-Blue-label","ELEC-OVHT-Blue","ELEC-OVHT-Yellow","Pump-Green-label","Pump-Yellow-label","Pump-Green",
"Pump-LOPR-Green","Pump-Green-off","Pump-Green-on","Pump-Yellow","Pump-LOPR-Yellow","Pump-Yellow-off","Pump-Yellow-on","Pump-Blue", "Pump-Blue-off","Pump-Blue-on","Fire-Valve-Green","Fire-Valve-Yellow","LO-AIR-PRESS-Green",
"LO-AIR-PRESS-Yellow","LO-AIR-PRESS-Blue","OVHT-Green","OVHT-Blue","OVHT-Yellow","Quantity-Indicator-Green","Quantity-Indicator-Blue","Quantity-Indicator-Yellow","Green-label","Blue-label","Yellow-label","Fire-Valve-Yellow-Cross","Fire-Valve-Green-Cross"];
},
updateBottom: func(notification) {
foreach(var update_item_bottom; me.updateItemsBottom)
{
@ -140,6 +442,25 @@ var canvas_lowerECAMPageHyd =
};
var input = {
hydBlueResvOvht: "/systems/hydraulic/blue-resv-ovht",
hydGreenResvOvht: "/systems/hydraulic/green-resv-ovht",
hydYellowResvOvht: "/systems/hydraulic/yellow-resv-ovht",
hydBlueResvLoPrs: "/systems/hydraulic/blue-resv-lo-air-press",
hydGreenResvLoPrs: "/systems/hydraulic/green-resv-lo-air-press",
hydYellowResvLoPrs: "/systems/hydraulic/yellow-resv-lo-air-press",
hydYellowElecPumpOvht: "/systems/hydraulic/elec-pump-yellow-ovht",
hydBlueElecPumpOvht: "/systems/hydraulic/elec-pump-blue-ovht",
hydRATPosition: "/systems/hydraulic/sources/rat/position",
hydGreenFireValve: "/systems/hydraulic/sources/green-edp/fire-valve",
hydYellowFireValve: "/systems/hydraulic/sources/yellow-edp/fire-valve",
hydBlueElecPumpSwitch: "/controls/hydraulic/switches/blue-elec",
hydGreenEDPPumpSwitch: "/controls/hydraulic/switches/green-edp",
hydYellowElecPumpSwitch: "/controls/hydraulic/switches/yellow-elec",
hydYellowEDPPumpSwitch: "/controls/hydraulic/switches/yellow-edp",
hydPTUSwitch: "/controls/hydraulic/switches/ptu",
hydPTUFault: "/systems/failures/hydraulic/ptu",
hydPTUActive: "/systems/hydraulic/sources/ptu/ptu-hydraulic-condition",
hydPTUDiff: "/systems/hydraulic/yellow-psi-diff",
};
foreach (var name; keys(input)) {

View file

@ -111,11 +111,6 @@ var gLoad = props.globals.getNode("", 1);
var blue_psi = 0;
var green_psi = 0;
var yellow_psi = 0;
var y_resv_lo_air_press = props.globals.getNode("/systems/hydraulic/yellow-resv-lo-air-press", 1);
var b_resv_lo_air_press = props.globals.getNode("/systems/hydraulic/blue-resv-lo-air-press", 1);
var g_resv_lo_air_press = props.globals.getNode("/systems/hydraulic/green-resv-lo-air-press", 1);
var elec_pump_y_ovht = props.globals.getNode("/systems/hydraulic/elec-pump-yellow-ovht", 1);
var elec_pump_b_ovht = props.globals.getNode("/systems/hydraulic/elec-pump-blue-ovht", 1);
var rat_deployed = props.globals.getNode("/controls/hydraulic/rat-deployed", 1);
var y_resv_ovht = props.globals.getNode("/systems/hydraulic/yellow-resv-ovht", 1);
var b_resv_ovht = props.globals.getNode("/systems/hydraulic/blue-resv-ovht", 1);
@ -1471,276 +1466,4 @@ var canvas_lowerECAM_eng = {
me.updateBottomStatus();
},
};
},
};
var canvas_lowerECAM_hyd = {
new: func(canvas_group, file) {
var m = {parents: [canvas_lowerECAM_hyd, canvas_lowerECAM_base]};
m.init(canvas_group, file);
return m;
},
getKeys: func() {
return ["TAT","SAT","GW","UTCh","UTCm","GLoad","GW-weight-unit","Green-Indicator","Blue-Indicator","Yellow-Indicator","Press-Green","Press-Blue","Press-Yellow","Green-Line","Blue-Line","Yellow-Line","PTU-Supply-Line","PTU-supply-yellow","PTU-supply-green","PTU-connection",
"PTU-Auto-or-off","RAT-label","RAT-stowed","RAT-not-stowed","ELEC-Yellow-off","ELEC-Yellow-on","ELEC-Yellow-label","ELEC-OVTH-Yellow","ELEC-Blue-label","ELEC-OVHT-Blue","ELEC-OVHT-Yellow","Pump-Green-label","Pump-Yellow-label","Pump-Green",
"Pump-LOPR-Green","Pump-Green-off","Pump-Green-on","Pump-Yellow","Pump-LOPR-Yellow","Pump-Yellow-off","Pump-Yellow-on","Pump-Blue", "Pump-Blue-off","Pump-Blue-on","Fire-Valve-Green","Fire-Valve-Yellow","LO-AIR-PRESS-Green",
"LO-AIR-PRESS-Yellow","LO-AIR-PRESS-Blue","OVHT-Green","OVHT-Blue","OVHT-Yellow","Quantity-Indicator-Green","Quantity-Indicator-Blue","Quantity-Indicator-Yellow","Green-label","Blue-label","Yellow-label"];
},
update: func() {
blue_psi = systems.HYD.Psi.blue.getValue();
green_psi = systems.HYD.Psi.green.getValue();
yellow_psi = systems.HYD.Psi.yellow.getValue();
me["Press-Green"].setText(sprintf("%s", math.round(green_psi, 50)));
me["Press-Blue"].setText(sprintf("%s", math.round(blue_psi, 50)));
me["Press-Yellow"].setText(sprintf("%s", math.round(yellow_psi, 50)));
if (blue_psi >= 1500) {
me["Blue-Line"].setColor(0.0509,0.7529,0.2941);
me["Blue-Line"].setColorFill(0.0509,0.7529,0.2941);
me["Blue-Indicator"].setColor(0.0509,0.7529,0.2941);
me["Press-Blue"].setColor(0.0509,0.7529,0.2941);
me["Blue-label"].setColor(0.8078,0.8039,0.8078);
} else {
me["Blue-Line"].setColor(0.7333,0.3803,0);
me["Blue-Line"].setColorFill(0.7333,0.3803,0);
me["Blue-Indicator"].setColor(0.7333,0.3803,0);
me["Press-Blue"].setColor(0.7333,0.3803,0);
me["Blue-label"].setColor(0.7333,0.3803,0);
}
if (yellow_psi >= 1500) {
me["Yellow-Line"].setColor(0.0509,0.7529,0.2941);
me["Yellow-Line"].setColorFill(0.0509,0.7529,0.2941);
me["Yellow-Indicator"].setColor(0.0509,0.7529,0.2941);
me["Press-Yellow"].setColor(0.0509,0.7529,0.2941);
me["Yellow-label"].setColor(0.8078,0.8039,0.8078);
} else {
me["Yellow-Line"].setColor(0.7333,0.3803,0);
me["Yellow-Line"].setColorFill(0.7333,0.3803,0);
me["Yellow-Indicator"].setColor(0.7333,0.3803,0);
me["Press-Yellow"].setColor(0.7333,0.3803,0);
me["Yellow-label"].setColor(0.7333,0.3803,0);
}
if (green_psi >= 1500) {
me["Green-Line"].setColor(0.0509,0.7529,0.2941);
me["Green-Line"].setColorFill(0.0509,0.7529,0.2941);
me["Green-Indicator"].setColor(0.0509,0.7529,0.2941);
me["Press-Green"].setColor(0.0509,0.7529,0.2941);
me["Green-label"].setColor(0.8078,0.8039,0.8078);
} else {
me["Green-Line"].setColor(0.7333,0.3803,0);
me["Green-Line"].setColorFill(0.7333,0.3803,0);
me["Green-Indicator"].setColor(0.7333,0.3803,0);
me["Press-Green"].setColor(0.7333,0.3803,0);
me["Green-label"].setColor(0.7333,0.3803,0);
}
if (systems.HYD.Switch.ptu.getValue() and !systems.HYD.Fail.ptuFault.getValue()) {
me["PTU-connection"].setColor(0.0509,0.7529,0.2941);
if (systems.HYD.Ptu.active.getValue()) {
if (systems.HYD.Ptu.diff.getValue() < 0) {
me["PTU-Supply-Line"].show();
me["PTU-supply-yellow"].show();
me["PTU-supply-green"].hide();
me["PTU-Auto-or-off"].hide();
} else {
me["PTU-Supply-Line"].show();
me["PTU-supply-yellow"].hide();
me["PTU-supply-green"].show();
me["PTU-Auto-or-off"].hide();
}
} else {
me["PTU-Auto-or-off"].setColor(0.0509,0.7529,0.2941);
me["PTU-Supply-Line"].hide();
me["PTU-supply-yellow"].hide();
me["PTU-supply-green"].hide();
me["PTU-Auto-or-off"].show();
}
} else {
me["PTU-connection"].setColor(0.7333,0.3803,0);
me["PTU-Auto-or-off"].setColor(0.7333,0.3803,0);
me["PTU-Supply-Line"].hide();
me["PTU-supply-yellow"].hide();
me["PTU-supply-green"].hide();
me["PTU-Auto-or-off"].show();
}
if (pts.Engines.Engine.n2Actual[0].getValue() >= 59) {
me["Pump-Green-label"].setColor(0.8078,0.8039,0.8078);
} else {
me["Pump-Green-label"].setColor(0.7333,0.3803,0);
}
if (pts.Engines.Engine.n2Actual[1].getValue() >= 59) {
me["Pump-Yellow-label"].setColor(0.8078,0.8039,0.8078);
} else {
me["Pump-Yellow-label"].setColor(0.7333,0.3803,0);
}
if (systems.HYD.Switch.greenEDP.getValue()) {
me["Pump-Green-off"].hide();
if (green_psi >= 1500) {
me["Pump-Green-on"].show();
me["Pump-LOPR-Green"].hide();
me["Pump-Green"].setColor(0.0509,0.7529,0.2941);
me["Pump-Green"].setColorFill(0.0509,0.7529,0.2941);
} else {
me["Pump-Green-on"].hide();
me["Pump-LOPR-Green"].show();
me["Pump-Green"].setColor(0.7333,0.3803,0);
me["Pump-Green"].setColorFill(0.7333,0.3803,0);
}
} else {
me["Pump-Green-off"].show();
me["Pump-Green-on"].hide();
me["Pump-LOPR-Green"].hide();
me["Pump-Green"].setColor(0.7333,0.3803,0);
}
if (systems.HYD.Switch.yellowEDP.getValue()) {
me["Pump-Yellow-off"].hide();
if (yellow_psi >= 1500) {
me["Pump-Yellow-on"].show();
me["Pump-LOPR-Yellow"].hide();
me["Pump-Yellow"].setColorFill(0.0509,0.7529,0.2941);
me["Pump-Yellow"].setColor(0.0509,0.7529,0.2941);
} else {
me["Pump-Yellow-on"].hide();
me["Pump-LOPR-Yellow"].show();
me["Pump-Yellow"].setColorFill(0.7333,0.3803,0);
me["Pump-Yellow"].setColor(0.7333,0.3803,0);
}
} else {
me["Pump-Yellow-off"].show();
me["Pump-Yellow-on"].hide();
me["Pump-LOPR-Yellow"].hide();
me["Pump-Yellow"].setColorFill(0.7333,0.3803,0);
me["Pump-Yellow"].setColor(0.7333,0.3803,0);
}
if (systems.HYD.Switch.blueElec.getValue()) {
me["Pump-Blue-off"].hide();
if (blue_psi >= 1500) {
me["Pump-Blue-on"].show();
me["Pump-Blue-off"].hide();
me["Pump-Blue"].setColorFill(0.0509,0.7529,0.2941);
me["Pump-Blue"].setColor(0.0509,0.7529,0.2941);
} else {
me["Pump-Blue-off"].show();
me["Pump-Blue-on"].hide();
me["Pump-Blue"].setColorFill(0.7333,0.3803,0);
me["Pump-Blue"].setColor(0.7333,0.3803,0);
}
} else {
me["Pump-Blue-off"].show();
me["Pump-Blue-on"].hide();
me["Pump-Blue"].setColorFill(0.7333,0.3803,0);
me["Pump-Blue"].setColor(0.7333,0.3803,0);
}
if (!systems.HYD.Switch.yellowElec.getValue()) {
me["ELEC-Yellow-on"].hide();
me["ELEC-Yellow-off"].show();
} else {
me["ELEC-Yellow-on"].show();
me["ELEC-Yellow-off"].hide();
if (yellow_psi >= 1500) {
me["ELEC-Yellow-on"].setColor(0.0509,0.7529,0.2941);
} else {
me["ELEC-Yellow-on"].setColor(0.7333,0.3803,0);
}
}
if (y_resv_lo_air_press.getValue()) {
me["LO-AIR-PRESS-Yellow"].show();
} else {
me["LO-AIR-PRESS-Yellow"].hide();
}
if (b_resv_lo_air_press.getValue()) {
me["LO-AIR-PRESS-Blue"].show();
} else {
me["LO-AIR-PRESS-Blue"].hide();
}
if (g_resv_lo_air_press.getValue()) {
me["LO-AIR-PRESS-Green"].show();
} else {
me["LO-AIR-PRESS-Green"].hide();
}
if (elec_pump_y_ovht.getValue()) {
me["ELEC-OVHT-Yellow"].show();
} else {
me["ELEC-OVHT-Yellow"].hide();
}
if (elec_pump_b_ovht.getValue()) {
me["ELEC-OVHT-Blue"].show();
} else {
me["ELEC-OVHT-Blue"].hide();
}
if (systems.HYD.Rat.position.getValue()) {
me["RAT-stowed"].hide();
me["RAT-not-stowed"].show();
} else {
me["RAT-stowed"].show();
me["RAT-not-stowed"].hide();
}
if (y_resv_ovht.getValue()) {
me["OVHT-Yellow"].show();
} else {
me["OVHT-Yellow"].hide();
}
if (b_resv_ovht.getValue()) {
me["OVHT-Green"].show();
} else {
me["OVHT-Green"].hide();
}
if (g_resv_ovht.getValue()) {
me["OVHT-Blue"].show();
} else {
me["OVHT-Blue"].hide();
}
if (systems.ELEC.Bus.ac1.getValue() >= 110) {
me["ELEC-Blue-label"].setColor(0.8078,0.8039,0.8078);
} else {
me["ELEC-Blue-label"].setColor(0.7333,0.3803,0);
}
if (systems.ELEC.Bus.ac2.getValue() >= 110) {
me["ELEC-Yellow-label"].setColor(0.8078,0.8039,0.8078);
} else {
me["ELEC-Yellow-label"].setColor(0.7333,0.3803,0);
}
if (systems.HYD.Valve.yellowFire.getValue() != 0) {
me["Fire-Valve-Yellow"].setColor(0.7333,0.3803,0);
me["Fire-Valve-Yellow"].setRotation(90 * D2R);
} else {
me["Fire-Valve-Yellow"].setColor(0.0509,0.7529,0.2941);
me["Fire-Valve-Yellow"].setRotation(0);
}
if (systems.HYD.Valve.greenFire.getValue() != 0) {
me["Fire-Valve-Green"].setColor(0.7333,0.3803,0);
me["Fire-Valve-Green"].setRotation(90 * D2R);
} else {
me["Fire-Valve-Green"].setColor(0.0509,0.7529,0.2941);
me["Fire-Valve-Green"].setRotation(0);
}
me.updateBottomStatus();
},
};

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="hyd.svg">
<metadata
id="metadata375">
@ -56,9 +56,9 @@
inkscape:window-height="705"
id="namedview371"
showgrid="true"
inkscape:zoom="4.0298682"
inkscape:cx="632.99286"
inkscape:cy="609.55322"
inkscape:zoom="0.71238678"
inkscape:cx="802.52236"
inkscape:cy="594.9486"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1"
@ -84,8 +84,9 @@
x="817.61298"
height="5.1203089"
width="53.195583"
id="rect5105-2-5-3"
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" />
id="Fire-Valve-Green-Cross"
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"
inkscape:label="#rect5105-2-5-3" />
</g>
<text
xml:space="preserve"
@ -384,8 +385,9 @@
x="817.61298"
height="5.1203089"
width="53.195583"
id="rect5105-2-5-3-8"
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" />
id="Fire-Valve-Yellow-Cross"
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"
inkscape:label="#rect5105-2-5-3-8" />
</g>
<g
id="Green-Line"
@ -396,22 +398,25 @@
x="181.49602"
height="50.02853"
width="5.3955846"
id="rect5105-6-0-7-8-6-8-8-7-3-8"
style="fill:#0dc04b;fill-opacity:1;stroke:none;stroke-width:1.5107255;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
id="Green-Line-Bottom"
style="fill:#0dc04b;fill-opacity:1;stroke:none;stroke-width:1.5107255;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-7-3-8" />
<rect
y="567.01062"
x="182.10442"
height="37.850697"
width="5.3955846"
id="rect5105-6-0-7-8-6-8-8-7-3-8-6"
style="fill:#0dc04b;fill-opacity:1;stroke:none;stroke-width:1.31405532;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
id="Green-Line-Middle"
style="fill:#0dc04b;fill-opacity:1;stroke:none;stroke-width:1.31405532;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-7-3-8-6" />
<rect
y="239.89929"
x="182.10442"
height="260.70981"
width="5.3955846"
id="rect5105-6-0-7-8-6-8-8-7-3-8-6-8"
style="fill:#0dc04b;fill-opacity:1;stroke:none;stroke-width:3.44869995;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
id="Green-Line-Top"
style="fill:#0dc04b;fill-opacity:1;stroke:none;stroke-width:3.44869995;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-7-3-8-6-8" />
</g>
<g
id="Yellow-Line"
@ -422,22 +427,25 @@
x="812.10443"
height="47.414429"
width="5.3955846"
id="rect5105-6-0-7-8-6-8-8-7-3-8-8"
style="fill:#0dc04b;fill-opacity:1;stroke:none;stroke-width:1.47072661;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
id="Yellow-Line-Bottom"
style="fill:#0dc04b;fill-opacity:1;stroke:none;stroke-width:1.47072661;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-7-3-8-8" />
<rect
y="571.64478"
x="811.70526"
height="33.75"
width="5.3955846"
id="rect5105-6-0-7-8-6-8-8-7-3-8-6-4"
style="fill:#0dc04b;fill-opacity:1;stroke:none;stroke-width:1.24083376;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
id="Yellow-Line-Middle"
style="fill:#0dc04b;fill-opacity:1;stroke:none;stroke-width:1.24083376;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-7-3-8-6-4" />
<rect
y="235.81612"
x="812.71283"
height="269.77158"
width="5.3955846"
id="rect5105-6-0-7-8-6-8-8-7-3-8-6-8-3"
style="fill:#0dc04b;fill-opacity:1;stroke:none;stroke-width:3.50812292;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
id="Yellow-Line-Top"
style="fill:#0dc04b;fill-opacity:1;stroke:none;stroke-width:3.50812292;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-7-3-8-6-8-3" />
</g>
<path
style="fill:none;stroke:#0dc04b;stroke-width:2.77499986;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4.80000019;stroke-dasharray:none;stroke-opacity:1"
@ -858,15 +866,17 @@
x="497.1044"
height="322.44897"
width="5.3955846"
id="rect5105-6-0-7-8-6-8-8-7-3-8-6-8-9"
style="fill:#0dc04b;fill-opacity:1;stroke:none;stroke-width:3.83536959;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
id="Blue-Line-Top"
style="fill:#0dc04b;fill-opacity:1;stroke:none;stroke-width:3.83536959;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-7-3-8-6-8-9" />
<rect
y="624.25513"
x="497.1044"
height="92.244881"
width="5.3955846"
id="rect5105-6-0-7-8-6-8-8-7-3-8-6-8-9-6"
style="fill:#0dc04b;fill-opacity:1;stroke:none;stroke-width:2.05138826;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
id="Blue-Line-Bottom"
style="fill:#0dc04b;fill-opacity:1;stroke:none;stroke-width:2.05138826;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-7-3-8-6-8-9-6" />
</g>
<path
style="fill:none;stroke:#0dc04b;stroke-width:3.89999986;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
@ -1148,7 +1158,7 @@
x="465.99081"
id="tspan4176"
sodipodi:role="line">00</tspan></text>
<text
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;line-height:0%;font-family:'Liberation Sans';text-align:center;letter-spacing:0px;word-spacing:0px;text-anchor:middle;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
x="512.93152"

Before

Width:  |  Height:  |  Size: 62 KiB

After

Width:  |  Height:  |  Size: 63 KiB