Merge branch 'master' of github.com:FGMEMBERS/A320Family
|
@ -8,12 +8,12 @@
|
|||
<path>Aircraft/A320Family/Sounds/v2500-sound.xml</path>
|
||||
</sound>
|
||||
|
||||
<description>Airbus A319 (IAE V2500)</description>
|
||||
<description>Airbus A319-133 (IAE V2500)</description>
|
||||
<status>Flyable</status>
|
||||
<flight-model>jsb</flight-model>
|
||||
<aero>A319-200-IAE</aero>
|
||||
<aero>A319-100-IAE</aero>
|
||||
<model>
|
||||
<path>Aircraft/A320Family/Models/A319-200-IAE.xml</path>
|
||||
<path>Aircraft/A320Family/Models/A319-100-IAE.xml</path>
|
||||
<livery>
|
||||
<file>USAirwaysStar</file>
|
||||
</livery>
|
||||
|
@ -60,7 +60,7 @@
|
|||
<menubar>
|
||||
<default>
|
||||
<menu n="100">
|
||||
<label>Airbus A319-200</label>
|
||||
<label>Airbus A319-100</label>
|
||||
</menu>
|
||||
</default>
|
||||
</menubar>
|
||||
|
@ -83,6 +83,9 @@
|
|||
<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>
|
|
@ -9,7 +9,7 @@ xsi:noNamespaceSchemaLocation="http://jsbsim.sourceforge.net/JSBSim.xsd">
|
|||
<email> bicyus@gmail.com </email>
|
||||
<filecreationdate> 2012-02-15 </filecreationdate>
|
||||
<version> 0.99 </version>
|
||||
<description> Airbus A319-200 with IAE V2500 Engines </description>
|
||||
<description> Airbus A319-133 with IAE V2500 Engines </description>
|
||||
<note> Revised and fixed by Peter Brendt (jwocky) and Joshua Davidson (it0uchpods). Fork from the A320-Family aircraft project (Thanks to all authors) </note>
|
||||
<limitation></limitation>
|
||||
</fileheader>
|
|
@ -8,7 +8,7 @@
|
|||
<path>Aircraft/A320Family/Sounds/v2500-sound.xml</path>
|
||||
</sound>
|
||||
|
||||
<description>Airbus A320 (IAE V2500)</description>
|
||||
<description>Airbus A320-232 (IAE V2500)</description>
|
||||
<status>Flyable</status>
|
||||
<flight-model>jsb</flight-model>
|
||||
<aero>A320-200-IAE</aero>
|
||||
|
@ -79,6 +79,7 @@
|
|||
<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>
|
||||
</A320>
|
||||
<itaf>
|
||||
<file>Aircraft/A320Family/Nasal/it-autoflight.nas</file>
|
||||
|
|
|
@ -9,7 +9,7 @@ xsi:noNamespaceSchemaLocation="http://jsbsim.sourceforge.net/JSBSim.xsd">
|
|||
<email> bicyus@gmail.com </email>
|
||||
<filecreationdate> 2012-02-15 </filecreationdate>
|
||||
<version> 0.99 </version>
|
||||
<description> Airbus A320-200 with IAE V2500 Engines </description>
|
||||
<description> Airbus A320-232 with IAE V2500 Engines </description>
|
||||
<note> Revised and fixed by Peter Brendt (jwocky) and Joshua Davidson (it0uchpods). Fork from the A320-Family aircraft project (Thanks to all authors) </note>
|
||||
<limitation></limitation>
|
||||
</fileheader>
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
<path>Aircraft/A320Family/Sounds/v2500-sound.xml</path>
|
||||
</sound>
|
||||
|
||||
<description>Airbus A321 (IAE V2500)</description>
|
||||
<description>Airbus A321-231 (IAE V2500)</description>
|
||||
<status>Flyable</status>
|
||||
<flight-model>jsb</flight-model>
|
||||
<aero>A321-200-IAE</aero>
|
||||
|
@ -83,6 +83,9 @@
|
|||
<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>
|
||||
|
|
|
@ -9,7 +9,7 @@ xsi:noNamespaceSchemaLocation="http://jsbsim.sourceforge.net/JSBSim.xsd">
|
|||
<email> bicyus@gmail.com </email>
|
||||
<filecreationdate> 2012-02-15 </filecreationdate>
|
||||
<version> 0.99 </version>
|
||||
<description> Airbus A321-200 with IAE V2500 Engines </description>
|
||||
<description> Airbus A321-231 with IAE V2500 Engines </description>
|
||||
<note> Revised and fixed by Peter Brendt (jwocky) and Joshua Davidson (it0uchpods). Fork from the A320-Family aircraft project (Thanks to all authors) </note>
|
||||
<limitation></limitation>
|
||||
</fileheader>
|
||||
|
@ -409,7 +409,7 @@ YAW MOI_________3950000______23089847_______24848934
|
|||
|
||||
<propulsion>
|
||||
|
||||
<engine file="v2527_a5">
|
||||
<engine file="v2533_a5">
|
||||
<location unit="IN">
|
||||
<x> 620.0683 </x>
|
||||
<y> -226.575 </y>
|
||||
|
@ -437,7 +437,7 @@ YAW MOI_________3950000______23089847_______24848934
|
|||
</thruster>
|
||||
</engine>
|
||||
|
||||
<engine file="v2527_a5">
|
||||
<engine file="v2533_a5">
|
||||
<location unit="IN">
|
||||
<x> 620.00683 </x>
|
||||
<y> 226.575 </y>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
<flight-model>jsb</flight-model>
|
||||
<aero>ACJ-IAE</aero>
|
||||
<model>
|
||||
<path>Aircraft/A320Family/Models/A319-200-IAE.xml</path>
|
||||
<path>Aircraft/A320Family/Models/A319-100-IAE.xml</path>
|
||||
<livery>
|
||||
<file>USAirwaysStar</file>
|
||||
</livery>
|
||||
|
@ -83,6 +83,9 @@
|
|||
<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>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
|
||||
<PropertyList>
|
||||
<name>A319-200</name>
|
||||
<name>A319-100</name>
|
||||
<path>empty.ac</path> <!-- Livery system on MP multimodel -->
|
||||
|
||||
<offsets>
|
|
@ -2239,6 +2239,19 @@
|
|||
<z>0.0</z>
|
||||
</axis>
|
||||
</animation>
|
||||
|
||||
<!--<animation>
|
||||
<type>pick</type>
|
||||
<object-name>sidestick_button1</object-name>
|
||||
<action>
|
||||
<button>0</button>
|
||||
<binding>
|
||||
<command>property-toggle</command>
|
||||
<property>/it-autoflight/input/ap1</property>
|
||||
<property>/it-autoflight/input/ap2</property>
|
||||
</binding>
|
||||
</action>
|
||||
</animation>-->
|
||||
|
||||
<animation>
|
||||
<type>rotate</type>
|
||||
|
@ -2405,7 +2418,20 @@
|
|||
<z>0.0</z>
|
||||
</axis>
|
||||
</animation>
|
||||
|
||||
|
||||
<!--<animation>
|
||||
<type>pick</type>
|
||||
<object-name>sidestick_apdiscor</object-name>
|
||||
<action>
|
||||
<button>0</button>
|
||||
<binding>
|
||||
<command>property-toggle</command>
|
||||
<property>/it-autoflight/input/ap1</property>
|
||||
<property>/it-autoflight/input/ap2</property>
|
||||
</binding>
|
||||
</action>
|
||||
</animation>-->
|
||||
|
||||
<animation>
|
||||
<type>rotate</type>
|
||||
<object-name>sidestick_2</object-name>
|
||||
|
|
|
@ -23,6 +23,77 @@
|
|||
<emissive>true</emissive>
|
||||
</layer>
|
||||
|
||||
<layer>
|
||||
<name>greentriangle1</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>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>
|
||||
</and>
|
||||
</condition>
|
||||
</layer>
|
||||
|
||||
<layer>
|
||||
<name>redtriangle1</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>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>
|
||||
</and>
|
||||
</condition>
|
||||
</layer>
|
||||
<!-- ################################## Bottom #################################-->
|
||||
|
||||
<layer>
|
||||
|
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 22 KiB |
BIN
Models/Instruments/ECAM/res/page-wheelold.png
Normal file
After Width: | Height: | Size: 24 KiB |
BIN
Models/Instruments/ECAM/res/wheel-green-triangle.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
Models/Instruments/ECAM/res/wheel-red-triangle.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
Models/Instruments/Upper-ECAM/resIAE/flaps.png
Normal file
After Width: | Height: | Size: 5.9 KiB |
BIN
Models/Liveries/A319/AAL.png
Normal file
After Width: | Height: | Size: 446 KiB |
12
Models/Liveries/A319/AAL.xml
Normal file
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
|
||||
<PropertyList>
|
||||
<sim>
|
||||
<model>
|
||||
<livery>
|
||||
<name>American Airlines (N840AW)</name>
|
||||
<texture>Liveries/A319/AAL.png</texture>
|
||||
</livery>
|
||||
</model>
|
||||
</sim>
|
||||
</PropertyList>
|
BIN
Models/Liveries/A319/ADR.png
Normal file
After Width: | Height: | Size: 480 KiB |
12
Models/Liveries/A319/ADR.xml
Normal file
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
|
||||
<PropertyList>
|
||||
<sim>
|
||||
<model>
|
||||
<livery>
|
||||
<name>Adria Airways (S5-AAP)</name>
|
||||
<texture>Liveries/A319/ADR.png</texture>
|
||||
</livery>
|
||||
</model>
|
||||
</sim>
|
||||
</PropertyList>
|
BIN
Models/Liveries/A319/AEE.png
Normal file
After Width: | Height: | Size: 419 KiB |
12
Models/Liveries/A319/AEE.xml
Normal file
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
|
||||
<PropertyList>
|
||||
<sim>
|
||||
<model>
|
||||
<livery>
|
||||
<name>Aegean Airlines (SX-DGF)</name>
|
||||
<texture>Liveries/A319/AEE.png</texture>
|
||||
</livery>
|
||||
</model>
|
||||
</sim>
|
||||
</PropertyList>
|
BIN
Models/Liveries/A319/AMU.png
Normal file
After Width: | Height: | Size: 440 KiB |
12
Models/Liveries/A319/AMU.xml
Normal 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>
|
BIN
Models/Liveries/A319/ASL.png
Normal file
After Width: | Height: | Size: 433 KiB |
12
Models/Liveries/A319/ASL.xml
Normal file
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
|
||||
<PropertyList>
|
||||
<sim>
|
||||
<model>
|
||||
<livery>
|
||||
<name>Air Serbia (YU-APF)</name>
|
||||
<texture>Liveries/A319/ASL.png</texture>
|
||||
</livery>
|
||||
</model>
|
||||
</sim>
|
||||
</PropertyList>
|
BIN
Models/Liveries/A319/AVA.png
Normal file
After Width: | Height: | Size: 436 KiB |
12
Models/Liveries/A319/AVA.xml
Normal file
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
|
||||
<PropertyList>
|
||||
<sim>
|
||||
<model>
|
||||
<livery>
|
||||
<name>Avianca (N730AV)</name>
|
||||
<texture>Liveries/A319/AVA.png</texture>
|
||||
</livery>
|
||||
</model>
|
||||
</sim>
|
||||
</PropertyList>
|
BIN
Models/Liveries/A319/BAW.png
Normal file
After Width: | Height: | Size: 440 KiB |
12
Models/Liveries/A319/BAW.xml
Normal file
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
|
||||
<PropertyList>
|
||||
<sim>
|
||||
<model>
|
||||
<livery>
|
||||
<name>British Airways (G-DBCK)</name>
|
||||
<texture>Liveries/A319/BAW.png</texture>
|
||||
</livery>
|
||||
</model>
|
||||
</sim>
|
||||
</PropertyList>
|
BIN
Models/Liveries/A319/CBJ.png
Normal file
After Width: | Height: | Size: 489 KiB |
12
Models/Liveries/A319/CBJ.xml
Normal file
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
|
||||
<PropertyList>
|
||||
<sim>
|
||||
<model>
|
||||
<livery>
|
||||
<name>Beijing Capital Airlines (B-6416)</name>
|
||||
<texture>Liveries/A319/CBJ.png</texture>
|
||||
</livery>
|
||||
</model>
|
||||
</sim>
|
||||
</PropertyList>
|
BIN
Models/Liveries/A319/CCA.png
Normal file
After Width: | Height: | Size: 447 KiB |
12
Models/Liveries/A319/CCA.xml
Normal file
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
|
||||
<PropertyList>
|
||||
<sim>
|
||||
<model>
|
||||
<livery>
|
||||
<name>Air China (B-2616)</name>
|
||||
<texture>Liveries/A319/CCA.png</texture>
|
||||
</livery>
|
||||
</model>
|
||||
</sim>
|
||||
</PropertyList>
|
BIN
Models/Liveries/A319/KZR.png
Normal file
After Width: | Height: | Size: 483 KiB |
12
Models/Liveries/A319/KZR.xml
Normal file
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
|
||||
<PropertyList>
|
||||
<sim>
|
||||
<model>
|
||||
<livery>
|
||||
<name>Air Astana (P4-YAS)</name>
|
||||
<texture>Liveries/A319/KZR.png</texture>
|
||||
</livery>
|
||||
</model>
|
||||
</sim>
|
||||
</PropertyList>
|
207
Nasal/LGCIU.nas
Normal file
|
@ -0,0 +1,207 @@
|
|||
#### A320 Landing Gear System ####
|
||||
#### Jonathan Redpath ####
|
||||
#### v.0.2 ####
|
||||
|
||||
var lgciu_one_init = func {
|
||||
print("LGCIU No 1: Initializing");
|
||||
setprop("controls/lgciu[0]/mlgleftpos",1); #0 = retracted, 1 = extended
|
||||
setprop("controls/lgciu[0]/mlgrightpos",1); #0 = retracted, 1 = extended
|
||||
setprop("controls/lgciu[0]/nlgpos",1); #0 = retracted, 1 = extended
|
||||
setprop("/controls/lgciu[0]/doors/mlgleft",0); #0 = closed, 1 = open
|
||||
setprop("controls/lgciu[0]/doors/mlgright",0); #0 = closed, 1 = open
|
||||
setprop("controls/lgciu[0]/doors/nlg",0); #0 = closed, 1 = open
|
||||
setprop("/controls/lgciu[0]/gearlever",1); #0 = retracted, 1 = extended
|
||||
print("L/G SYS: Gears and Doors Set");
|
||||
setprop("/controls/lgciu[0]/mlgleft/isdownlock",1); #0 = no, 1 = yes
|
||||
setprop("/controls/lgciu[0]/mlgright/isdownlock",1); #0 = no, 1 = yes
|
||||
setprop("/controls/lgciu[0]/nlg/isdownlock",1); #0 = no, 1 = yes
|
||||
setprop("/controls/lgciu[0]/mlgleft/isuplock",0); #0 = no, 1 = yes
|
||||
setprop("/controls/lgciu[0]/mlgright/isuplock",0); #0 = no, 1 = yes
|
||||
setprop("/controls/lgciu[0]/nlg/isuplock",0); #0 = no, 1 = yes
|
||||
print("L/G SYS: Uplock / Downlock System Enabled");
|
||||
setprop("/controls/lgciu[0]/hyd/greensupply",0); #0 = no, 1 = yes presently no supply as green pump is off
|
||||
print("L/G SYS: Hydraulics Initialized");
|
||||
setprop("/controls/lgciu[0]/wow/isongroundl",1); #0 = no, 1 = yes
|
||||
setprop("/controls/lgciu[0]/wow/isongroundn",1); #0 = no, 1 = yes
|
||||
setprop("/controls/lgciu[0]/wow/isongroundr",1); #0 = no, 1 = yes
|
||||
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?
|
||||
print("L/G SYS: System Settings Initialized");
|
||||
print("LGCIU No 1 Loaded!");
|
||||
}
|
||||
|
||||
var lgciu_two_init = func {
|
||||
print("LGCIU No 1: Initializing");
|
||||
setprop("controls/lgciu[1]/mlgleftpos",1); #0 = retracted, 1 = extended
|
||||
setprop("controls/lgciu[1]/mlgrightpos",1); #0 = retracted, 1 = extended
|
||||
setprop("controls/lgciu[1]/nlgpos",1); #0 = retracted, 1 = extended
|
||||
setprop("/controls/lgciu[1]/doors/mlgleft",0); #0 = closed, 1 = open
|
||||
setprop("controls/lgciu[1]/doors/mlgright",0); #0 = closed, 1 = open
|
||||
setprop("controls/lgciu[1]/doors/nlg",0); #0 = closed, 1 = open
|
||||
setprop("/controls/lgciu[1]/gearlever",1); #0 = retracted, 1 = extended
|
||||
print("L/G SYS: Gears and Doors Set");
|
||||
setprop("/controls/lgciu[1]/mlgleft/isdownlock",1); #0 = no, 1 = yes
|
||||
setprop("/controls/lgciu[1]/mlgright/isdownlock",1); #0 = no, 1 = yes
|
||||
setprop("/controls/lgciu[1]/nlg/isdownlock",1); #0 = no, 1 = yes
|
||||
setprop("/controls/lgciu[1]/mlgleft/isuplock",0); #0 = no, 1 = yes
|
||||
setprop("/controls/lgciu[1]/mlgright/isuplock",0); #0 = no, 1 = yes
|
||||
setprop("/controls/lgciu[1]/nlg/isuplock",0); #0 = no, 1 = yes
|
||||
print("L/G SYS: Uplock / Downlock System Enabled");
|
||||
setprop("/controls/lgciu[1]/hyd/greensupply",0); #0 = no, 1 = yes presently no supply as green pump is off
|
||||
print("L/G SYS: Hydraulics Initialized");
|
||||
setprop("/controls/lgciu[1]/wow/isongroundl",1); #0 = no, 1 = yes
|
||||
setprop("/controls/lgciu[1]/wow/isongroundn",1); #0 = no, 1 = yes
|
||||
setprop("/controls/lgciu[1]/wow/isongroundr",1); #0 = no, 1 = yes
|
||||
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?
|
||||
print("L/G SYS: System Settings Initialized");
|
||||
print("LGCIU No 2: Loaded!");
|
||||
}
|
||||
|
||||
|
||||
# Initialize Landing Gear Control and Indication Unit
|
||||
setlistener("/sim/signals/fdm-initialized", func {
|
||||
print("Landing Gear System: Initializing");
|
||||
lgciu_one_init();
|
||||
lgciu_two_init();
|
||||
});
|
||||
|
||||
### Left MLG compressor sensor to check if we are on the ground ###
|
||||
setlistener("/gear/gear[0]/wow", func {
|
||||
var wowmlgl = getprop("/gear/gear[0]/wow");
|
||||
if (wowmlgl == 0) {
|
||||
setprop("/controls/lgciu[0]/wow/isongroundl",0);
|
||||
setprop("/controls/lgciu[1]/wow/isongroundl",0);
|
||||
} else if (wowmlgl == 1) {
|
||||
setprop("/controls/lgciu[0]/wow/isongroundl",1);
|
||||
setprop("/controls/lgciu[1]/wow/isongroundl",1);
|
||||
}
|
||||
});
|
||||
|
||||
### Nose MLG compressor sensor to check if we are on the ground ###
|
||||
setlistener("/gear/gear[1]/wow", func {
|
||||
var wowmlgn = getprop("/gear/gear[1]/wow");
|
||||
if (wowmlgn == 0) {
|
||||
setprop("/controls/lgciu[0]/wow/isongroundn",0);
|
||||
setprop("/controls/lgciu[1]/wow/isongroundn",0);
|
||||
} else if (wowmlgn == 1) {
|
||||
setprop("/controls/lgciu[0]/wow/isongroundn",1);
|
||||
setprop("/controls/lgciu[1]/wow/isongroundn",1);
|
||||
}
|
||||
});
|
||||
|
||||
### Right MLG compressor sensor to check if we are on the ground ###
|
||||
setlistener("/gear/gear[2]/wow", func {
|
||||
var wowmlgr = getprop("/gear/gear[2]/wow");
|
||||
if (wowmlgr == 0) {
|
||||
setprop("/controls/lgciu[0]/wow/isongroundr",0);
|
||||
setprop("/controls/lgciu[1]/wow/isongroundr",0);
|
||||
} else if (wowmlgr == 1) {
|
||||
setprop("/controls/lgciu[0]/wow/isongroundr",1);
|
||||
setprop("/controls/lgciu[1]/wow/isongroundr",1);
|
||||
}
|
||||
});
|
||||
|
||||
### Interpolate MLG and NLG so that they take 8 seconds to move positions ###
|
||||
setlistener("/controls/gear/gear-down", func {
|
||||
var gr = getprop("/controls/gear/gear-down");
|
||||
var mlgl = getprop("/controls/lgciu[0]/mlgleftpos");
|
||||
var mlgr = getprop("/controls/lgciu[0]/mlgrightpos");
|
||||
var mlgl2 = getprop("/controls/lgciu[1]/mlgleftpos");
|
||||
var mlgr2 = getprop("/controls/lgciu[1]/mlgrightpos");
|
||||
var nlg = getprop("/controls/lgciu[0]/nlgpos");
|
||||
var nlg2 = getprop("/controls/lgciu[1]/nlgpos");
|
||||
var inuseno1 = getprop("/controls/lgciu[0]/inuse");
|
||||
var inuseno2 = getprop("/controls/lgciu[1]/inuse");
|
||||
if ((gr == 1) and (inuseno1 == 1)) {
|
||||
interpolate("/controls/lgciu[0]/mlgleftpos", 1, 10);
|
||||
interpolate("/controls/lgciu[0]/mlgrightpos", 1, 10);
|
||||
interpolate("/controls/lgciu[0]/nlgpos", 1, 10);
|
||||
setprop("/controls/lgciu[1]/mlgleftpos",1);
|
||||
setprop("/controls/lgciu[1]/mlgrightpos",1);
|
||||
setprop("/controls/lgciu[1]/nlgpos",1);
|
||||
} else if ((gr == 1) and (inuseno2 == 1)) {
|
||||
interpolate("/controls/lgciu[1]/mlgleftpos", 1, 10);
|
||||
interpolate("/controls/lgciu[1]/mlgrightpos", 1, 10);
|
||||
interpolate("/controls/lgciu[1]/nlgpos", 1, 10);
|
||||
setprop("/controls/lgciu[0]/mlgleftpos",1);
|
||||
setprop("/controls/lgciu[0]/mlgrightpos",1);
|
||||
setprop("/controls/lgciu[0]/nlgpos",1);
|
||||
} else if ((gr == 0) and (inuseno1 == 1)) {
|
||||
interpolate("/controls/lgciu[0]/mlgleftpos", 0, 10);
|
||||
interpolate("/controls/lgciu[0]/mlgrightpos", 0, 10);
|
||||
interpolate("/controls/lgciu[0]/nlgpos", 0, 10);
|
||||
setprop("/controls/lgciu[1]/mlgleftpos",0);
|
||||
setprop("/controls/lgciu[1]/mlgrightpos",0);
|
||||
setprop("/controls/lgciu[1]/nlgpos",0);
|
||||
} else if ((gr == 0) and (inuseno2 == 1)) {
|
||||
interpolate("/controls/lgciu[1]/mlgleftpos", 0, 10);
|
||||
interpolate("/controls/lgciu[1]/mlgrightpos", 0, 10);
|
||||
interpolate("/controls/lgciu[1]/nlgpos", 0, 10);
|
||||
setprop("/controls/lgciu[0]/mlgleftpos",0);
|
||||
setprop("/controls/lgciu[0]/mlgrightpos",0);
|
||||
setprop("/controls/lgciu[0]/nlgpos",0);
|
||||
}
|
||||
});
|
||||
|
||||
### Checking the Green Hydraulic System ###
|
||||
#var checkgreen = func {
|
||||
setlistener("/controls/gear/gear-down", func {
|
||||
#var psigrn = getprop("/hydraulics/green/psi"); it0uchpods, please enable whenever hydraulic system is available
|
||||
var spd = getprop("/velocities/airspeed-kt");
|
||||
#if ((psigrn < 2000) or (spd > 261)) { see above line where psigrn is defined
|
||||
if (spd > 261) {
|
||||
setprop("/controls/gear/gear-down",0);
|
||||
screen.log.write("Hydraulic Safety Valve was disconnected at 260 kts; cannot move gear!", 1, 1, 1);
|
||||
}
|
||||
});
|
||||
|
||||
### Switching between LGCIUS ###
|
||||
|
||||
# Putting the Gear Up
|
||||
setlistener("/controls/gear/gear-down", func {
|
||||
var inuse1 = getprop("/controls/lgciu[0]/inuse");
|
||||
var inuse2 = getprop("/controls/lgciu[1]/inuse");
|
||||
var isgearupordown = getprop("/controls/gear/gear-down");
|
||||
var hydsupp = getprop("/controls/lgciu[0]/hyd/greensupply");
|
||||
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
|
||||
|
||||
} 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[1]/gearlever",0); #0 = retracted, 1 = extended
|
||||
} else {
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
# Putting the Gear Down Again
|
||||
setlistener("/controls/gear/gear-down", func {
|
||||
var inuse1 = getprop("/controls/lgciu[0]/inuse");
|
||||
var inuse2 = getprop("/controls/lgciu[1]/inuse");
|
||||
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");
|
||||
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]/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[1]/gearlever",1); #0 = retracted, 1 = extended
|
||||
} else {
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
@ -20,6 +20,11 @@ var hyd_init = func {
|
|||
setprop("/hydraulics/ratextended",0);
|
||||
setprop("/hydraulics/ratmanguard",0);
|
||||
setprop("/hydraulics/ratmanext",0);
|
||||
setprop("/hydraulics/ratextended",0);
|
||||
setprop("/hydraulics/ratmanguard",0);
|
||||
setprop("/hydraulics/ratelecguard",0);
|
||||
setprop("/hydraulics/ratelecconnect",0);
|
||||
setprop("/hydraulics/ratmanext",0);
|
||||
print("Hydraulics: PTU and RAT Initialized");
|
||||
setprop("/hydraulics/greenpsi","0");
|
||||
setprop("/hydraulics/bluepsi","0");
|
||||
|
|
|
@ -97,7 +97,7 @@ aircraft.rain.init();
|
|||
# seatbelt/no smoking sign triggers
|
||||
setlistener("controls/switches/seatbelt-sign", func
|
||||
{
|
||||
props.globals.getNode("sim/sound/seatbelt-sign").setBoolValue(1);
|
||||
setprop("/sim/sound/seatbelt-sign",1);
|
||||
|
||||
settimer(func
|
||||
{
|
||||
|
|
BIN
Paintkit/AAL.xcf
Normal file
BIN
Paintkit/ADR.xcf
Normal file
BIN
Paintkit/AEE.xcf
Normal file
BIN
Paintkit/AMU.xcf
Normal file
BIN
Paintkit/ASL.xcf
Normal file
BIN
Paintkit/AVA.xcf
Normal file
BIN
Paintkit/Air China.xcf
Normal file
BIN
Paintkit/BAW.xcf
Normal file
BIN
Paintkit/CBJ.xcf
Normal file
BIN
Paintkit/KZR.xcf
Normal file
|
@ -40,6 +40,7 @@
|
|||
|
||||
<!-- Retard Warning -->
|
||||
|
||||
|
||||
<retard>
|
||||
<name>retard</name>
|
||||
<path>Aircraft/A320Family/Sounds/GPWS/retard.wav</path>
|
||||
|
|