diff --git a/A320-main.xml b/A320-main.xml index c4f7d5a6..960330c2 100644 --- a/A320-main.xml +++ b/A320-main.xml @@ -1451,28 +1451,6 @@ - - PAGE UP - Throttle Increase - - nasal - - - - - PAGE DN - Throttle Decrease - - nasal - - - 1 Captain View/Elevator Trim Up @@ -1531,8 +1509,7 @@ nasal @@ -1659,8 +1636,7 @@ nasal diff --git a/Models/A320-100-CFM.xml b/Models/A320-100-CFM.xml index 476b99f6..81ffd2c3 100644 --- a/Models/A320-100-CFM.xml +++ b/Models/A320-100-CFM.xml @@ -305,86 +305,86 @@ - - - Aircraft/Generic/Effects/tyre-smoke-nose.xml - tyre-smoke-n - - 7.83 - 0 - -3.9669424 - - - - - Aircraft/Generic/Effects/tyre-smoke-port.xml - tyre-smoke-p - - 20.3180764 - -3.795 - -3.9669424 - - - - - Aircraft/Generic/Effects/tyre-smoke-stbd.xml - tyre-smoke-s - - 20.3180764 - 3.795 - -3.9669424 - - - - - Aircraft/Generic/Effects/rain-nose.xml - rain-splash-n - - 7.83 - 0 - -3.9669424 - - - - - Aircraft/Generic/Effects/rain-port.xml - rain-splash-p - - 20.3180764 - -3.795 - -3.9669424 - - - - - Aircraft/Generic/Effects/rain-stbd.xml - rain-splash-s - - 20.3180764 - 3.795 - -3.9669424 - - - - - Aircraft/A320-family/Models/Effects/tire-smoke-left.xml - tire-smoke-l + + + Aircraft/Generic/Effects/tyre-smoke-nose.xml + tyre-smoke-n + + 7.83 + 0 + -3.9669424 + + + + + Aircraft/Generic/Effects/tyre-smoke-port.xml + tyre-smoke-p 20.3180764 -3.795 -3.9669424 - - - - Aircraft/A320-family/Models/Effects/tire-smoke-right.xml - tire-smoke-r + + + + Aircraft/Generic/Effects/tyre-smoke-stbd.xml + tyre-smoke-s 20.3180764 3.795 -3.9669424 - + + + + Aircraft/Generic/Effects/rain-nose.xml + rain-splash-n + + 7.83 + 0 + -3.9669424 + + + + + Aircraft/Generic/Effects/rain-port.xml + rain-splash-p + + 20.3180764 + -3.795 + -3.9669424 + + + + + Aircraft/Generic/Effects/rain-stbd.xml + rain-splash-s + + 20.3180764 + 3.795 + -3.9669424 + + + + + Aircraft/A320-family/Models/Effects/tire-smoke-left.xml + tire-smoke-l + + 20.3180764 + -3.795 + -3.9669424 + + + + + Aircraft/A320-family/Models/Effects/tire-smoke-right.xml + tire-smoke-r + + 20.3180764 + 3.795 + -3.9669424 + + @@ -399,40 +399,40 @@ - - Firetruck1 - Models/Airport/Vehicle/hoskosh-ti-1500.ac - - 60.0 - 10.0 - -4.4 - - - - - Firetruck2 - Models/Airport/Vehicle/hoskosh-ti-1500.ac - - 80.0 - -8.0 - -4.4 - - - - - select - Firetruck1 - Firetruck2 - - - sim/animation/fire-services - - velocities/groundspeed-kt - 40 - - - - + + Firetruck1 + Models/Airport/Vehicle/hoskosh-ti-1500.ac + + 60.0 + 10.0 + -4.4 + + + + + Firetruck2 + Models/Airport/Vehicle/hoskosh-ti-1500.ac + + 80.0 + -8.0 + -4.4 + + + + + select + Firetruck1 + Firetruck2 + + + sim/animation/fire-services + + velocities/groundspeed-kt + 40 + + + + diff --git a/Models/A320-200-CFM.xml b/Models/A320-200-CFM.xml index ceeb328a..732294f8 100644 --- a/Models/A320-200-CFM.xml +++ b/Models/A320-200-CFM.xml @@ -429,40 +429,40 @@ - - Firetruck1 - Models/Airport/Vehicle/hoskosh-ti-1500.ac - - 60.0 - 10.0 - -4.4 - - - - - Firetruck2 - Models/Airport/Vehicle/hoskosh-ti-1500.ac - - 80.0 - -8.0 - -4.4 - - - - - select - Firetruck1 - Firetruck2 - - - sim/animation/fire-services - - velocities/groundspeed-kt - 40 - - - - + + Firetruck1 + Models/Airport/Vehicle/hoskosh-ti-1500.ac + + 60.0 + 10.0 + -4.4 + + + + + Firetruck2 + Models/Airport/Vehicle/hoskosh-ti-1500.ac + + 80.0 + -8.0 + -4.4 + + + + + select + Firetruck1 + Firetruck2 + + + sim/animation/fire-services + + velocities/groundspeed-kt + 40 + + + + diff --git a/Models/Effects/Moisture.xml b/Models/Effects/Moisture.xml new file mode 100755 index 00000000..a9e1964c --- /dev/null +++ b/Models/Effects/Moisture.xml @@ -0,0 +1,136 @@ + + + + + + moisture + res/smoke.png + false + false + + 3 + 0 + 0 + -90 + + + local + + + point + + + + 0 + 0 + 0 + 0 + + 0 + 0 + + + 0 + 0 + 0 + 0 + 0 + 0 + + + + + + 150 + 0 + + + + billboard + + + + + + + + 1.0 + rendering/scene/diffuse/red + + + + + + + 1.0 + rendering/scene/diffuse/red + + + + + + + 1.0 + rendering/scene/diffuse/red + + + + + 0.00000001 + + + + 1 + + + + + + + + + 0.7 + rendering/scene/diffuse/red + + + + + + + 0.7 + rendering/scene/diffuse/red + + + + + + + 0.7 + rendering/scene/diffuse/red + + + + + 0.3 + + + + 2 + + + + 0.4 + 0.4 + 0.1 + + + + air + true + false + + + + + + diff --git a/Models/Effects/contrail-eng1.xml b/Models/Effects/contrail.xml similarity index 83% rename from Models/Effects/contrail-eng1.xml rename to Models/Effects/contrail.xml index be18e0cc..36005fe4 100644 --- a/Models/Effects/contrail-eng1.xml +++ b/Models/Effects/contrail.xml @@ -3,7 +3,7 @@ - contrail-eng1 + contrail res/smoke.png 30 @@ -13,26 +13,6 @@ false false - - - - engines/engine[0]/n2-actual - 50 - - - position/altitude-ft - 19000 - - - environment/temperature-degc - -30 - - - engines/engine[0]/state - 3 - - - world @@ -150,7 +130,7 @@ air true - true + true diff --git a/Models/Effects/contrail-eng2.xml b/Models/Effects/engine-spray-reverse.xml similarity index 79% rename from Models/Effects/contrail-eng2.xml rename to Models/Effects/engine-spray-reverse.xml index 75da3646..bf48ae9b 100644 --- a/Models/Effects/contrail-eng2.xml +++ b/Models/Effects/engine-spray-reverse.xml @@ -3,37 +3,17 @@ - contrail-eng2 + engine-spray-reverse res/smoke.png - - 30 - 0.00 - 2 - 90 - false false - - - - engines/engine[1]/n2-actual - 50 - - - position/altitude-ft - 19000 - - - environment/temperature-degc - -30 - - - engines/engine[1]/state - 3 - - - - + + 0 + 0 + 0 + 180 + + world @@ -135,16 +115,16 @@ - 6 + 3 - 10 + 0.4 0.5 - 0.5 + 0.1 @@ -154,4 +134,4 @@ - + \ No newline at end of file diff --git a/Models/Effects/engine-spray.xml b/Models/Effects/engine-spray.xml new file mode 100644 index 00000000..010a219f --- /dev/null +++ b/Models/Effects/engine-spray.xml @@ -0,0 +1,93 @@ + + + + + + engine-spray + res/smoke.png + false + false + + world + + + segments + + 0 + 0 + 0 + + + 20 + 0 + 0 + + + + + 15 + 60 + -5 + 5 + + 250 + 15 + + + 15 + -15 + 15 + -15 + 15 + -15 + + + + + + 100 + 10 + + + + billboard + + + + + 0.9 + 0.9 + 0.9 + 0.04 + + + 0.5 + + + + + 1 + 1 + 1 + 0.02 + + + 10 + + + + 1.0 + + 0.025 + 0.175 + + + + air + true + true + + + + + diff --git a/Models/Effects/pedestal-glare.png b/Models/Effects/pedestal-glare.png index ee1f5de5..57c79eb1 100644 Binary files a/Models/Effects/pedestal-glare.png and b/Models/Effects/pedestal-glare.png differ diff --git a/Models/Effects/tire-smoke-left.xml b/Models/Effects/tire-smoke-left.xml index ab306b31..8e6f1828 100644 --- a/Models/Effects/tire-smoke-left.xml +++ b/Models/Effects/tire-smoke-left.xml @@ -5,7 +5,7 @@ - tyre-smoke-l + tire-smoke-l tiresmoke.png false false @@ -106,7 +106,7 @@ air - false + true true diff --git a/Models/Effects/tire-smoke-right.xml b/Models/Effects/tire-smoke-right.xml index df2120d0..a7f2b6c8 100644 --- a/Models/Effects/tire-smoke-right.xml +++ b/Models/Effects/tire-smoke-right.xml @@ -5,7 +5,7 @@ - tyre-smoke-r + tire-smoke-r tiresmoke.png false false @@ -106,7 +106,7 @@ air - false + true true diff --git a/Models/Engines/NEO/LeapXLeft.xml b/Models/Engines/NEO/LeapXLeft.xml index 7229a6bb..84d15040 100644 --- a/Models/Engines/NEO/LeapXLeft.xml +++ b/Models/Engines/NEO/LeapXLeft.xml @@ -48,8 +48,28 @@ - Contrail - Aircraft/A320-family/Models/Effects/contrail-eng2.xml + Aircraft/A320-family/Models/Effects/contrail.xml + contrail + + + + engines/engine[0]/n2-actual + 50 + + + position/altitude-ft + 19000 + + + environment/temperature-degc + -30 + + + engines/engine[0]/state + 3 + + + @@ -62,6 +82,130 @@ + + + Aircraft/A320-family/Models/Effects/Moisture.xml + moisture + + + + position/altitude-agl-ft + 1 + + + environment/relative-humidity + 45 + + + position/altitude-agl-ft + 75 + + + sim/time/sun-angle-rad + 1.63 + + + engines/engine[0]/n1 + 60 + + + + + -0.5 + 0 + 0 + 0 + + + + + + Aircraft/A320-family/Models/Effects/engine-spray.xml + engine-spray + + + + position/altitude-agl-ft + 1 + + + environment/surface/wetness + 0.3 + + + position/altitude-agl-ft + 15 + + + sim/time/sun-angle-rad + 1.63 + + + engines/engine[0]/n1-actual + 65 + + + engines/engine[0]/reverser-pos-norm + 0 + + + + + 4.875 + 0 + -5 + + + + + + Aircraft/A320-family/Models/Effects/engine-spray-reverse.xml + engine-spray-reverse + + + + position/altitude-agl-ft + 1 + + + environment/surface/wetness + 0.3 + + + sim/time/sun-angle-rad + 1.63 + + + engines/engine[0]/n1-actual + 65 + + + engines/engine[0]/reverser-pos-norm + 0.75 + + + + + 0.875 + 0 + -2.5 + + + + + + + Engine fire Aircraft/A320-family/Models/Effects/enginefire.xml @@ -89,10 +233,10 @@ - + --> diff --git a/Models/Engines/NEO/LeapXRight.xml b/Models/Engines/NEO/LeapXRight.xml index 97a55036..16498a1f 100644 --- a/Models/Engines/NEO/LeapXRight.xml +++ b/Models/Engines/NEO/LeapXRight.xml @@ -48,8 +48,28 @@ - Contrail - Aircraft/A320-family/Models/Effects/contrail-eng2.xml + Aircraft/A320-family/Models/Effects/contrail.xml + contrail + + + + engines/engine[1]/n2-actual + 50 + + + position/altitude-ft + 19000 + + + environment/temperature-degc + -30 + + + engines/engine[1]/state + 3 + + + @@ -62,6 +82,133 @@ + + + Aircraft/A320-family/Models/Effects/Moisture.xml + moisture + + + + position/altitude-agl-ft + 1 + + + environment/relative-humidity + 45 + + + position/altitude-agl-ft + 75 + + + sim/time/sun-angle-rad + 1.63 + + + engines/engine[1]/n1 + 60 + + + + + + -0.5 + 0 + 0 + 0 + + + + + + Aircraft/A320-family/Models/Effects/engine-spray.xml + engine-spray + + + + position/altitude-agl-ft + 1 + + + environment/surface/wetness + 0.3 + + + position/altitude-agl-ft + 15 + + + sim/time/sun-angle-rad + 1.63 + + + engines/engine[1]/n1-actual + 65 + + + engines/engine[1]/reverser-pos-norm + 0 + + + + + 4.875 + 0 + -5 + + + + + + Aircraft/A320-family/Models/Effects/engine-spray-reverse.xml + engine-spray-reverse + + + + position/altitude-agl-ft + 1 + + + environment/surface/wetness + 0.3 + + + sim/time/sun-angle-rad + 1.63 + + + engines/engine[1]/n1-actual + 65 + + + engines/engine[1]/reverser-pos-norm + 0.75 + + + + + 0.875 + 0 + -2.5 + + + + + + + Engine fire Aircraft/A320-family/Models/Effects/enginefire.xml @@ -89,10 +236,10 @@ - + --> diff --git a/Models/Engines/NEO/PW1100GLeft.xml b/Models/Engines/NEO/PW1100GLeft.xml index 937da032..6f25c156 100644 --- a/Models/Engines/NEO/PW1100GLeft.xml +++ b/Models/Engines/NEO/PW1100GLeft.xml @@ -35,8 +35,28 @@ - Contrail - Aircraft/A320-family/Models/Effects/contrail-eng1.xml + Aircraft/A320-family/Models/Effects/contrail.xml + contrail + + + + engines/engine[0]/n2-actual + 50 + + + position/altitude-ft + 19000 + + + environment/temperature-degc + -30 + + + engines/engine[0]/state + 3 + + + @@ -49,6 +69,116 @@ + + + Aircraft/A320-family/Models/Effects/Moisture.xml + moisture + + + + position/altitude-agl-ft + 1 + + + environment/relative-humidity + 45 + + + position/altitude-agl-ft + 75 + + + sim/time/sun-angle-rad + 1.63 + + + engines/engine[0]/n1 + 65 + + + + + -0.5 + 0 + 0 + 0 + + + + + + Aircraft/A320-family/Models/Effects/engine-spray.xml + engine-spray + + + + position/altitude-agl-ft + 1 + + + environment/surface/wetness + 0.3 + + + position/altitude-agl-ft + 15 + + + sim/time/sun-angle-rad + 1.63 + + + engines/engine[0]/n1-actual + 65 + + + engines/engine[0]/reverser-pos-norm + 0 + + + + + 5.137 + 0 + -5 + + + + + + Aircraft/A320-family/Models/Effects/engine-spray-reverse.xml + engine-spray-reverse + + + + position/altitude-agl-ft + 1 + + + environment/surface/wetness + 0.3 + + + sim/time/sun-angle-rad + 1.63 + + + engines/engine[0]/n1-actual + 65 + + + engines/engine[0]/reverser-pos-norm + 0.75 + + + + + 1.5 + 0 + -1 + + + Engine fire Aircraft/A320-family/Models/Effects/enginefire.xml @@ -76,11 +206,11 @@ - + --> diff --git a/Models/Engines/NEO/PW1100GRight.xml b/Models/Engines/NEO/PW1100GRight.xml index 24bf208c..880418f4 100644 --- a/Models/Engines/NEO/PW1100GRight.xml +++ b/Models/Engines/NEO/PW1100GRight.xml @@ -35,8 +35,28 @@ - Contrail - Aircraft/A320-family/Models/Effects/contrail-eng2.xml + Aircraft/A320-family/Models/Effects/contrail.xml + contrail + + + + engines/engine[1]/n2-actual + 50 + + + position/altitude-ft + 19000 + + + environment/temperature-degc + -30 + + + engines/engine[1]/state + 3 + + + @@ -49,6 +69,116 @@ + + + Aircraft/A320-family/Models/Effects/Moisture.xml + moisture + + + + position/altitude-agl-ft + 1 + + + environment/relative-humidity + 45 + + + position/altitude-agl-ft + 75 + + + sim/time/sun-angle-rad + 1.63 + + + engines/engine[1]/n1 + 65 + + + + + -0.5 + 0 + 0 + 0 + + + + + + Aircraft/A320-family/Models/Effects/engine-spray.xml + engine-spray + + + + position/altitude-agl-ft + 1 + + + environment/surface/wetness + 0.3 + + + position/altitude-agl-ft + 15 + + + sim/time/sun-angle-rad + 1.63 + + + engines/engine[1]/n1-actual + 65 + + + engines/engine[1]/reverser-pos-norm + 0 + + + + + 5.137 + 0 + -5 + + + + + + Aircraft/A320-family/Models/Effects/engine-spray-reverse.xml + engine-spray-reverse + + + + position/altitude-agl-ft + 1 + + + environment/surface/wetness + 0.3 + + + sim/time/sun-angle-rad + 1.63 + + + engines/engine[1]/n1-actual + 65 + + + engines/engine[1]/reverser-pos-norm + 0.75 + + + + + 1.5 + 0 + -1 + + + Engine fire Aircraft/A320-family/Models/Effects/enginefire.xml @@ -76,11 +206,11 @@ - + --> diff --git a/Models/Engines/XMLs/a320.engine.cfm.left.xml b/Models/Engines/XMLs/a320.engine.cfm.left.xml index 87b802d8..db90d4f7 100644 --- a/Models/Engines/XMLs/a320.engine.cfm.left.xml +++ b/Models/Engines/XMLs/a320.engine.cfm.left.xml @@ -37,8 +37,28 @@ - Contrail - Aircraft/A320-family/Models/Effects/contrail-eng1.xml + Aircraft/A320-family/Models/Effects/contrail.xml + contrail + + + + engines/engine[0]/n2-actual + 50 + + + position/altitude-ft + 19000 + + + environment/temperature-degc + -30 + + + engines/engine[0]/state + 3 + + + @@ -51,6 +71,116 @@ + + + Aircraft/A320-family/Models/Effects/Moisture.xml + moisture + + + + position/altitude-agl-ft + 1 + + + environment/relative-humidity + 45 + + + position/altitude-agl-ft + 75 + + + sim/time/sun-angle-rad + 1.63 + + + engines/engine[0]/n1 + 65 + + + + + -0.5 + 0 + 0 + 0 + + + + + + Aircraft/A320-family/Models/Effects/engine-spray.xml + engine-spray + + + + position/altitude-agl-ft + 1 + + + environment/surface/wetness + 0.3 + + + position/altitude-agl-ft + 15 + + + sim/time/sun-angle-rad + 1.63 + + + engines/engine[0]/n1-actual + 65 + + + engines/engine[0]/reverser-pos-norm + 0 + + + + + 4.875 + 0 + -5 + + + + + + Aircraft/A320-family/Models/Effects/engine-spray-reverse.xml + engine-spray-reverse + + + + position/altitude-agl-ft + 1 + + + environment/surface/wetness + 0.3 + + + sim/time/sun-angle-rad + 1.63 + + + engines/engine[0]/n1-actual + 65 + + + engines/engine[0]/reverser-pos-norm + 0.75 + + + + + 0.875 + 0 + -2.5 + + + Engine fire Aircraft/A320-family/Models/Effects/enginefire.xml diff --git a/Models/Engines/XMLs/a320.engine.cfm.right.xml b/Models/Engines/XMLs/a320.engine.cfm.right.xml index 5d09a836..a09be013 100644 --- a/Models/Engines/XMLs/a320.engine.cfm.right.xml +++ b/Models/Engines/XMLs/a320.engine.cfm.right.xml @@ -37,8 +37,28 @@ - Contrail - Aircraft/A320-family/Models/Effects/contrail-eng2.xml + contrail + Aircraft/A320-family/Models/Effects/contrail.xml + + + + engines/engine[1]/n2-actual + 50 + + + position/altitude-ft + 19000 + + + environment/temperature-degc + -30 + + + engines/engine[1]/state + 3 + + + @@ -51,6 +71,116 @@ + + + moisture + Aircraft/A320-family/Models/Effects/Moisture.xml + + + + position/altitude-agl-ft + 1 + + + environment/relative-humidity + 45 + + + position/altitude-agl-ft + 75 + + + sim/time/sun-angle-rad + 1.63 + + + engines/engine[1]/n1 + 60 + + + + + -0.5 + 0 + 0 + 0 + + + + + + Aircraft/A320-family/Models/Effects/engine-spray.xml + engine-spray + + + + position/altitude-agl-ft + 1 + + + environment/surface/wetness + 0.3 + + + position/altitude-agl-ft + 15 + + + sim/time/sun-angle-rad + 1.63 + + + engines/engine[1]/n1-actual + 65 + + + engines/engine[1]/reverser-pos-norm + 0 + + + + + 4.875 + 0 + -5 + + + + + + Aircraft/A320-family/Models/Effects/engine-spray-reverse.xml + engine-spray-reverse + + + + position/altitude-agl-ft + 1 + + + environment/surface/wetness + 0.3 + + + sim/time/sun-angle-rad + 1.63 + + + engines/engine[1]/n1-actual + 65 + + + engines/engine[1]/reverser-pos-norm + 0.75 + + + + + 0.875 + 0 + -2.5 + + + Engine fire Aircraft/A320-family/Models/Effects/enginefire.xml diff --git a/Models/Engines/XMLs/a320.engine.iae.left.xml b/Models/Engines/XMLs/a320.engine.iae.left.xml index 6cd58d18..c3ec8c37 100644 --- a/Models/Engines/XMLs/a320.engine.iae.left.xml +++ b/Models/Engines/XMLs/a320.engine.iae.left.xml @@ -34,8 +34,28 @@ - Contrail - Aircraft/A320-family/Models/Effects/contrail-eng1.xml + Aircraft/A320-family/Models/Effects/contrail.xml + contrail + + + + engines/engine[0]/n2-actual + 50 + + + position/altitude-ft + 19000 + + + environment/temperature-degc + -30 + + + engines/engine[0]/state + 3 + + + @@ -48,6 +68,116 @@ + + + Aircraft/A320-family/Models/Effects/Moisture.xml + moisture + + + + position/altitude-agl-ft + 1 + + + environment/relative-humidity + 45 + + + position/altitude-agl-ft + 75 + + + sim/time/sun-angle-rad + 1.63 + + + engines/engine[0]/n1 + 65 + + + + + -0.5 + 0 + 0 + 0 + + + + + + Aircraft/A320-family/Models/Effects/engine-spray.xml + engine-spray + + + + position/altitude-agl-ft + 1 + + + environment/surface/wetness + 0.3 + + + position/altitude-agl-ft + 15 + + + sim/time/sun-angle-rad + 1.63 + + + engines/engine[0]/n1-actual + 65 + + + engines/engine[0]/reverser-pos-norm + 0 + + + + + 4.875 + 0 + -5 + + + + + + Aircraft/A320-family/Models/Effects/engine-spray-reverse.xml + engine-spray-reverse + + + + position/altitude-agl-ft + 1 + + + environment/surface/wetness + 0.3 + + + sim/time/sun-angle-rad + 1.63 + + + engines/engine[0]/n1-actual + 65 + + + engines/engine[0]/reverser-pos-norm + 0.75 + + + + + 0.875 + 0 + -2.5 + + + Engine fire Aircraft/A320-family/Models/Effects/enginefire.xml diff --git a/Models/Engines/XMLs/a320.engine.iae.right.xml b/Models/Engines/XMLs/a320.engine.iae.right.xml index 4f269703..82e9b2b9 100644 --- a/Models/Engines/XMLs/a320.engine.iae.right.xml +++ b/Models/Engines/XMLs/a320.engine.iae.right.xml @@ -34,8 +34,28 @@ - Contrail - Aircraft/A320-family/Models/Effects/contrail-eng2.xml + Aircraft/A320-family/Models/Effects/contrail.xml + contrail + + + + engines/engine[1]/n2-actual + 50 + + + position/altitude-ft + 19000 + + + environment/temperature-degc + -30 + + + engines/engine[1]/state + 3 + + + @@ -48,6 +68,116 @@ + + + Aircraft/A320-family/Models/Effects/Moisture.xml + moisture + + + + position/altitude-agl-ft + 1 + + + environment/relative-humidity + 45 + + + position/altitude-agl-ft + 75 + + + sim/time/sun-angle-rad + 1.63 + + + engines/engine[1]/n1 + 60 + + + + + -0.5 + 0 + 0 + 0 + + + + + + Aircraft/A320-family/Models/Effects/engine-spray.xml + engine-spray + + + + position/altitude-agl-ft + 1 + + + environment/surface/wetness + 0.3 + + + position/altitude-agl-ft + 15 + + + sim/time/sun-angle-rad + 1.63 + + + engines/engine[1]/n1-actual + 65 + + + engines/engine[1]/reverser-pos-norm + 0 + + + + + 4.875 + 0 + -5 + + + + + + Aircraft/A320-family/Models/Effects/engine-spray-reverse.xml + engine-spray-reverse + + + + position/altitude-agl-ft + 1 + + + environment/surface/wetness + 0.3 + + + sim/time/sun-angle-rad + 1.63 + + + engines/engine[1]/n1-actual + 65 + + + engines/engine[1]/reverser-pos-norm + 0.75 + + + + + 0.875 + 0 + -2.5 + + + Engine fire Aircraft/A320-family/Models/Effects/enginefire.xml diff --git a/Nasal/Systems/FADEC/engines-common.nas b/Nasal/Systems/FADEC/engines-common.nas index b28ceb26..5bdf8b4b 100644 --- a/Nasal/Systems/FADEC/engines-common.nas +++ b/Nasal/Systems/FADEC/engines-common.nas @@ -100,23 +100,37 @@ var apuBleedChk = maketimer(0.1, func { # Various Other Stuff var doIdleThrust = func { + # Idle does not respect selected engines, because it is used to respond + # to "Retard" and both engines must be idle for spoilers to deploy setprop("controls/engines/engine[0]/throttle", 0.0); setprop("controls/engines/engine[1]/throttle", 0.0); } var doCLThrust = func { - setprop("controls/engines/engine[0]/throttle", 0.63); - setprop("controls/engines/engine[1]/throttle", 0.63); + if (getprop("sim/input/selected/engine[0]") == 1) { + setprop("controls/engines/engine[0]/throttle", 0.63); + } + if (getprop("sim/input/selected/engine[1]") == 1) { + setprop("controls/engines/engine[1]/throttle", 0.63); + } } var doMCTThrust = func { - setprop("controls/engines/engine[0]/throttle", 0.8); - setprop("controls/engines/engine[1]/throttle", 0.8); + if (getprop("sim/input/selected/engine[0]") == 1) { + setprop("controls/engines/engine[0]/throttle", 0.8); + } + if (getprop("sim/input/selected/engine[1]") == 1) { + setprop("controls/engines/engine[1]/throttle", 0.8); + } } var doTOGAThrust = func { - setprop("controls/engines/engine[0]/throttle", 1.0); - setprop("controls/engines/engine[1]/throttle", 1.0); + if (getprop("sim/input/selected/engine[0]") == 1) { + setprop("controls/engines/engine[0]/throttle", 1.0); + } + if (getprop("sim/input/selected/engine[1]") == 1) { + setprop("controls/engines/engine[1]/throttle", 1.0); + } } # Reverse Thrust System @@ -124,15 +138,19 @@ var toggleFastRevThrust = func { var state1 = getprop("systems/thrust/state1"); var state2 = getprop("systems/thrust/state2"); if (state1 == "IDLE" and state2 == "IDLE" and getprop("controls/engines/engine[0]/reverser") == "0" and getprop("controls/engines/engine[1]/reverser") == "0" and getprop("gear/gear[1]/wow") == 1 and getprop("gear/gear[2]/wow") == 1) { - interpolate("/engines/engine[0]/reverser-pos-norm", 1, 1.4); - interpolate("/engines/engine[1]/reverser-pos-norm", 1, 1.4); - setprop("controls/engines/engine[0]/reverser", 1); - setprop("controls/engines/engine[1]/reverser", 1); - setprop("controls/engines/engine[0]/throttle-rev", 0.65); - setprop("controls/engines/engine[1]/throttle-rev", 0.65); - setprop("fdm/jsbsim/propulsion/engine[0]/reverser-angle-rad", 3.14); - setprop("fdm/jsbsim/propulsion/engine[1]/reverser-angle-rad", 3.14); - } else if ((getprop("controls/engines/engine[0]/reverser") == "1") or (getprop("controls/engines/engine[1]/reverser") == "1") and (getprop("gear/gear[1]/wow") == 1) and (getprop("gear/gear[2]/wow") == 1)) { + if (getprop("sim/input/selected/engine[0]") == 1) { + interpolate("/engines/engine[0]/reverser-pos-norm", 1, 1.4); + setprop("controls/engines/engine[0]/reverser", 1); + setprop("controls/engines/engine[0]/throttle-rev", 0.65); + setprop("fdm/jsbsim/propulsion/engine[0]/reverser-angle-rad", 3.14); + } + if (getprop("sim/input/selected/engine[1]") == 1) { + interpolate("/engines/engine[1]/reverser-pos-norm", 1, 1.4); + setprop("controls/engines/engine[1]/reverser", 1); + setprop("controls/engines/engine[1]/throttle-rev", 0.65); + setprop("fdm/jsbsim/propulsion/engine[1]/reverser-angle-rad", 3.14); + } + } else if ((getprop("controls/engines/engine[0]/reverser") == "1") or (getprop("controls/engines/engine[1]/reverser") == "1")) { setprop("controls/engines/engine[0]/throttle-rev", 0); setprop("controls/engines/engine[1]/throttle-rev", 0); interpolate("/engines/engine[0]/reverser-pos-norm", 0, 1.0); @@ -145,54 +163,59 @@ var toggleFastRevThrust = func { } var doRevThrust = func { - if (getprop("controls/engines/engine[0]/reverser") == "1" and getprop("controls/engines/engine[1]/reverser") == "1" and getprop("gear/gear[1]/wow") == 1 and getprop("gear/gear[2]/wow") == 1) { - var pos1 = getprop("controls/engines/engine[0]/throttle-rev"); - var pos2 = getprop("controls/engines/engine[1]/throttle-rev"); - if (pos1 < 0.649) { - setprop("controls/engines/engine[0]/throttle-rev", pos1 + 0.15); + if (getprop("gear/gear[1]/wow") != 1 and getprop("gear/gear[2]/wow") != 1) { + # Can't select reverse if not on the ground + return; + } + if (getprop("sim/input/selected/engine[0]") == 1 and getprop("controls/engines/engine[0]/reverser") == "1") { + var pos = getprop("controls/engines/engine[0]/throttle-rev"); + if (pos < 0.649) { + setprop("controls/engines/engine[0]/throttle-rev", pos + 0.15); } - if (pos2 < 0.649) { - setprop("controls/engines/engine[1]/throttle-rev", pos2 + 0.15); + } + if (getprop("sim/input/selected/engine[1]") == 1 and getprop("controls/engines/engine[1]/reverser") == "1") { + var pos = getprop("controls/engines/engine[1]/throttle-rev"); + if (pos < 0.649) { + setprop("controls/engines/engine[1]/throttle-rev", pos + 0.15); } } var state1 = getprop("systems/thrust/state1"); var state2 = getprop("systems/thrust/state2"); - if (state1 == "IDLE" and state2 == "IDLE" and getprop("controls/engines/engine[0]/reverser") == "0" and getprop("controls/engines/engine[1]/reverser") == "0" and getprop("gear/gear[1]/wow") == 1 and getprop("gear/gear[2]/wow") == 1) { + if (getprop("sim/input/selected/engine[0]") == 1 and state1 == "IDLE" and getprop("controls/engines/engine[0]/reverser") == "0") { setprop("controls/engines/engine[0]/throttle-rev", 0.05); - setprop("controls/engines/engine[1]/throttle-rev", 0.05); interpolate("/engines/engine[0]/reverser-pos-norm", 1, 1.4); - interpolate("/engines/engine[1]/reverser-pos-norm", 1, 1.4); setprop("controls/engines/engine[0]/reverser", 1); - setprop("controls/engines/engine[1]/reverser", 1); setprop("fdm/jsbsim/propulsion/engine[0]/reverser-angle-rad", 3.14); + } + if (getprop("sim/input/selected/engine[1]") == 1 and state2 == "IDLE" and getprop("controls/engines/engine[1]/reverser") == "0") { + setprop("controls/engines/engine[1]/throttle-rev", 0.05); + interpolate("/engines/engine[1]/reverser-pos-norm", 1, 1.4); + setprop("controls/engines/engine[1]/reverser", 1); setprop("fdm/jsbsim/propulsion/engine[1]/reverser-angle-rad", 3.14); } } var unRevThrust = func { - if (getprop("controls/engines/engine[0]/reverser") == "1" or getprop("controls/engines/engine[1]/reverser") == "1") { - var pos1 = getprop("controls/engines/engine[0]/throttle-rev"); - var pos2 = getprop("controls/engines/engine[1]/throttle-rev"); - if (pos1 > 0.051) { - setprop("controls/engines/engine[0]/throttle-rev", pos1 - 0.15); + if (getprop("sim/input/selected/engine[0]") == 1 and getprop("controls/engines/engine[0]/reverser") == "1") { + var pos = getprop("controls/engines/engine[0]/throttle-rev"); + if (pos > 0.051) { + setprop("controls/engines/engine[0]/throttle-rev", pos - 0.15); } else { - unRevThrust_b(); + setprop("controls/engines/engine[0]/throttle-rev", 0); + interpolate("/engines/engine[0]/reverser-pos-norm", 0, 1.0); + setprop("fdm/jsbsim/propulsion/engine[0]/reverser-angle-rad", 0); + setprop("controls/engines/engine[0]/reverser", 0); } - if (pos2 > 0.051) { - setprop("controls/engines/engine[1]/throttle-rev", pos2 - 0.15); + } + if (getprop("sim/input/selected/engine[1]") == 1 and getprop("controls/engines/engine[1]/reverser") == "1") { + var pos = getprop("controls/engines/engine[1]/throttle-rev"); + if (pos > 0.051) { + setprop("controls/engines/engine[1]/throttle-rev", pos - 0.15); } else { - unRevThrust_b(); + setprop("controls/engines/engine[1]/throttle-rev", 0); + interpolate("/engines/engine[1]/reverser-pos-norm", 0, 1.0); + setprop("fdm/jsbsim/propulsion/engine[1]/reverser-angle-rad", 0); + setprop("controls/engines/engine[1]/reverser", 0); } } } - -var unRevThrust_b = func { - setprop("controls/engines/engine[0]/throttle-rev", 0); - setprop("controls/engines/engine[1]/throttle-rev", 0); - interpolate("/engines/engine[0]/reverser-pos-norm", 0, 1.0); - interpolate("/engines/engine[1]/reverser-pos-norm", 0, 1.0); - setprop("fdm/jsbsim/propulsion/engine[0]/reverser-angle-rad", 0); - setprop("fdm/jsbsim/propulsion/engine[1]/reverser-angle-rad", 0); - setprop("controls/engines/engine[0]/reverser", 0); - setprop("controls/engines/engine[1]/reverser", 0); -} diff --git a/Nasal/Systems/brakesystem.nas b/Nasal/Systems/brakesystem.nas index 12bee9ce..91d089eb 100755 --- a/Nasal/Systems/brakesystem.nas +++ b/Nasal/Systems/brakesystem.nas @@ -75,6 +75,9 @@ var BrakeSystem = setprop("gear/gear[2]/R3error-temp-degc", math.round(rand()*(5)) - 2.5); setprop("gear/gear[2]/R4error-temp-degc", math.round(rand()*(5)) - 2.5); + #var atemp = getprop("environment/temperature-degc") or 0; + #var vmach = getprop("velocities/mach") or 0; + var tatdegc = getprop("/systems/navigation/probes/tat-1/compute-tat") or 0; var atemp = getprop("environment/temperature-degc") or 0; var vmach = getprop("velocities/mach") or 0; var tatdegc = getprop("systems/navigation/probes/tat-1/compute-tat"); @@ -97,9 +100,10 @@ var BrakeSystem = var RThermalEnergy = getprop("gear/gear[2]/Rbrake-thermal-energy"); var LBrakeLevel = getprop("fdm/jsbsim/fcs/left-brake-cmd-norm"); var RBrakeLevel = getprop("fdm/jsbsim/fcs/right-brake-cmd-norm"); - var atemp = getprop("environment/temperature-degc") or 0; - var vmach = getprop("velocities/mach") or 0; - var tatdegc = atemp * (1 + (0.2 * math.pow(vmach, 2))); + #var atemp = getprop("environment/temperature-degc") or 0; + #var vmach = getprop("velocities/mach") or 0; + #var tatdegc = atemp * (1 + (0.2 * math.pow(vmach, 2))); + var tatdegc = getprop("/systems/navigation/probes/tat-1/compute-tat") or 0; var L_thrust_lb = getprop("engines/engine[0]/thrust_lb"); var R_thrust_lb = getprop("engines/engine[1]/thrust_lb"); @@ -150,14 +154,18 @@ var BrakeSystem = { L_thrust_lb = 1 } - L_Thrust = math.pow((math.log10(L_thrust_lb)),10)*0.0000000002; + #Disabling thrust computation on Brakes temperature + #L_Thrust = math.pow((math.log10(L_thrust_lb)),10)*0.0000000002; + L_Thrust = 0; R_thrust_lb = math.abs(getprop("engines/engine[1]/thrust_lb")); if (R_thrust_lb < 1) { R_thrust_lb = 1 } - R_Thrust = math.pow((math.log10(R_thrust_lb)),10)*0.0000000002; + #Disabling thrust computation on Brakes temperature + #R_Thrust = math.pow((math.log10(R_thrust_lb)),10)*0.0000000002; + R_Thrust = 0; if (OnGround) { @@ -169,10 +177,7 @@ var BrakeSystem = var V2_L = V1 - me.BrakeDecel * dt * LBrakeLevel; var V2_R = V1 - me.BrakeDecel * dt * RBrakeLevel; - #TODO - Adjust ThermalEnergy according to differential braking - #LBrakeLevel-RBrakeLevel - - LThermalEnergy += (Mass * (math.pow(V1, 2) - math.pow(V2_L, 2)) / 2); + LThermalEnergy += (Mass * getprop("gear/gear[1]/compression-norm") * (math.pow(V1, 2) - math.pow(V2_L, 2)) / 2); if (getprop("services/chocks/left")) { if (!getprop("controls/gear/brake-parking")) @@ -210,7 +215,7 @@ var BrakeSystem = } } - RThermalEnergy += (Mass * (math.pow(V1, 2) - math.pow(V2_R, 2)) / 2); + RThermalEnergy += (Mass * getprop("gear/gear[2]/compression-norm") * (math.pow(V1, 2) - math.pow(V2_R, 2)) / 2); if (getprop("services/chocks/right")) { if (!getprop("controls/gear/brake-parking"))