Merge remote-tracking branch 'refs/remotes/it0uchpods/master'

This commit is contained in:
Suleman Siddiqui 2016-12-29 23:59:07 +08:00
commit 4c50ffdb77
25 changed files with 723 additions and 9 deletions

View file

@ -79,13 +79,12 @@
<file>Aircraft/A320Family/Nasal/efis.nas</file>
<file>Aircraft/A320Family/Nasal/PFD_FMA.nas</file>
<file>Aircraft/A320Family/Nasal/fctl.nas</file>
<file>Aircraft/A320Family/Nasal/LGCIU.nas</file> <!-- it0uchpods please leave this here! -->
</A320>
<itaf>
<file>Aircraft/A320Family/Nasal/it-autoflight.nas</file>
</itaf>
<lgciu>
<file>Aircraft/A320Family/Nasal/LGCIU.nas</file>
</lgciu>
<thrust>
<file>Aircraft/A320Family/Nasal/thrust.nas</file>
</thrust>

View file

@ -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>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 440 KiB

View file

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8" ?>
<PropertyList>
<sim>
<model>
<livery>
<name>Air Macau (B-MAO)</name>
<texture>Liveries/A319/AMU.png</texture>
</livery>
</model>
</sim>
</PropertyList>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 440 KiB

After

Width:  |  Height:  |  Size: 440 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 457 KiB

View file

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8" ?>
<PropertyList>
<sim>
<model>
<livery>
<name>China Eastern (B-8017)</name>
<texture>Liveries/A319/CES.png</texture>
</livery>
</model>
</sim>
</PropertyList>

Binary file not shown.

After

Width:  |  Height:  |  Size: 442 KiB

View file

@ -4,8 +4,8 @@
<sim>
<model>
<livery>
<name>Germanwings</name>
<texture>Liveries/A319/GermanWings.png</texture>
<name>GermanWings (D-AGWZ)</name>
<texture>Liveries/A319/GWI.png</texture>
</livery>
</model>
</sim>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 731 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 418 KiB

View file

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8" ?>
<PropertyList>
<sim>
<model>
<livery>
<name>Royal Jordanian OneWorld (JY-AYP)</name>
<texture>Liveries/A319/RJA-oneworld.png</texture>
</livery>
</model>
</sim>
</PropertyList>

Binary file not shown.

After

Width:  |  Height:  |  Size: 394 KiB

View file

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8" ?>
<PropertyList>
<sim>
<model>
<livery>
<name>Scandinavian Airlines (OY-KBT)</name>
<texture>Liveries/A319/SAS.png</texture>
</livery>
</model>
</sim>
</PropertyList>

View file

@ -23,6 +23,8 @@ 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
setprop("/controls/lgciu[0]/emermanext",0); #0 = no 1 = extended can only be retracted if green hyd is available
}
var lgciu_two_init = func {
@ -46,6 +48,9 @@ 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
setprop("/controls/lgciu[1]/emermanext",0); #0 = no 1 = extended can only be retracted if green hyd is available
}
@ -158,11 +163,13 @@ if ((inuse1 == 1) and (isgearupordown == 0) and (hydsupp == 1)) {
setprop("/controls/lgciu[0]/hasbeenret",1); #we have put gear up on lgciu no 1
setprop("/controls/lgciu[0]/inuse",1); #we want to keep active LGCIU on no 1
setprop("/controls/lgciu[0]/gearlever",0); #0 = retracted, 1 = extended
setprop("/controls/lgciu[1]/gearlever",0); #0 = retracted, 1 = extended
} else {
if ((inuse2 == 1) and (isgearupordown == 0) and (hydsupp == 1)) {
setprop("/controls/lgciu[1]/hasbeenret",1); #we have put gear up on lgciu no 2
setprop("/controls/lgciu[1]/inuse",1); #we want to keep active LGCIU on no 2
setprop("/controls/lgciu[0]/gearlever",0); #0 = retracted, 1 = extended
setprop("/controls/lgciu[1]/gearlever",0); #0 = retracted, 1 = extended
} else {
}
@ -177,19 +184,53 @@ var hasbeen1 = getprop("/controls/lgciu[0]/hasbeenret");
var hasbeen2 = getprop("/controls/lgciu[1]/hasbeenret");
var isgearupordown = getprop("/controls/gear/gear-down");
var hydsupp = getprop("/controls/lgciu[0]/hyd/greensupply");
var no1fail = getprop("/controls/lgciu[0]/fail");
var no2fail = getprop("/controls/lgciu[1]/fail");
if ((inuse1 == 1) and (isgearupordown == 1) and (hasbeen1 == 1) and (hydsupp == 1)) {
setprop("/controls/lgciu[0]/hasbeenret",0); #reset retraction sensor
setprop("/controls/lgciu[0]/inuse",0); #we want to switch to no 2 after putting the gear down
setprop("/controls/lgciu[1]/inuse",1);
setprop("/controls/lgciu[0]/gearlever",1); #0 = retracted, 1 = extended
} else {
if ((inuse2 == 1) and (isgearupordown == 1) and (hasbeen2 == 1) and (hydsupp == 1)) {
setprop("/controls/lgciu[1]/gearlever",1); #0 = retracted, 1 = extended
} else if ((inuse2 == 1) and (isgearupordown == 1) and (hasbeen2 == 1) and (hydsupp == 1)) {
setprop("/controls/lgciu[1]/hasbeenret",0); #reset retraction sensor
setprop("/controls/lgciu[0]/inuse",1); #we want to switch to no 1 after putting the gear down
setprop("/controls/lgciu[1]/inuse",0);
setprop("/controls/lgciu[0]/gearlever",1); #0 = retracted, 1 = extended
setprop("/controls/lgciu[1]/gearlever",1); #0 = retracted, 1 = extended
} else if ((inuse1 == 1) and isgearupordown == 1) and (hasbeen1 == 1) and (hydsupp ==1) and (no2fail == 1) {
setprop("/controls/lgciu[0]/hasbeenret",0); #reset retraction sensor
setprop("/controls/lgciu[0]/inuse",1); #we want to switch to no 2 after putting the gear down but we cant because it is failed
setprop("/controls/lgciu[1]/inuse",0);
setprop("/controls/lgciu[0]/gearlever",1); #0 = retracted, 1 = extended
setprop("/controls/lgciu[1]/gearlever",1); #0 = retracted, 1 = extended
} else if ((inuse1 == 2) and isgearupordown == 1) and (hasbeen2 == 1) and (hydsupp ==1) and (no1fail == 1) {
setprop("/controls/lgciu[0]/hasbeenret",0); #reset retraction sensor
setprop("/controls/lgciu[1]/inuse",1); #we want to switch to no 1 after putting the gear down but we cant because it is failed
setprop("/controls/lgciu[0]/inuse",0);
setprop("/controls/lgciu[0]/gearlever",1); #0 = retracted, 1 = extended
setprop("/controls/lgciu[1]/gearlever",1); #0 = retracted, 1 = extended
} else {
}
}
});
# No 1 failed
setlistener("/controls/lgciu[0]/fail", func {
var no1fail = getprop("/controls/lgciu[0]/fail");
if (no1fail == 1) {
setprop("/controls/lgciu[0]/inuse",0);
setprop("/controls/lgciu[1]/inuse",1);
} else {
print("LGCIU No 1... Serviceable!");
}
});
# No 2 failed
setlistener("/controls/lgciu[1]/fail", func {
var no2fail = getprop("/controls/lgciu[1]/fail");
if (no2fail == 1) {
setprop("/controls/lgciu[1]/inuse",0);
setprop("/controls/lgciu[0]/inuse",1);
} else {
print("LGCIU No 2... Serviceable!");
}
});

Binary file not shown.

BIN
Paintkit/CES.xcf Normal file

Binary file not shown.

BIN
Paintkit/GWI.xcf Normal file

Binary file not shown.

BIN
Paintkit/RJA-oneworld.xcf Normal file

Binary file not shown.

BIN
Paintkit/SAS.xcf Normal file

Binary file not shown.