A32X: Nose Gear Doors
This commit is contained in:
parent
d172edf56a
commit
63ebf302fc
3 changed files with 52 additions and 11 deletions
|
@ -28,6 +28,8 @@ setprop("/engines/engine[0]/oil-psi-actual", 0);
|
|||
setprop("/engines/engine[1]/oil-psi-actual", 0);
|
||||
setprop("/ECAM/Lower/door-left", 0);
|
||||
setprop("/ECAM/Lower/door-right", 0);
|
||||
setprop("/ECAM/Lower/door-nose-left", 0);
|
||||
setprop("/ECAM/Lower/door-nose-right", 0);
|
||||
setprop("/ECAM/Lower/APU-N", 0);
|
||||
setprop("/ECAM/Lower/APU-EGT", 0);
|
||||
setprop("/ECAM/Lower/Oil-QT[0]", 0);
|
||||
|
@ -683,7 +685,7 @@ var canvas_lowerECAM_wheel = {
|
|||
return m;
|
||||
},
|
||||
getKeys: func() {
|
||||
return ["TAT","SAT","GW","leftdoor","rightdoor","autobrk","autobrkind","NWS","altnbrk","normbrk","spoiler1Rex","spoiler1Rrt","spoiler2Rex","spoiler2Rrt","spoiler3Rex","spoiler3Rrt","spoiler4Rex","spoiler4Rrt","spoiler5Rex","spoiler5Rrt","spoiler1Lex","spoiler1Lrt",
|
||||
return ["TAT","SAT","GW","leftdoor","rightdoor","nosegeardoorL","nosegeardoorR","autobrk","autobrkind","NWS","altnbrk","normbrk","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",
|
||||
"braketemp1","braketemp2","braketemp3","braketemp4","leftuplock","noseuplock","rightuplock","Triangle-Left1","Triangle-Left2","Triangle-Nose1","Triangle-Nose2","Triangle-Right1","Triangle-Right2"];
|
||||
},
|
||||
|
@ -700,9 +702,11 @@ var canvas_lowerECAM_wheel = {
|
|||
# Gear Doors
|
||||
me["leftdoor"].setRotation(getprop("/ECAM/Lower/door-left")*D2R);
|
||||
me["rightdoor"].setRotation(getprop("/ECAM/Lower/door-right")*D2R);
|
||||
me["nosegeardoorL"].setRotation(getprop("/ECAM/Lower/door-nose-left")*D2R);
|
||||
me["nosegeardoorR"].setRotation(getprop("/ECAM/Lower/door-nose-right")*D2R);
|
||||
|
||||
# Triangles
|
||||
if ((getprop("controls/gear/gear-down") == 0 and leftgear < 0.2) or (getprop("controls/gear/gear-down") == 1 and leftgear > 0.8)) {
|
||||
if (leftgear < 0.2 or leftgear > 0.8) {
|
||||
me["Triangle-Left1"].hide();
|
||||
me["Triangle-Left2"].hide();
|
||||
} else {
|
||||
|
@ -718,7 +722,7 @@ var canvas_lowerECAM_wheel = {
|
|||
me["Triangle-Left2"].setColor(1,0,0);
|
||||
}
|
||||
|
||||
if ((getprop("controls/gear/gear-down") == 0 and nosegear < 0.2) or (getprop("controls/gear/gear-down") == 1 and nosegear > 0.8)) {
|
||||
if (nosegear < 0.2 or nosegear > 0.8) {
|
||||
me["Triangle-Nose1"].hide();
|
||||
me["Triangle-Nose2"].hide();
|
||||
} else {
|
||||
|
@ -734,7 +738,7 @@ var canvas_lowerECAM_wheel = {
|
|||
me["Triangle-Nose2"].setColor(1,0,0);
|
||||
}
|
||||
|
||||
if ((getprop("controls/gear/gear-down") == 0 and rightgear < 0.2) or (getprop("controls/gear/gear-down") == 1 and rightgear > 0.8)) {
|
||||
if (rightgear < 0.2 or rightgear > 0.8) {
|
||||
me["Triangle-Right1"].hide();
|
||||
me["Triangle-Right2"].hide();
|
||||
} else {
|
||||
|
|
|
@ -41,9 +41,9 @@
|
|||
inkscape:window-height="706"
|
||||
id="namedview371"
|
||||
showgrid="true"
|
||||
inkscape:zoom="1.2"
|
||||
inkscape:cx="802.45152"
|
||||
inkscape:cy="798.70081"
|
||||
inkscape:zoom="11.197675"
|
||||
inkscape:cx="715.02103"
|
||||
inkscape:cy="1011.7269"
|
||||
inkscape:window-x="-8"
|
||||
inkscape:window-y="-8"
|
||||
inkscape:window-maximized="1"
|
||||
|
@ -624,11 +624,12 @@
|
|||
style="fill:#cecdce;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.83352798px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
|
||||
<path
|
||||
style="fill:#11ba50;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.80000001px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||
d="m 443.99999,213.06894 h 54.88262 v 2.80598 l -54.88636,-0.0503 z"
|
||||
d="m 443.99999,213.06894 54.88262,0 0,2.80598 -54.88636,-0.0503 z"
|
||||
id="nosegeardoorL"
|
||||
inkscape:connector-curvature="0"
|
||||
sodipodi:nodetypes="ccccc"
|
||||
inkscape:label="#path4437" />
|
||||
inkscape:label="#path4437"
|
||||
inkscape:transform-center-x="-35.007268" />
|
||||
<path
|
||||
transform="scale(-1,1)"
|
||||
style="opacity:1;fill:none;fill-opacity:1;stroke:#cecdce;stroke-width:1.16106236;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
|
@ -646,9 +647,11 @@
|
|||
sodipodi:nodetypes="ccccc"
|
||||
inkscape:connector-curvature="0"
|
||||
id="nosegeardoorR"
|
||||
d="m 535.20968,213.06901 h 54.88262 v 2.80598 l -54.88636,-0.0503 z"
|
||||
d="m 535.20968,213.06901 54.88262,0 0,2.80598 -54.88636,-0.0503 z"
|
||||
style="fill:#11ba50;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.80000001px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||
inkscape:label="#path4435" />
|
||||
inkscape:label="#path4435"
|
||||
inkscape:transform-center-x="35.150155"
|
||||
inkscape:transform-center-y="0.071443405" />
|
||||
<path
|
||||
style="opacity:1;fill:none;fill-opacity:1;stroke:#cecdce;stroke-width:1.16106236;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
d="m 598.7926,222.39563 c -4.16423,0.46691 -7.92111,-2.52373 -8.39977,-6.68657 -0.47866,-4.16284 2.50138,-7.9281 6.66291,-8.41851 4.16153,-0.49041 7.93522,2.47895 8.43739,6.63902 0.50217,4.16007 -2.45656,7.9421 -6.61525,8.45601"
|
||||
|
|
Before Width: | Height: | Size: 61 KiB After Width: | Height: | Size: 61 KiB |
|
@ -1982,4 +1982,38 @@
|
|||
<output>/systems/hydraulic/gear/door-nose</output>
|
||||
</filter>
|
||||
|
||||
<filter>
|
||||
<name>NLG Left Door Conversion to Degrees</name>
|
||||
<type>gain</type>
|
||||
<gain>1</gain>
|
||||
<update-interval-secs type="double">0.05</update-interval-secs>
|
||||
<input>
|
||||
<expression>
|
||||
<table>
|
||||
<property>/systems/hydraulic/gear/door-nose</property>
|
||||
<entry><ind> 0</ind><dep>0</dep></entry>
|
||||
<entry><ind> 1</ind><dep>-90</dep></entry>
|
||||
</table>
|
||||
</expression>
|
||||
</input>
|
||||
<output>/ECAM/Lower/door-nose-left</output>
|
||||
</filter>
|
||||
|
||||
<filter>
|
||||
<name>NLG Right Door Conversion to Degrees</name>
|
||||
<type>gain</type>
|
||||
<gain>1</gain>
|
||||
<update-interval-secs type="double">0.05</update-interval-secs>
|
||||
<input>
|
||||
<expression>
|
||||
<table>
|
||||
<property>/systems/hydraulic/gear/door-nose</property>
|
||||
<entry><ind> 0</ind><dep>0</dep></entry>
|
||||
<entry><ind> 1</ind><dep>90</dep></entry>
|
||||
</table>
|
||||
</expression>
|
||||
</input>
|
||||
<output>/ECAM/Lower/door-nose-right</output>
|
||||
</filter>
|
||||
|
||||
</PropertyList>
|
||||
|
|
Reference in a new issue