From 59b157ce98b7bad668e8979e5bade83eceebcee5 Mon Sep 17 00:00:00 2001 From: legoboyvdlp R Date: Sat, 10 Oct 2020 14:03:42 +0100 Subject: [PATCH] Slats animated --- Models/Instruments/Upper-ECAM/Upper-ECAM.nas | 4 ++ .../Instruments/Upper-ECAM/res/cfm-eis2.svg | 14 +++++-- .../Instruments/Upper-ECAM/res/iae-eis2.svg | 8 ++++ Systems/upper-ecam.xml | 42 ++++++++++++++++++- 4 files changed, 63 insertions(+), 5 deletions(-) diff --git a/Models/Instruments/Upper-ECAM/Upper-ECAM.nas b/Models/Instruments/Upper-ECAM/Upper-ECAM.nas index 126cfea1..884943d5 100644 --- a/Models/Instruments/Upper-ECAM/Upper-ECAM.nas +++ b/Models/Instruments/Upper-ECAM/Upper-ECAM.nas @@ -47,6 +47,8 @@ var slatXOffset = props.globals.getNode("/ECAM/Upper/SlatX", 1); var slatYOffset = props.globals.getNode("/ECAM/Upper/SlatY", 1); var flapXTranslate = props.globals.getNode("/ECAM/Upper/FlapXtrans", 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_line2 = props.globals.getNode("/ECAM/msg/line2", 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["SlatIndicator"].setTranslation(slatXOffset.getValue(),slatYOffset.getValue()); me["FlapLine"].setTranslation(flapXTranslate.getValue(),flapYTranslate.getValue()); + me["SlatLine"].setTranslation(slatXTranslate.getValue(),slatYTranslate.getValue()); + # FOB if (acconfig_weight_kgs.getValue()) { diff --git a/Models/Instruments/Upper-ECAM/res/cfm-eis2.svg b/Models/Instruments/Upper-ECAM/res/cfm-eis2.svg index 3c3573fa..58aa4589 100644 --- a/Models/Instruments/Upper-ECAM/res/cfm-eis2.svg +++ b/Models/Instruments/Upper-ECAM/res/cfm-eis2.svg @@ -41,9 +41,9 @@ inkscape:window-height="705" id="namedview371" showgrid="true" - inkscape:zoom="11.313709" - inkscape:cx="1211.5956" - inkscape:cy="524.36594" + inkscape:zoom="1" + inkscape:cx="718.57047" + inkscape:cy="505.8628" inkscape:window-x="-8" inkscape:window-y="-8" inkscape:window-maximized="1" @@ -1420,4 +1420,12 @@ x="718.86694" y="594.42938" inkscape:label="#rect1023" /> + diff --git a/Models/Instruments/Upper-ECAM/res/iae-eis2.svg b/Models/Instruments/Upper-ECAM/res/iae-eis2.svg index 6f2ef4b5..a0a15cc2 100644 --- a/Models/Instruments/Upper-ECAM/res/iae-eis2.svg +++ b/Models/Instruments/Upper-ECAM/res/iae-eis2.svg @@ -1788,4 +1788,12 @@ x="718.86694" y="594.42938" inkscape:label="#rect1023" /> + diff --git a/Systems/upper-ecam.xml b/Systems/upper-ecam.xml index 58cb57c9..e9ab4fb0 100644 --- a/Systems/upper-ecam.xml +++ b/Systems/upper-ecam.xml @@ -502,7 +502,7 @@ /fdm/jsbsim/fcs/flap-pos-deg - 0.0-198 + 0.0-20010.0-13515.0-9520.0-50 @@ -520,7 +520,7 @@
/fdm/jsbsim/fcs/flap-pos-deg - 0.0-198 + 0.0-20010.0-13515.0-9520.0-50 @@ -614,4 +614,42 @@ /ECAM/Upper/SlatY + + Slat Indicator + gain + 1.0 + + +
+ /fdm/jsbsim/fcs/slat-pos-deg + 0.0135 + 18.095 + 22.050 + 27.00 +
+
+ + 0 + /ECAM/Upper/SlatXtrans + + + + Slat Indicator + gain + 1.0 + + + + /fdm/jsbsim/fcs/slat-pos-deg + 0.0-43 + 18.0-29 + 22.0-15 + 27.00 +
+
+ + 0 + /ECAM/Upper/SlatYtrans +
+