fix FCTL page

This commit is contained in:
Jonathan Redpath 2017-08-12 17:24:35 +01:00
parent 57b3018419
commit d4fc1d04a9
2 changed files with 252 additions and 6 deletions

View file

@ -287,7 +287,7 @@ var canvas_lowerECAM_fctl = {
return["ailL","ailR","elevL","elevR","PTcc","PT","PTupdn","GW","TAT","SAT","elac1","elac2","sec1","sec2","sec3","ailLblue","ailRblue","elevLblue","elevRblue","rudderblue","ailLgreen","ailRgreen","elevLgreen","ruddergreen","PTgreen","elevRyellow",
"rudderyellow","PTyellow","rudder","spdbrkblue","spdbrkgreen","spdbrkyellow","spoiler1Rex","spoiler1Rrt","spoiler2Rex","spoiler2Rrt","spoiler3Rex","spoiler3Rrt","spoiler4Rex","spoiler4Rrt","spoiler5Rex","spoiler5Rrt","spoiler1Lex","spoiler1Lrt",
"spoiler2Lex","spoiler2Lrt","spoiler3Lex","spoiler3Lrt","spoiler4Lex","spoiler4Lrt","spoiler5Lex","spoiler5Lrt","spoiler1Rf","spoiler2Rf","spoiler3Rf","spoiler4Rf","spoiler5Rf","spoiler1Lf","spoiler2Lf","spoiler3Lf","spoiler4Lf","spoiler5Lf",
"ailLscale","ailRscale"];
"ailLscale","ailRscale","path4249","path4249-3","path4249-3-6-7","path4249-3-6-7-5","path4249-3-6"];
},
update: func() {
var blue_psi = getprop("/systems/hydraulic/blue-psi");
@ -579,32 +579,42 @@ var canvas_lowerECAM_fctl = {
# Flight Computers
if (getprop("/systems/fctl/elac1")){
me["elac1"].setColor(0,1,0);
} else {
me["path4249"].setColor(0,1,0);
} else if ((getprop("/systems/fctl/elac1") == 0) or (getprop("/systems/failures/elac1") == 1)){
me["elac1"].setColor(1,0.6,0);
me["path4249"].setColor(1,0.6,0);
}
if (getprop("/systems/fctl/elac2")){
me["elac2"].setColor(0,1,0);
} else {
me["path4249-3"].setColor(0,1,0);
} else if ((getprop("/systems/fctl/elac2") == 0) or (getprop("/systems/failures/elac2") == 1)){
me["elac2"].setColor(1,0.6,0);
me["path4249-3"].setColor(1,0.6,0);
}
if (getprop("/systems/fctl/sec1")){
me["sec1"].setColor(0,1,0);
} else {
me["path4249-3-6-7"].setColor(0,1,0);
} else if ((getprop("/systems/fctl/sec1") == 0) or (getprop("/systems/failures/sec1") == 1)){
me["sec1"].setColor(1,0.6,0);
me["path4249-3-6-7"].setColor(1,0.6,0);
}
if (getprop("/systems/fctl/sec2")){
me["sec2"].setColor(0,1,0);
} else {
me["path4249-3-6-7-5"].setColor(0,1,0);
} else if ((getprop("/systems/fctl/sec2") == 0) or (getprop("/systems/failures/sec2") == 1)){
me["sec2"].setColor(1,0.6,0);
me["path4249-3-6-7-5"].setColor(1,0.6,0);
}
if (getprop("/systems/fctl/sec3")){
me["sec3"].setColor(0,1,0);
} else {
me["path4249-3-6"].setColor(0,1,0);
} else if ((getprop("/systems/fctl/sec3") == 0) or (getprop("/systems/failures/sec3") == 1)){
me["sec3"].setColor(1,0.6,0);
me["path4249-3-6"].setColor(1,0.6,0);
}
# Hydraulic Indicators

View file

@ -0,0 +1,236 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="1024pt"
height="1024pt"
viewBox="0 0 1024 1024"
version="1.1"
id="svg2"
inkscape:version="0.91 r13725"
sodipodi:docname="status.svg">
<metadata
id="metadata375">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title />
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs373" />
<sodipodi:namedview
pagecolor="#000000"
bordercolor="#666666"
borderopacity="1"
objecttolerance="20"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="1"
inkscape:pageshadow="2"
inkscape:window-width="1366"
inkscape:window-height="706"
id="namedview371"
showgrid="true"
inkscape:zoom="0.39"
inkscape:cx="565.89744"
inkscape:cy="670.26029"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1"
inkscape:current-layer="svg2">
<inkscape:grid
type="xygrid"
id="grid5153" />
</sodipodi:namedview>
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:50px;line-height:125%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
x="518.69232"
y="52.393005"
id="PageTitleSTATUS"
sodipodi:linespacing="125%"
inkscape:label="#text3714"><tspan
sodipodi:role="line"
id="tspan3716"
x="518.69232"
y="52.393005"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:50px;font-family:Arial;-inkscape-font-specification:Arial;text-align:center;text-anchor:middle;fill:#ffffff">STATUS</tspan></text>
<rect
style="fill:#ffffff;fill-opacity:1"
id="PageTitleSTATUS2"
width="180.59233"
height="4.677979"
x="427.65146"
y="58.461037"
inkscape:label="#rect3718" />
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:28px;line-height:125%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#00a0d2;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;"
x="286.01636"
y="947.15186"
id="text3724-2-2-6"
sodipodi:linespacing="125%"><tspan
sodipodi:role="line"
id="tspan3726-1-4-5"
x="286.01636"
y="947.15186"
style="font-size:32px;-inkscape-font-specification:Arial;font-family:Arial;font-weight:normal;font-style:normal;font-stretch:normal;font-variant:normal;fill:#00a0d2;fill-opacity:1;">°C</tspan></text>
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:34px;line-height:125%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#00a0d2;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;"
x="500.75214"
y="974.06525"
id="text3724-2-2-6-93"
sodipodi:linespacing="125%"><tspan
sodipodi:role="line"
id="tspan3726-1-4-5-7"
x="500.75214"
y="974.06525"
style="font-size:34px;-inkscape-font-specification:Arial;font-family:Arial;font-weight:normal;font-style:normal;font-stretch:normal;font-variant:normal;fill:#00a0d2;fill-opacity:1;">H</tspan></text>
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:28px;line-height:125%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#00a0d2;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;"
x="285.86758"
y="1008.0583"
id="text3724-2-2-6-4"
sodipodi:linespacing="125%"><tspan
sodipodi:role="line"
id="tspan3726-1-4-5-3"
x="285.86758"
y="1008.0583"
style="font-size:32px;-inkscape-font-specification:Arial;font-family:Arial;font-weight:normal;font-style:normal;font-stretch:normal;font-variant:normal;fill:#00a0d2;fill-opacity:1;">°C</tspan></text>
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:28px;line-height:125%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#00a0d2;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;"
x="940.17981"
y="947.52124"
id="text3724-2-2-6-93-1"
sodipodi:linespacing="125%"><tspan
sodipodi:role="line"
id="tspan3726-1-4-5-7-7"
x="940.17981"
y="947.52124"
style="font-size:32px;-inkscape-font-specification:Arial;font-family:Arial;font-weight:normal;font-style:normal;font-stretch:normal;font-variant:normal;fill:#00a0d2;fill-opacity:1;">LBS</tspan></text>
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:33px;line-height:125%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
x="695.24951"
y="947.40448"
id="text3912"
sodipodi:linespacing="125%"><tspan
sodipodi:role="line"
id="tspan3914"
x="695.24951"
y="947.40448"
style="font-size:34px;fill:#ffffff;-inkscape-font-specification:Arial;font-family:Arial;font-weight:normal;font-style:normal;font-stretch:normal;font-variant:normal">GW</tspan></text>
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:33px;line-height:125%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
x="80.976402"
y="946.65228"
id="text3912-9"
sodipodi:linespacing="125%"><tspan
sodipodi:role="line"
id="tspan3914-9"
x="80.976402"
y="946.65228"
style="font-size:34px;fill:#ffffff;-inkscape-font-specification:Arial;font-family:Arial;font-weight:normal;font-style:normal;font-stretch:normal;font-variant:normal">TAT</tspan></text>
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:33px;line-height:125%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
x="79.798637"
y="1007.6474"
id="text3912-9-4"
sodipodi:linespacing="125%"><tspan
sodipodi:role="line"
id="tspan3914-9-4"
x="79.798637"
y="1007.6474"
style="font-size:34px;fill:#ffffff;-inkscape-font-specification:Arial;font-family:Arial;font-weight:normal;font-style:normal;font-stretch:normal;font-variant:normal">SAT</tspan></text>
<g
id="g3466">
<rect
y="899.43646"
x="0.19175777"
height="8.496521"
width="1023.9024"
id="rect3952"
style="fill:#515256;fill-opacity:1" />
<rect
y="907.93317"
x="355.13541"
height="116.24162"
width="8.7250061"
id="rect3956"
style="fill:#515256;fill-opacity:1" />
<rect
y="907.92108"
x="668.33417"
height="116.24162"
width="8.7250061"
id="rect3956-4"
style="fill:#515256;fill-opacity:1" />
</g>
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:38px;line-height:125%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;text-anchor:end;text-align:end;"
x="267.5513"
y="946.6001"
id="TAT"
sodipodi:linespacing="125%"
inkscape:label="#text5149"><tspan
sodipodi:role="line"
id="tspan5151-5-7-1"
x="232.10431"
y="946.6001"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:34px;font-family:Arial;-inkscape-font-specification:Arial;fill:#00ff00;text-anchor:end;text-align:end;">25</tspan></text>
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:38px;line-height:125%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;text-anchor:end;text-align:end;"
x="267.5513"
y="1007.0682"
id="SAT"
sodipodi:linespacing="125%"
inkscape:label="#text5149"><tspan
sodipodi:role="line"
id="tspan5151-5-7-1-0"
x="232.10431"
y="1007.0682"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:34px;font-family:Arial;-inkscape-font-specification:Arial;fill:#00ff00;text-anchor:end;text-align:end;">25</tspan></text>
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:38px;line-height:125%;font-family:sans-serif;text-align:end;letter-spacing:0px;word-spacing:0px;text-anchor:end;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
x="909.17999"
y="946.6001"
id="GW"
sodipodi:linespacing="125%"
inkscape:label="#text5149"><tspan
sodipodi:role="line"
id="tspan5151-5-7-1-9"
x="909.17999"
y="946.6001"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:34px;font-family:Arial;-inkscape-font-specification:Arial;text-align:end;text-anchor:end;fill:#00ff00">120000</tspan></text>
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:32px;line-height:125%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
x="423.38461"
y="439.38461"
id="NORMAL"
sodipodi:linespacing="125%"
inkscape:label="#text4242"><tspan
sodipodi:role="line"
id="tspan4244"
x="423.38461"
y="439.38461"
style="font-size:46px;fill:#00ff00;fill-opacity:1">NORMAL</tspan></text>
</svg>

After

Width:  |  Height:  |  Size: 10 KiB