diff --git a/Models/Instruments/ECAM/page-wheel.xml b/Models/Instruments/ECAM/page-wheel.xml index f1a40993..0291ddb2 100644 --- a/Models/Instruments/ECAM/page-wheel.xml +++ b/Models/Instruments/ECAM/page-wheel.xml @@ -94,6 +94,632 @@ </and> </condition> </layer> + + <layer> + <name>greentriangle2</name> + <w>50</w> + <h>25</h> + <texture> + <path>Aircraft/A320Family/Models/Instruments/ECAM/res/wheel-green-triangle.png</path> + <x1>0.0</x1> + <y1>0.0</y1> + <x2>1</x2> + <y2>1</y2> + </texture> + <emissive>true</emissive> + <transformations> + <transformation> + <type>y-shift</type> + <offset>45</offset> + </transformation> + <transformation> + <type>x-shift</type> + <offset>-80</offset> + </transformation> + </transformations> + <condition> + <and> + <equals> + <property>gear/gear[0]/position-norm</property> + <value>1</value> + </equals> + <equals> + <property>controls/lgciu[1]/mlgleft/isdownlock</property> + <value>1</value> + </equals> + </and> + </condition> + </layer> + + <layer> + <name>redtriangle2</name> + <w>50</w> + <h>25</h> + <texture> + <path>Aircraft/A320Family/Models/Instruments/ECAM/res/wheel-red-triangle.png</path> + <x1>0.0</x1> + <y1>0.0</y1> + <x2>1</x2> + <y2>1</y2> + </texture> + <emissive>true</emissive> + <transformations> + <transformation> + <type>y-shift</type> + <offset>45</offset> + </transformation> + <transformation> + <type>x-shift</type> + <offset>-80</offset> + </transformation> + </transformations> + <condition> + <and> + <less-than> + <property>/controls/lgciu[0]/mlgleftpos</property> + <value>0.99</value> + </less-than> + <greater-than> + <property>/controls/lgciu[0]/mlgleftpos</property> + <value>0.01</value> + </greater-than> + </and> + </condition> + </layer> + + <layer> + <name>greentriangle3</name> + <w>50</w> + <h>25</h> + <texture> + <path>Aircraft/A320Family/Models/Instruments/ECAM/res/wheel-green-triangle.png</path> + <x1>0.0</x1> + <y1>0.0</y1> + <x2>1</x2> + <y2>1</y2> + </texture> + <emissive>true</emissive> + <transformations> + <transformation> + <type>y-shift</type> + <offset>45</offset> + </transformation> + <transformation> + <type>x-shift</type> + <offset>80</offset> + </transformation> + </transformations> + <condition> + <and> + <equals> + <property>gear/gear[3]/position-norm</property> + <value>1</value> + </equals> + <equals> + <property>controls/lgciu[1]/mlgright/isdownlock</property> + <value>1</value> + </equals> + </and> + </condition> + </layer> + + <layer> + <name>redtriangle3</name> + <w>50</w> + <h>25</h> + <texture> + <path>Aircraft/A320Family/Models/Instruments/ECAM/res/wheel-red-triangle.png</path> + <x1>0.0</x1> + <y1>0.0</y1> + <x2>1</x2> + <y2>1</y2> + </texture> + <emissive>true</emissive> + <transformations> + <transformation> + <type>y-shift</type> + <offset>45</offset> + </transformation> + <transformation> + <type>x-shift</type> + <offset>80</offset> + </transformation> + </transformations> + <condition> + <and> + <less-than> + <property>/controls/lgciu[0]/mlgrightpos</property> + <value>0.99</value> + </less-than> + <greater-than> + <property>/controls/lgciu[0]/mlgrightpos</property> + <value>0.01</value> + </greater-than> + </and> + </condition> + </layer> + +<!-- ################################## Failed LGCIU #################################--> + <layer> + <name>greentriangle1fail</name> + <w>50</w> + <h>25</h> + <texture> + <path>Aircraft/A320Family/Models/Instruments/ECAM/res/wheel-amber-one-gr.png</path> + <x1>0.0</x1> + <y1>0.0</y1> + <x2>1</x2> + <y2>1</y2> + </texture> + <emissive>true</emissive> + <transformations> + <transformation> + <type>y-shift</type> + <offset>80</offset> + </transformation> + <transformation> + <type>x-shift</type> + <offset>0</offset> + </transformation> + </transformations> + <condition> + <and> + <equals> + <property>gear/gear[1]/position-norm</property> + <value>1</value> + </equals> + <equals> + <property>controls/lgciu[1]/nlg/isdownlock</property> + <value>1</value> + </equals> + <equals> + <property>controls/lgciu[0]/fail</property> + <value>1</value> + </equals> + </and> + </condition> + </layer> + + <layer> + <name>greentriangle2fail</name> + <w>50</w> + <h>25</h> + <texture> + <path>Aircraft/A320Family/Models/Instruments/ECAM/res/wheel-amber-two-gr.png</path> + <x1>0.0</x1> + <y1>0.0</y1> + <x2>1</x2> + <y2>1</y2> + </texture> + <emissive>true</emissive> + <transformations> + <transformation> + <type>y-shift</type> + <offset>80</offset> + </transformation> + <transformation> + <type>x-shift</type> + <offset>0</offset> + </transformation> + </transformations> + <condition> + <and> + <equals> + <property>gear/gear[1]/position-norm</property> + <value>1</value> + </equals> + <equals> + <property>controls/lgciu[1]/nlg/isdownlock</property> + <value>1</value> + </equals> + <equals> + <property>controls/lgciu[1]/fail</property> + <value>1</value> + </equals> + </and> + </condition> + </layer> + + <layer> + <name>redtriangle1fail</name> + <w>50</w> + <h>25</h> + <texture> + <path>Aircraft/A320Family/Models/Instruments/ECAM/res/wheel-amber-one-rd.png</path> + <x1>0.0</x1> + <y1>0.0</y1> + <x2>1</x2> + <y2>1</y2> + </texture> + <emissive>true</emissive> + <transformations> + <transformation> + <type>y-shift</type> + <offset>80</offset> + </transformation> + <transformation> + <type>x-shift</type> + <offset>0</offset> + </transformation> + </transformations> + <condition> + <and> + <less-than> + <property>/controls/lgciu[0]/nlgpos</property> + <value>0.99</value> + </less-than> + <greater-than> + <property>/controls/lgciu[0]/nlgpos</property> + <value>0.01</value> + </greater-than> + <equals> + <property>controls/lgciu[0]/fail</property> + <value>1</value> + </equals> + </and> + </condition> + </layer> + + <layer> + <name>redtriangle2fail</name> + <w>50</w> + <h>25</h> + <texture> + <path>Aircraft/A320Family/Models/Instruments/ECAM/res/wheel-amber-two-rd.png</path> + <x1>0.0</x1> + <y1>0.0</y1> + <x2>1</x2> + <y2>1</y2> + </texture> + <emissive>true</emissive> + <transformations> + <transformation> + <type>y-shift</type> + <offset>80</offset> + </transformation> + <transformation> + <type>x-shift</type> + <offset>0</offset> + </transformation> + </transformations> + <condition> + <and> + <less-than> + <property>/controls/lgciu[0]/nlgpos</property> + <value>0.99</value> + </less-than> + <greater-than> + <property>/controls/lgciu[0]/nlgpos</property> + <value>0.01</value> + </greater-than> + <equals> + <property>controls/lgciu[1]/fail</property> + <value>1</value> + </equals> + </and> + </condition> + </layer> + + <layer> + <name>greentriangle2onefailed</name> + <w>50</w> + <h>25</h> + <texture> + <path>Aircraft/A320Family/Models/Instruments/ECAM/res/wheel-amber-one-gr.png</path> + <x1>0.0</x1> + <y1>0.0</y1> + <x2>1</x2> + <y2>1</y2> + </texture> + <emissive>true</emissive> + <transformations> + <transformation> + <type>y-shift</type> + <offset>45</offset> + </transformation> + <transformation> + <type>x-shift</type> + <offset>-80</offset> + </transformation> + </transformations> + <condition> + <and> + <equals> + <property>gear/gear[0]/position-norm</property> + <value>1</value> + </equals> + <equals> + <property>controls/lgciu[1]/mlgright/isdownlock</property> + <value>1</value> + </equals> + <equals> + <property>/controls/lgciu[0]/fail</property> + <value>1</value> + </equals> + </and> + </condition> + </layer> + + <layer> + <name>greentriangle2twofailed</name> + <w>50</w> + <h>25</h> + <texture> + <path>Aircraft/A320Family/Models/Instruments/ECAM/res/wheel-amber-two-gr.png</path> + <x1>0.0</x1> + <y1>0.0</y1> + <x2>1</x2> + <y2>1</y2> + </texture> + <emissive>true</emissive> + <transformations> + <transformation> + <type>y-shift</type> + <offset>45</offset> + </transformation> + <transformation> + <type>x-shift</type> + <offset>-80</offset> + </transformation> + </transformations> + <condition> + <and> + <equals> + <property>gear/gear[0]/position-norm</property> + <value>1</value> + </equals> + <equals> + <property>controls/lgciu[1]/mlgright/isdownlock</property> + <value>1</value> + </equals> + <equals> + <property>/controls/lgciu[1]/fail</property> + <value>1</value> + </equals> + </and> + </condition> + </layer> + + <layer> + <name>redtriangle2onefailed</name> + <w>50</w> + <h>25</h> + <texture> + <path>Aircraft/A320Family/Models/Instruments/ECAM/res/wheel-amber-one-rd.png</path> + <x1>0.0</x1> + <y1>0.0</y1> + <x2>1</x2> + <y2>1</y2> + </texture> + <emissive>true</emissive> + <transformations> + <transformation> + <type>y-shift</type> + <offset>45</offset> + </transformation> + <transformation> + <type>x-shift</type> + <offset>-80</offset> + </transformation> + </transformations> + <condition> + <and> + <less-than> + <property>/controls/lgciu[0]/mlgleftpos</property> + <value>0.99</value> + </less-than> + <greater-than> + <property>/controls/lgciu[0]/mlgleftpos</property> + <value>0.01</value> + </greater-than> + <equals> + <property>/controls/lgciu[0]/fail</property> + <value>1</value> + </equals> + </and> + </condition> + </layer> + + <layer> + <name>redtriangle2twofailed</name> + <w>50</w> + <h>25</h> + <texture> + <path>Aircraft/A320Family/Models/Instruments/ECAM/res/wheel-amber-two-rd.png</path> + <x1>0.0</x1> + <y1>0.0</y1> + <x2>1</x2> + <y2>1</y2> + </texture> + <emissive>true</emissive> + <transformations> + <transformation> + <type>y-shift</type> + <offset>45</offset> + </transformation> + <transformation> + <type>x-shift</type> + <offset>-80</offset> + </transformation> + </transformations> + <condition> + <and> + <less-than> + <property>/controls/lgciu[0]/mlgleftpos</property> + <value>0.99</value> + </less-than> + <greater-than> + <property>/controls/lgciu[0]/mlgleftpos</property> + <value>0.01</value> + </greater-than> + <equals> + <property>/controls/lgciu[1]/fail</property> + <value>1</value> + </equals> + </and> + </condition> + </layer> + + <layer> + <name>greentriangle3onefailed</name> + <w>50</w> + <h>25</h> + <texture> + <path>Aircraft/A320Family/Models/Instruments/ECAM/res/wheel-amber-one-gr.png</path> + <x1>0.0</x1> + <y1>0.0</y1> + <x2>1</x2> + <y2>1</y2> + </texture> + <emissive>true</emissive> + <transformations> + <transformation> + <type>y-shift</type> + <offset>45</offset> + </transformation> + <transformation> + <type>x-shift</type> + <offset>80</offset> + </transformation> + </transformations> + <condition> + <and> + <equals> + <property>gear/gear[3]/position-norm</property> + <value>1</value> + </equals> + <equals> + <property>controls/lgciu[1]/mlgright/isdownlock</property> + <value>1</value> + </equals> + <equals> + <property>/controls/lgciu[0]/fail</property> + <value>1</value> + </equals> + </and> + </condition> + </layer> + + <layer> + <name>greentriangle3twofailed</name> + <w>50</w> + <h>25</h> + <texture> + <path>Aircraft/A320Family/Models/Instruments/ECAM/res/wheel-amber-two-gr.png</path> + <x1>0.0</x1> + <y1>0.0</y1> + <x2>1</x2> + <y2>1</y2> + </texture> + <emissive>true</emissive> + <transformations> + <transformation> + <type>y-shift</type> + <offset>45</offset> + </transformation> + <transformation> + <type>x-shift</type> + <offset>80</offset> + </transformation> + </transformations> + <condition> + <and> + <equals> + <property>gear/gear[3]/position-norm</property> + <value>1</value> + </equals> + <equals> + <property>controls/lgciu[1]/mlgright/isdownlock</property> + <value>1</value> + </equals> + <equals> + <property>/controls/lgciu[1]/fail</property> + <value>1</value> + </equals> + </and> + </condition> + </layer> + + <layer> + <name>redtriangle3onefailed</name> + <w>50</w> + <h>25</h> + <texture> + <path>Aircraft/A320Family/Models/Instruments/ECAM/res/wheel-amber-one-rd.png</path> + <x1>0.0</x1> + <y1>0.0</y1> + <x2>1</x2> + <y2>1</y2> + </texture> + <emissive>true</emissive> + <transformations> + <transformation> + <type>y-shift</type> + <offset>45</offset> + </transformation> + <transformation> + <type>x-shift</type> + <offset>80</offset> + </transformation> + </transformations> + <condition> + <and> + <less-than> + <property>/controls/lgciu[0]/mlgrightpos</property> + <value>0.99</value> + </less-than> + <greater-than> + <property>/controls/lgciu[0]/mlgrightpos</property> + <value>0.01</value> + </greater-than> + <equals> + <property>/controls/lgciu[0]/fail</property> + <value>1</value> + </equals> + </and> + </condition> + </layer> + + <layer> + <name>redtriangle3twofailed</name> + <w>50</w> + <h>25</h> + <texture> + <path>Aircraft/A320Family/Models/Instruments/ECAM/res/wheel-amber-two-rd.png</path> + <x1>0.0</x1> + <y1>0.0</y1> + <x2>1</x2> + <y2>1</y2> + </texture> + <emissive>true</emissive> + <transformations> + <transformation> + <type>y-shift</type> + <offset>45</offset> + </transformation> + <transformation> + <type>x-shift</type> + <offset>80</offset> + </transformation> + </transformations> + <condition> + <and> + <less-than> + <property>/controls/lgciu[0]/mlgrightpos</property> + <value>0.99</value> + </less-than> + <greater-than> + <property>/controls/lgciu[0]/mlgrightpos</property> + <value>0.01</value> + </greater-than> + <equals> + <property>/controls/lgciu[1]/fail</property> + <value>1</value> + </equals> + </and> + </condition> + </layer> + <!-- ################################## Bottom #################################--> <layer> diff --git a/Models/Instruments/ECAM/res/page-wheel.png b/Models/Instruments/ECAM/res/page-wheel.png index 9e6c871c..bc0c9e73 100644 Binary files a/Models/Instruments/ECAM/res/page-wheel.png and b/Models/Instruments/ECAM/res/page-wheel.png differ diff --git a/Models/Instruments/ECAM/res/wheel-amber-one-gr.png b/Models/Instruments/ECAM/res/wheel-amber-one-gr.png new file mode 100644 index 00000000..f47bc008 Binary files /dev/null and b/Models/Instruments/ECAM/res/wheel-amber-one-gr.png differ diff --git a/Models/Instruments/ECAM/res/wheel-amber-one-rd.png b/Models/Instruments/ECAM/res/wheel-amber-one-rd.png new file mode 100644 index 00000000..32785c60 Binary files /dev/null and b/Models/Instruments/ECAM/res/wheel-amber-one-rd.png differ diff --git a/Models/Instruments/ECAM/res/wheel-amber-two-gr.png b/Models/Instruments/ECAM/res/wheel-amber-two-gr.png new file mode 100644 index 00000000..607d00b3 Binary files /dev/null and b/Models/Instruments/ECAM/res/wheel-amber-two-gr.png differ diff --git a/Models/Instruments/ECAM/res/wheel-amber-two-rd.png b/Models/Instruments/ECAM/res/wheel-amber-two-rd.png new file mode 100644 index 00000000..de2f62d3 Binary files /dev/null and b/Models/Instruments/ECAM/res/wheel-amber-two-rd.png differ diff --git a/Nasal/LGCIU.nas b/Nasal/LGCIU.nas index bb14252a..64713f46 100644 --- a/Nasal/LGCIU.nas +++ b/Nasal/LGCIU.nas @@ -23,6 +23,7 @@ var lgciu_one_init = func { setprop("/controls/lgciu[0]/nws/nwsenabled",0); #0 = disabled 1 = enabled, must be disabled for push setprop("/controls/lgciu[0]/inuse",1); #the LGCIUs switch between eachother on each gear cycle. eg if one LGCIU fails put the gear down and bring them up again to reset setprop("/controls/lgciu[0]/hasbeenret",0); #has the gear been retracted with LGCIU1? + setprop("/controls/lgciu[0]/fail",0); #0 = no 1 = yes } var lgciu_two_init = func { @@ -46,6 +47,7 @@ var lgciu_two_init = func { setprop("/controls/lgciu[1]/nws/nwsenabled",0); #0 = disabled 1 = enabled, must be disabled for push setprop("/controls/lgciu[1]/inuse",0); #the LGCIUs switch between eachother on each gear cycle. eg if one LGCIU fails put the gear down and bring them up again to reset setprop("/controls/lgciu[1]/hasbeenret",0); #has the gear been retracted with LGCIU2? + setprop("/controls/lgciu[1]/fail",0); #0 = no 1 = yes }