Slats animated
This commit is contained in:
parent
14606bb9e4
commit
59b157ce98
4 changed files with 63 additions and 5 deletions
|
@ -47,6 +47,8 @@ var slatXOffset = props.globals.getNode("/ECAM/Upper/SlatX", 1);
|
||||||
var slatYOffset = props.globals.getNode("/ECAM/Upper/SlatY", 1);
|
var slatYOffset = props.globals.getNode("/ECAM/Upper/SlatY", 1);
|
||||||
var flapXTranslate = props.globals.getNode("/ECAM/Upper/FlapXtrans", 1);
|
var flapXTranslate = props.globals.getNode("/ECAM/Upper/FlapXtrans", 1);
|
||||||
var flapYTranslate = props.globals.getNode("/ECAM/Upper/FlapYtrans", 1);
|
var flapYTranslate = props.globals.getNode("/ECAM/Upper/FlapYtrans", 1);
|
||||||
|
var slatXTranslate = props.globals.getNode("/ECAM/Upper/SlatXtrans", 1);
|
||||||
|
var slatYTranslate = props.globals.getNode("/ECAM/Upper/SlatYtrans", 1);
|
||||||
var ECAM_line1 = props.globals.getNode("/ECAM/msg/line1", 1);
|
var ECAM_line1 = props.globals.getNode("/ECAM/msg/line1", 1);
|
||||||
var ECAM_line2 = props.globals.getNode("/ECAM/msg/line2", 1);
|
var ECAM_line2 = props.globals.getNode("/ECAM/msg/line2", 1);
|
||||||
var ECAM_line3 = props.globals.getNode("/ECAM/msg/line3", 1);
|
var ECAM_line3 = props.globals.getNode("/ECAM/msg/line3", 1);
|
||||||
|
@ -321,6 +323,8 @@ var canvas_upperECAM_base = {
|
||||||
me["FlapIndicator"].setTranslation(flapXOffset.getValue(),flapYOffset.getValue());
|
me["FlapIndicator"].setTranslation(flapXOffset.getValue(),flapYOffset.getValue());
|
||||||
me["SlatIndicator"].setTranslation(slatXOffset.getValue(),slatYOffset.getValue());
|
me["SlatIndicator"].setTranslation(slatXOffset.getValue(),slatYOffset.getValue());
|
||||||
me["FlapLine"].setTranslation(flapXTranslate.getValue(),flapYTranslate.getValue());
|
me["FlapLine"].setTranslation(flapXTranslate.getValue(),flapYTranslate.getValue());
|
||||||
|
me["SlatLine"].setTranslation(slatXTranslate.getValue(),slatYTranslate.getValue());
|
||||||
|
|
||||||
# FOB
|
# FOB
|
||||||
if (acconfig_weight_kgs.getValue())
|
if (acconfig_weight_kgs.getValue())
|
||||||
{
|
{
|
||||||
|
|
|
@ -41,9 +41,9 @@
|
||||||
inkscape:window-height="705"
|
inkscape:window-height="705"
|
||||||
id="namedview371"
|
id="namedview371"
|
||||||
showgrid="true"
|
showgrid="true"
|
||||||
inkscape:zoom="11.313709"
|
inkscape:zoom="1"
|
||||||
inkscape:cx="1211.5956"
|
inkscape:cx="718.57047"
|
||||||
inkscape:cy="524.36594"
|
inkscape:cy="505.8628"
|
||||||
inkscape:window-x="-8"
|
inkscape:window-x="-8"
|
||||||
inkscape:window-y="-8"
|
inkscape:window-y="-8"
|
||||||
inkscape:window-maximized="1"
|
inkscape:window-maximized="1"
|
||||||
|
@ -1420,4 +1420,12 @@
|
||||||
x="718.86694"
|
x="718.86694"
|
||||||
y="594.42938"
|
y="594.42938"
|
||||||
inkscape:label="#rect1023" />
|
inkscape:label="#rect1023" />
|
||||||
|
<rect
|
||||||
|
inkscape:label="#rect1023"
|
||||||
|
y="594.05438"
|
||||||
|
x="554.93781"
|
||||||
|
height="48.089657"
|
||||||
|
width="137.63597"
|
||||||
|
id="SlatLine_clip"
|
||||||
|
style="opacity:0.5;fill:none;fill-opacity:1;stroke:none;stroke-width:3.34691048;stroke-linecap:square;stroke-linejoin:bevel;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:markers stroke fill" />
|
||||||
</svg>
|
</svg>
|
||||||
|
|
Before Width: | Height: | Size: 86 KiB After Width: | Height: | Size: 86 KiB |
|
@ -1788,4 +1788,12 @@
|
||||||
x="718.86694"
|
x="718.86694"
|
||||||
y="594.42938"
|
y="594.42938"
|
||||||
inkscape:label="#rect1023" />
|
inkscape:label="#rect1023" />
|
||||||
|
<rect
|
||||||
|
inkscape:label="#rect1023"
|
||||||
|
y="594.05438"
|
||||||
|
x="554.93781"
|
||||||
|
height="48.089657"
|
||||||
|
width="137.63597"
|
||||||
|
id="SlatLine_clip"
|
||||||
|
style="opacity:0.5;fill:none;fill-opacity:1;stroke:none;stroke-width:3.34691048;stroke-linecap:square;stroke-linejoin:bevel;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:markers stroke fill" />
|
||||||
</svg>
|
</svg>
|
||||||
|
|
Before Width: | Height: | Size: 109 KiB After Width: | Height: | Size: 109 KiB |
|
@ -502,7 +502,7 @@
|
||||||
<expression>
|
<expression>
|
||||||
<table>
|
<table>
|
||||||
<property>/fdm/jsbsim/fcs/flap-pos-deg</property>
|
<property>/fdm/jsbsim/fcs/flap-pos-deg</property>
|
||||||
<entry><ind> 0.0</ind><dep>-198</dep></entry>
|
<entry><ind> 0.0</ind><dep>-200</dep></entry>
|
||||||
<entry><ind>10.0</ind><dep>-135</dep></entry>
|
<entry><ind>10.0</ind><dep>-135</dep></entry>
|
||||||
<entry><ind>15.0</ind><dep>-95</dep></entry>
|
<entry><ind>15.0</ind><dep>-95</dep></entry>
|
||||||
<entry><ind>20.0</ind><dep>-50</dep></entry>
|
<entry><ind>20.0</ind><dep>-50</dep></entry>
|
||||||
|
@ -520,7 +520,7 @@
|
||||||
<expression>
|
<expression>
|
||||||
<table>
|
<table>
|
||||||
<property>/fdm/jsbsim/fcs/flap-pos-deg</property>
|
<property>/fdm/jsbsim/fcs/flap-pos-deg</property>
|
||||||
<entry><ind> 0.0</ind><dep>-198</dep></entry>
|
<entry><ind> 0.0</ind><dep>-200</dep></entry>
|
||||||
<entry><ind>10.0</ind><dep>-135</dep></entry>
|
<entry><ind>10.0</ind><dep>-135</dep></entry>
|
||||||
<entry><ind>15.0</ind><dep>-95</dep></entry>
|
<entry><ind>15.0</ind><dep>-95</dep></entry>
|
||||||
<entry><ind>20.0</ind><dep>-50</dep></entry>
|
<entry><ind>20.0</ind><dep>-50</dep></entry>
|
||||||
|
@ -614,4 +614,42 @@
|
||||||
<output>/ECAM/Upper/SlatY</output>
|
<output>/ECAM/Upper/SlatY</output>
|
||||||
</filter>
|
</filter>
|
||||||
|
|
||||||
|
<filter>
|
||||||
|
<name>Slat Indicator</name>
|
||||||
|
<type>gain</type>
|
||||||
|
<gain>1.0</gain>
|
||||||
|
<input>
|
||||||
|
<expression>
|
||||||
|
<table>
|
||||||
|
<property>/fdm/jsbsim/fcs/slat-pos-deg</property>
|
||||||
|
<entry><ind> 0.0</ind><dep>135</dep></entry>
|
||||||
|
<entry><ind>18.0</ind><dep>95</dep></entry>
|
||||||
|
<entry><ind>22.0</ind><dep>50</dep></entry>
|
||||||
|
<entry><ind>27.0</ind><dep>0</dep></entry>
|
||||||
|
</table>
|
||||||
|
</expression>
|
||||||
|
</input>
|
||||||
|
<input>0</input>
|
||||||
|
<output>/ECAM/Upper/SlatXtrans</output>
|
||||||
|
</filter>
|
||||||
|
|
||||||
|
<filter>
|
||||||
|
<name>Slat Indicator</name>
|
||||||
|
<type>gain</type>
|
||||||
|
<gain>1.0</gain>
|
||||||
|
<input>
|
||||||
|
<expression>
|
||||||
|
<table>
|
||||||
|
<property>/fdm/jsbsim/fcs/slat-pos-deg</property>
|
||||||
|
<entry><ind> 0.0</ind><dep>-43</dep></entry>
|
||||||
|
<entry><ind>18.0</ind><dep>-29</dep></entry>
|
||||||
|
<entry><ind>22.0</ind><dep>-15</dep></entry>
|
||||||
|
<entry><ind>27.0</ind><dep>0</dep></entry>
|
||||||
|
</table>
|
||||||
|
</expression>
|
||||||
|
</input>
|
||||||
|
<input>0</input>
|
||||||
|
<output>/ECAM/Upper/SlatYtrans</output>
|
||||||
|
</filter>
|
||||||
|
|
||||||
</PropertyList>
|
</PropertyList>
|
||||||
|
|
Loading…
Reference in a new issue