From 23833547fff4f6a1320373a46c9a7f2216e755d3 Mon Sep 17 00:00:00 2001 From: legoboyvdlp R <legoboyvdlp@gmail.com> Date: Fri, 5 Jun 2020 21:56:05 +0100 Subject: [PATCH] RAT spinning animation --- Models/Fuselages/A320/fuselage.xml | 35 +++++++++++++++++++++++++++--- Systems/a320-hydraulic.xml | 15 +++++++++++++ 2 files changed, 47 insertions(+), 3 deletions(-) diff --git a/Models/Fuselages/A320/fuselage.xml b/Models/Fuselages/A320/fuselage.xml index 651f0246..c675b5f9 100644 --- a/Models/Fuselages/A320/fuselage.xml +++ b/Models/Fuselages/A320/fuselage.xml @@ -50,13 +50,19 @@ <object-name>RatDoorR</object-name> </effect> + <effect> + <inherits-from>Aircraft/A320-family/Models/Effects/reflection-chrome</inherits-from> + <object-name>Rat</object-name> + <object-name>RatSpinner</object-name> + </effect> + <!-- Animations --> <!-- Belly --> <!-- Ram Air Turbine --> <animation> - <name>Rudder Animation</name> + <name>RAT Door left</name> <type>rotate</type> <object-name>RatDoorL</object-name> <object-name>RatDoorL.Inner</object-name> @@ -73,7 +79,7 @@ </animation> <animation> - <name>Rudder Animation</name> + <name>RAT Door right</name> <type>rotate</type> <object-name>RatDoorR</object-name> <object-name>RatDoorR.Inner</object-name> @@ -90,7 +96,7 @@ </animation> <animation> - <name>Rudder Animation</name> + <name>RAT Deploy</name> <type>rotate</type> <object-name>RatSpinner</object-name> <object-name>Rat</object-name> @@ -109,6 +115,29 @@ </axis> </animation> + <animation> + <name>RAT Spin</name> + <type>spin</type> + <object-name>RatSpinner</object-name> + <property>systems/hydraulic/sources/rat/rat-speed-rpm</property> + <condition> + <greater-than> + <property>systems/hydraulic/sources/rat/arm-position</property> + <value>0.8</value> + </greater-than> + </condition> + <center> + <x-m>-2.66533</x-m> + <y-m>-1.64941</y-m> + <z-m>-2.79509</z-m> + </center> + <axis> + <x>1</x> + <y>0</y> + <z>0</z> + </axis> + </animation> + <!-- Flight Control Surfaces --> <!-- Rudder --> diff --git a/Systems/a320-hydraulic.xml b/Systems/a320-hydraulic.xml index f9aa2780..7daef0a9 100644 --- a/Systems/a320-hydraulic.xml +++ b/Systems/a320-hydraulic.xml @@ -126,6 +126,21 @@ </clipto> </fcs_function> + <fcs_function name="/systems/hydraulic/sources/rat/rat-speed-rpm"> + <function> + <table> + <independentVar lookup="row">/instrumentation/airspeed-indicator/indicated-speed-kt</independentVar> <!-- use this meantime so it can stall. But ADR failures will break RAT which is bad... --> + <tableData> + 50 0 + 85 150 + 90 2500 + 100 4800 + 350 6540 + </tableData> + </table> + </function> + </fcs_function> + <fcs_function name="/systems/hydraulic/sources/rat/source-psi"> <function> <ifthen>