From e5d90614b42a446f0d3eb347c8a855d48ced3e9f Mon Sep 17 00:00:00 2001 From: Joshua Davidson Date: Wed, 20 Dec 2017 14:58:33 -0500 Subject: [PATCH] A32X: Major FDM FCS and Hydraulics reworking, other fixes --- A320-100-CFM.xml | 8 +- A320-200-CFM.xml | 8 +- A320-200-IAE.xml | 8 +- A320-main.xml | 22 +- A320neo-CFM.xml | 8 +- A320neo-PW.xml | 8 +- AircraftConfig/acconfig.nas | 12 +- AircraftConfig/fbw.xml | 6 +- Models/FlightDeck/a320.flightdeck.xml | 5 +- Models/Fuselages/A320-100/hstab.xml | 15 +- Models/Fuselages/A320/hstab.xml | 15 +- Models/Fuselages/A320neo/hstab.xml | 15 +- Models/Instruments/Lower-ECAM/Lower-ECAM.nas | 6 +- Models/Wings/a320.wings.cfm.xml | 24 +- Models/Wings/a320.wings.iae.xml | 24 +- Models/Wings/a320.wings.neocfm.xml | 24 +- Models/Wings/a320.wings.neopw.xml | 24 +- Nasal/libraries.nas | 18 + Systems/a320-aerodynamics.xml | 34 +- Systems/a320-fcs.xml | 746 +++++++++++++++++++ Systems/fbw-pitch.xml | 6 +- Systems/fcs.xml | 376 ---------- Systems/hydraulics.xml | 568 +------------- Systems/lower-ecam.xml | 37 +- Systems/upper-ecam.xml | 24 +- revision.txt | 2 +- 26 files changed, 957 insertions(+), 1086 deletions(-) create mode 100644 Systems/a320-fcs.xml delete mode 100644 Systems/fcs.xml diff --git a/A320-100-CFM.xml b/A320-100-CFM.xml index 432be884..9b801d92 100644 --- a/A320-100-CFM.xml +++ b/A320-100-CFM.xml @@ -14,13 +14,13 @@ xsi:noNamespaceSchemaLocation="http://jsbsim.sourceforge.net/JSBSim.xsd"> Joshua Davidson (it0uchpods) Pre V1.0 - A3XX FDE + A32X FDE 1319.79 111.26 - 1.03 + 1.03 13.76 334.24 57.88 @@ -28,7 +28,7 @@ xsi:noNamespaceSchemaLocation="http://jsbsim.sourceforge.net/JSBSim.xsd"> 57.33 - 19.3974 + 19.3174 0 0.19249 @@ -453,7 +453,7 @@ xsi:noNamespaceSchemaLocation="http://jsbsim.sourceforge.net/JSBSim.xsd"> - + diff --git a/A320-200-CFM.xml b/A320-200-CFM.xml index 432be884..9b801d92 100644 --- a/A320-200-CFM.xml +++ b/A320-200-CFM.xml @@ -14,13 +14,13 @@ xsi:noNamespaceSchemaLocation="http://jsbsim.sourceforge.net/JSBSim.xsd"> Joshua Davidson (it0uchpods) Pre V1.0 - A3XX FDE + A32X FDE 1319.79 111.26 - 1.03 + 1.03 13.76 334.24 57.88 @@ -28,7 +28,7 @@ xsi:noNamespaceSchemaLocation="http://jsbsim.sourceforge.net/JSBSim.xsd"> 57.33 - 19.3974 + 19.3174 0 0.19249 @@ -453,7 +453,7 @@ xsi:noNamespaceSchemaLocation="http://jsbsim.sourceforge.net/JSBSim.xsd"> - + diff --git a/A320-200-IAE.xml b/A320-200-IAE.xml index a8e20610..29962d8b 100644 --- a/A320-200-IAE.xml +++ b/A320-200-IAE.xml @@ -14,13 +14,13 @@ xsi:noNamespaceSchemaLocation="http://jsbsim.sourceforge.net/JSBSim.xsd"> Joshua Davidson (it0uchpods) Pre V1.0 - A3XX FDE + A32X FDE 1319.79 111.26 - 1.03 + 1.03 13.76 334.24 57.88 @@ -28,7 +28,7 @@ xsi:noNamespaceSchemaLocation="http://jsbsim.sourceforge.net/JSBSim.xsd"> 57.33 - 19.3974 + 19.3174 0 0.19249 @@ -453,7 +453,7 @@ xsi:noNamespaceSchemaLocation="http://jsbsim.sourceforge.net/JSBSim.xsd"> - + diff --git a/A320-main.xml b/A320-main.xml index 064983bb..1a46c61d 100644 --- a/A320-main.xml +++ b/A320-main.xml @@ -318,6 +318,7 @@ + @@ -507,12 +508,11 @@ 0 0.5 -0.5 - 0.0 0 0 0.1 0.1 - 0.2 + 0.0 0 0 0 @@ -531,6 +531,7 @@ 0.0 0 0 + 0 0 @@ -656,6 +657,23 @@ + + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 diff --git a/A320neo-CFM.xml b/A320neo-CFM.xml index d7d464f1..456dffdf 100644 --- a/A320neo-CFM.xml +++ b/A320neo-CFM.xml @@ -14,13 +14,13 @@ xsi:noNamespaceSchemaLocation="http://jsbsim.sourceforge.net/JSBSim.xsd"> Joshua Davidson (it0uchpods) Pre V1.0 - A3XX FDE + A32X FDE 1319.79 111.26 - 1.03 + 1.03 13.76 334.24 57.88 @@ -28,7 +28,7 @@ xsi:noNamespaceSchemaLocation="http://jsbsim.sourceforge.net/JSBSim.xsd"> 57.33 - 19.3974 + 19.3174 0 0.19249 @@ -453,7 +453,7 @@ xsi:noNamespaceSchemaLocation="http://jsbsim.sourceforge.net/JSBSim.xsd"> - + diff --git a/A320neo-PW.xml b/A320neo-PW.xml index 5d480826..ace89e1f 100644 --- a/A320neo-PW.xml +++ b/A320neo-PW.xml @@ -14,13 +14,13 @@ xsi:noNamespaceSchemaLocation="http://jsbsim.sourceforge.net/JSBSim.xsd"> Joshua Davidson (it0uchpods) Pre V1.0 - A3XX FDE + A32X FDE 1319.79 111.26 - 1.03 + 1.03 13.76 334.24 57.88 @@ -28,7 +28,7 @@ xsi:noNamespaceSchemaLocation="http://jsbsim.sourceforge.net/JSBSim.xsd"> 57.33 - 19.3974 + 19.3174 0 0.19249 @@ -453,7 +453,7 @@ xsi:noNamespaceSchemaLocation="http://jsbsim.sourceforge.net/JSBSim.xsd"> - + diff --git a/AircraftConfig/acconfig.nas b/AircraftConfig/acconfig.nas index 0e979cc6..47205586 100644 --- a/AircraftConfig/acconfig.nas +++ b/AircraftConfig/acconfig.nas @@ -279,9 +279,9 @@ var beforestart_b = func { setprop("/controls/pneumatic/switches/bleed2", 1); setprop("/controls/pneumatic/switches/pack1", 1); setprop("/controls/pneumatic/switches/pack2", 1); - setprop("controls/adirs/ir[0]/knob","1"); - setprop("controls/adirs/ir[1]/knob","1"); - setprop("controls/adirs/ir[2]/knob","1"); + setprop("/controls/adirs/ir[0]/knob","1"); + setprop("/controls/adirs/ir[1]/knob","1"); + setprop("/controls/adirs/ir[2]/knob","1"); systems.ADIRS.skip(0); systems.ADIRS.skip(1); systems.ADIRS.skip(2); @@ -352,9 +352,9 @@ var taxi_b = func { setprop("/controls/pneumatic/switches/bleed2", 1); setprop("/controls/pneumatic/switches/pack1", 1); setprop("/controls/pneumatic/switches/pack2", 1); - setprop("controls/adirs/ir[0]/knob","1"); - setprop("controls/adirs/ir[1]/knob","1"); - setprop("controls/adirs/ir[2]/knob","1"); + setprop("/controls/adirs/ir[0]/knob","1"); + setprop("/controls/adirs/ir[1]/knob","1"); + setprop("/controls/adirs/ir[2]/knob","1"); systems.ADIRS.skip(0); systems.ADIRS.skip(1); systems.ADIRS.skip(2); diff --git a/AircraftConfig/fbw.xml b/AircraftConfig/fbw.xml index a0863799..238d3d28 100644 --- a/AircraftConfig/fbw.xml +++ b/AircraftConfig/fbw.xml @@ -132,7 +132,7 @@ 150 - /controls/flight/aileron-sum + /fdm/jsbsim/hydraulics/roll-control -1 1 0.0001 @@ -169,7 +169,7 @@ 0 150 true - /controls/flight/elevator-sum + /fdm/jsbsim/hydraulics/pitch-control -1 1 0.0001 @@ -188,7 +188,7 @@ 0 150 true - /controls/flight/elevator-trim + /controls/flight/elevator-trim-fdm -1 1 0.0001 diff --git a/Models/FlightDeck/a320.flightdeck.xml b/Models/FlightDeck/a320.flightdeck.xml index a8f28148..b657f861 100644 --- a/Models/FlightDeck/a320.flightdeck.xml +++ b/Models/FlightDeck/a320.flightdeck.xml @@ -5014,8 +5014,9 @@ rotate trim_2_lts - controls/flight/elevator-trim - -150 + fdm/jsbsim/fcs/pitch-trim-cmd-deg + -15.55 + -0.9
-0.1507 0 diff --git a/Models/Fuselages/A320-100/hstab.xml b/Models/Fuselages/A320-100/hstab.xml index 1f4871b9..349f83a0 100644 --- a/Models/Fuselages/A320-100/hstab.xml +++ b/Models/Fuselages/A320-100/hstab.xml @@ -17,9 +17,9 @@ ElevatorL sim/multiplay/generic/float[4] - -0.5-20.0 + -0.5-30.0 0.00.0 - 0.520.0 + 0.517.0 4.8217428 @@ -36,9 +36,9 @@ ElevatorR sim/multiplay/generic/float[5] - -0.5-20.0 + -0.5-30.0 0.00.0 - 0.520.0 + 0.517.0 2.9796817 @@ -54,11 +54,8 @@ Horizontal Stabilizer rotate - controls/flight/elevator-trim - - -1.0-10.0 - 1.010.0 - + sim/multiplay/generic/float[9] + 1.0 0 1 diff --git a/Models/Fuselages/A320/hstab.xml b/Models/Fuselages/A320/hstab.xml index 1f4871b9..349f83a0 100644 --- a/Models/Fuselages/A320/hstab.xml +++ b/Models/Fuselages/A320/hstab.xml @@ -17,9 +17,9 @@ ElevatorL sim/multiplay/generic/float[4] - -0.5-20.0 + -0.5-30.0 0.00.0 - 0.520.0 + 0.517.0 4.8217428 @@ -36,9 +36,9 @@ ElevatorR sim/multiplay/generic/float[5] - -0.5-20.0 + -0.5-30.0 0.00.0 - 0.520.0 + 0.517.0 2.9796817 @@ -54,11 +54,8 @@ Horizontal Stabilizer rotate - controls/flight/elevator-trim - - -1.0-10.0 - 1.010.0 - + sim/multiplay/generic/float[9] + 1.0 0 1 diff --git a/Models/Fuselages/A320neo/hstab.xml b/Models/Fuselages/A320neo/hstab.xml index 1f4871b9..349f83a0 100644 --- a/Models/Fuselages/A320neo/hstab.xml +++ b/Models/Fuselages/A320neo/hstab.xml @@ -17,9 +17,9 @@ ElevatorL sim/multiplay/generic/float[4] - -0.5-20.0 + -0.5-30.0 0.00.0 - 0.520.0 + 0.517.0 4.8217428 @@ -36,9 +36,9 @@ ElevatorR sim/multiplay/generic/float[5] - -0.5-20.0 + -0.5-30.0 0.00.0 - 0.520.0 + 0.517.0 2.9796817 @@ -54,11 +54,8 @@ Horizontal Stabilizer rotate - controls/flight/elevator-trim - - -1.0-10.0 - 1.010.0 - + sim/multiplay/generic/float[9] + 1.0 0 1 diff --git a/Models/Instruments/Lower-ECAM/Lower-ECAM.nas b/Models/Instruments/Lower-ECAM/Lower-ECAM.nas index b6610fb9..0e66cbfb 100644 --- a/Models/Instruments/Lower-ECAM/Lower-ECAM.nas +++ b/Models/Instruments/Lower-ECAM/Lower-ECAM.nas @@ -501,11 +501,11 @@ var canvas_lowerECAM_fctl = { yellow_psi = getprop("/systems/hydraulic/yellow-psi"); # Pitch Trim - me["PT"].setText(sprintf("%2.1f", getprop("/ECAM/Lower/elevator-trim-deg"))); + me["PT"].setText(sprintf("%2.1f", math.round(getprop("/ECAM/Lower/elevator-trim-deg"), 0.1))); - if (getprop("/controls/flight/elevator-trim") <= 0) { + if (math.round(getprop("/ECAM/Lower/elevator-trim-deg"), 0.1) >= 0) { me["PTupdn"].setText(sprintf("UP")); - } else if (getprop("/controls/flight/elevator-trim") > 0) { + } else if (math.round(getprop("/ECAM/Lower/elevator-trim-deg"), 0.1) < 0) { me["PTupdn"].setText(sprintf("DN")); } diff --git a/Models/Wings/a320.wings.cfm.xml b/Models/Wings/a320.wings.cfm.xml index 10c9c7fe..42999621 100644 --- a/Models/Wings/a320.wings.cfm.xml +++ b/Models/Wings/a320.wings.cfm.xml @@ -36,7 +36,7 @@ rotate AileronL sim/multiplay/generic/float[6] - 40 + 50 8.7295 -16.3231163 @@ -51,7 +51,7 @@ rotate AileronR sim/multiplay/generic/float[7] - -40 + -50 7.6792 13.3967144 @@ -318,7 +318,7 @@ controls/flight/spoiler-l1 0.0 0 - 1.030 + 1.035 4.879 @@ -336,7 +336,7 @@ controls/flight/spoiler-l2 0.0 0 - 1.030 + 1.035 5.084 @@ -354,7 +354,7 @@ controls/flight/spoiler-l3 0.0 0 - 1.030 + 1.035 5.685 @@ -372,7 +372,7 @@ controls/flight/spoiler-l4 0.0 0 - 1.030 + 1.035 6.253 @@ -390,7 +390,7 @@ controls/flight/spoiler-l5 0.0 0 - 1.030 + 1.035 6.776 @@ -408,7 +408,7 @@ controls/flight/spoiler-r1 0.0 0 - 1.030 + 1.035 4.879 @@ -426,7 +426,7 @@ controls/flight/spoiler-r2 0.0 0 - 1.030 + 1.035 5.678 @@ -444,7 +444,7 @@ controls/flight/spoiler-r3 0.0 0 - 1.030 + 1.035 6.246 @@ -462,7 +462,7 @@ controls/flight/spoiler-r4 0.0 0 - 1.030 + 1.035 6.769 @@ -480,7 +480,7 @@ controls/flight/spoiler-r5 0.0 0 - 1.030 + 1.035 7.292 diff --git a/Models/Wings/a320.wings.iae.xml b/Models/Wings/a320.wings.iae.xml index a05ea3a9..0244408d 100644 --- a/Models/Wings/a320.wings.iae.xml +++ b/Models/Wings/a320.wings.iae.xml @@ -36,7 +36,7 @@ rotate AileronL sim/multiplay/generic/float[6] - 40 + 50 8.7295 -16.3231163 @@ -51,7 +51,7 @@ rotate AileronR sim/multiplay/generic/float[7] - -40 + -50 7.6792 13.3967144 @@ -318,7 +318,7 @@ controls/flight/spoiler-l1 0.0 0 - 1.030 + 1.035 4.879 @@ -336,7 +336,7 @@ controls/flight/spoiler-l2 0.0 0 - 1.030 + 1.035 5.084 @@ -354,7 +354,7 @@ controls/flight/spoiler-l3 0.0 0 - 1.030 + 1.035 5.685 @@ -372,7 +372,7 @@ controls/flight/spoiler-l4 0.0 0 - 1.030 + 1.035 6.253 @@ -390,7 +390,7 @@ controls/flight/spoiler-l5 0.0 0 - 1.030 + 1.035 6.776 @@ -408,7 +408,7 @@ controls/flight/spoiler-r1 0.0 0 - 1.030 + 1.035 4.879 @@ -426,7 +426,7 @@ controls/flight/spoiler-r2 0.0 0 - 1.030 + 1.035 5.678 @@ -444,7 +444,7 @@ controls/flight/spoiler-r3 0.0 0 - 1.030 + 1.035 6.246 @@ -462,7 +462,7 @@ controls/flight/spoiler-r4 0.0 0 - 1.030 + 1.035 6.769 @@ -480,7 +480,7 @@ controls/flight/spoiler-r5 0.0 0 - 1.030 + 1.035 7.292 diff --git a/Models/Wings/a320.wings.neocfm.xml b/Models/Wings/a320.wings.neocfm.xml index 3f519440..b4f4bafe 100644 --- a/Models/Wings/a320.wings.neocfm.xml +++ b/Models/Wings/a320.wings.neocfm.xml @@ -36,7 +36,7 @@ rotate AileronL sim/multiplay/generic/float[6] - 40 + 50 8.7295 -16.3231163 @@ -51,7 +51,7 @@ rotate AileronR sim/multiplay/generic/float[7] - -40 + -50 7.6792 13.3967144 @@ -318,7 +318,7 @@ controls/flight/spoiler-l1 0.0 0 - 1.030 + 1.035 4.879 @@ -336,7 +336,7 @@ controls/flight/spoiler-l2 0.0 0 - 1.030 + 1.035 5.084 @@ -354,7 +354,7 @@ controls/flight/spoiler-l3 0.0 0 - 1.030 + 1.035 5.685 @@ -372,7 +372,7 @@ controls/flight/spoiler-l4 0.0 0 - 1.030 + 1.035 6.253 @@ -390,7 +390,7 @@ controls/flight/spoiler-l5 0.0 0 - 1.030 + 1.035 6.776 @@ -408,7 +408,7 @@ controls/flight/spoiler-r1 0.0 0 - 1.030 + 1.035 4.879 @@ -426,7 +426,7 @@ controls/flight/spoiler-r2 0.0 0 - 1.030 + 1.035 5.678 @@ -444,7 +444,7 @@ controls/flight/spoiler-r3 0.0 0 - 1.030 + 1.035 6.246 @@ -462,7 +462,7 @@ controls/flight/spoiler-r4 0.0 0 - 1.030 + 1.035 6.769 @@ -480,7 +480,7 @@ controls/flight/spoiler-r5 0.0 0 - 1.030 + 1.035 7.292 diff --git a/Models/Wings/a320.wings.neopw.xml b/Models/Wings/a320.wings.neopw.xml index bc302b55..62bb4cc8 100644 --- a/Models/Wings/a320.wings.neopw.xml +++ b/Models/Wings/a320.wings.neopw.xml @@ -36,7 +36,7 @@ rotate AileronL sim/multiplay/generic/float[6] - 40 + 50 8.7295 -16.3231163 @@ -51,7 +51,7 @@ rotate AileronR sim/multiplay/generic/float[7] - -40 + -50 7.6792 13.3967144 @@ -318,7 +318,7 @@ controls/flight/spoiler-l1 0.0 0 - 1.030 + 1.035 4.879 @@ -336,7 +336,7 @@ controls/flight/spoiler-l2 0.0 0 - 1.030 + 1.035 5.084 @@ -354,7 +354,7 @@ controls/flight/spoiler-l3 0.0 0 - 1.030 + 1.035 5.685 @@ -372,7 +372,7 @@ controls/flight/spoiler-l4 0.0 0 - 1.030 + 1.035 6.253 @@ -390,7 +390,7 @@ controls/flight/spoiler-l5 0.0 0 - 1.030 + 1.035 6.776 @@ -408,7 +408,7 @@ controls/flight/spoiler-r1 0.0 0 - 1.030 + 1.035 4.879 @@ -426,7 +426,7 @@ controls/flight/spoiler-r2 0.0 0 - 1.030 + 1.035 5.678 @@ -444,7 +444,7 @@ controls/flight/spoiler-r3 0.0 0 - 1.030 + 1.035 6.246 @@ -462,7 +462,7 @@ controls/flight/spoiler-r4 0.0 0 - 1.030 + 1.035 6.769 @@ -480,7 +480,7 @@ controls/flight/spoiler-r5 0.0 0 - 1.030 + 1.035 7.292 diff --git a/Nasal/libraries.nas b/Nasal/libraries.nas index d5e2abc9..ebdaf6cd 100644 --- a/Nasal/libraries.nas +++ b/Nasal/libraries.nas @@ -358,6 +358,24 @@ var flaptimer = maketimer(0.5, func { } }); +var slewProp = func(prop, delta) { + delta *= getprop("/sim/time/delta-realtime-sec"); + setprop(prop, getprop(prop) + delta); + return getprop(prop); +} + +controls.elevatorTrim = func(speed) { + if (getprop("/systems/hydraulic/green-psi") >= 1500) { + slewProp("/controls/flight/elevator-trim", speed * 0.045); + } +} + +setlistener("/controls/flight/elevator-trim", func { + if (getprop("/controls/flight/elevator-trim") > 0.32) { + setprop("/controls/flight/elevator-trim", 0.32); + } +}); + var lightsLoop = maketimer(0.2, func { gear = getprop("/gear/gear[0]/position-norm"); nose_lights = getprop("/sim/model/lights/nose-lights"); diff --git a/Systems/a320-aerodynamics.xml b/Systems/a320-aerodynamics.xml index 338186c5..af989d00 100644 --- a/Systems/a320-aerodynamics.xml +++ b/Systems/a320-aerodynamics.xml @@ -8,7 +8,9 @@ --> + ice/wing + @@ -204,8 +206,18 @@ aero/qbar-psf metrics/Sw-sqft - fcs/pitch-pos-norm - 0.035 + fcs/pitch-pos-rad + 0.07 + + + + + Drag due to pitch trim control deflection + + aero/qbar-psf + metrics/Sw-sqft + fcs/pitch-trim-pos-rad + 0.07 @@ -239,6 +251,7 @@ + @@ -285,7 +298,7 @@ metrics/Sw-sqft metrics/bw-ft fcs/roll-pos-rad - 0.07 + 0.084 @@ -322,7 +335,18 @@ metrics/Sw-sqft metrics/cbarw-ft fcs/pitch-pos-geared - -1.350 + -1.825 + + + + + Pitch moment due to pitch trim control + + aero/qbar-psf + metrics/Sw-sqft + metrics/cbarw-ft + fcs/pitch-trim-pos-geared + -2.745 @@ -384,7 +408,7 @@ metrics/Sw-sqft metrics/bw-ft fcs/rudder-pos-rad - -0.2 + -0.043 diff --git a/Systems/a320-fcs.xml b/Systems/a320-fcs.xml new file mode 100644 index 00000000..e4250683 --- /dev/null +++ b/Systems/a320-fcs.xml @@ -0,0 +1,746 @@ + + + + + + + + + + + + /velocities/airspeed-kt + + 62 0.5 + 116 0.0 + +
+
+
+ + + hydraulics/aileron-droop + -1.0 + + + + + + /velocities/airspeed-kt + + 72 0.5 + 121 0.0 + +
+
+
+ +
+ + + + + /controls/flight/roll-fbw + /controls/flight/aileron-trim + + -1 + 1 + + + + + + + + + + + + /controls/flight/speedbrake-norm + + + hydraulics/roll-fbw-summer + -1 + + 0 + + + -0.5 + + + + + + + + + hydraulics/roll-fbw-summer + 0.5 + + + /fdm/jsbsim/fcs/flap-pos-deg + + 1 0.00 + 5 0.13 + +
+
+
+
+ + + + + /systems/hydraulic/green-psi GE 1500 + /systems/hydraulic/blue-psi GE 1500 + + + + + + + hydraulics/aileron-l/pressure-switch-or EQ 1 + /controls/flight/speedbrake-norm EQ 1 + /gear/gear[1]/wow EQ 1 + /gear/gear[2]/wow EQ 1 + /systems/failures/aileron-left EQ 0 + + + hydraulics/aileron-l/pressure-switch-or EQ 1 + /systems/failures/aileron-left EQ 0 + + + -0.5 + 0.5 + + + + + hydraulics/aileron-l/switch + + + -1.0 + + + + 1.0 + + + + /controls/flight/aileron-left + + +
+ + + + + + + + /controls/flight/speedbrake-norm + + hydraulics/roll-fbw-summer + 0 + + + 0.5 + + + + + + + + + hydraulics/roll-fbw-summer + 0.5 + + + /fdm/jsbsim/fcs/flap-pos-deg + + 1 0.00 + 5 -0.13 + +
+
+
+
+ + + + + /systems/hydraulic/green-psi GE 1500 + /systems/hydraulic/blue-psi GE 1500 + + + + + + + hydraulics/aileron-r/pressure-switch-or EQ 1 + /controls/flight/speedbrake-norm EQ 1 + /gear/gear[1]/wow EQ 1 + /gear/gear[2]/wow EQ 1 + /systems/failures/aileron-right EQ 0 + + + hydraulics/aileron-r/pressure-switch-or EQ 1 + /systems/failures/aileron-right EQ 0 + + + -0.5 + 0.5 + + + + + hydraulics/aileron-r/switch + + + -1.0 + + + + 1.0 + + + + /controls/flight/aileron-right + + +
+ + + + + + + + + + hydraulics/aileron-l/final + hydraulics/aileron-r/final + + 1.75 + + + + + /controls/flight/spoiler-l-sum + -1.0 + + /controls/flight/spoiler-r-sum + + 0.25 + + + 0.444444 + + + + -1.0 + 1.0 + + + + + hydraulics/roll-control + + -0.436332 + 0.436332 + + + + + + + + + /controls/flight/elevator-fbw + + -0.6666666666666666666666666666666 + 1.0 + + + + + + + /velocities/groundspeed-kt LT 75 + + + + + hydraulics/elevator-fbw-switch + 0.5 + + + + + + + + + + /systems/hydraulic/green-psi GE 1500 + /systems/hydraulic/blue-psi GE 1500 + + + + + + + hydraulics/elevator-l/pressure-switch-or EQ 1 + /systems/failures/elevator-left EQ 0 + + + -0.5 + 0.5 + + + + + hydraulics/elevator-l/switch + + + -1.0 + + + + 1.0 + + + + /controls/flight/elevator-left + + + + + + + + + + /systems/hydraulic/yellow-psi GE 1500 + /systems/hydraulic/blue-psi GE 1500 + + + + + + + hydraulics/elevator-r/pressure-switch-or EQ 1 + /systems/failures/elevator-right EQ 0 + + + -0.5 + 0.5 + + + + + hydraulics/elevator-r/switch + + + -1.0 + + + + 1.0 + + + + /controls/flight/elevator-right + + + + + + + + + + hydraulics/elevator-l/final + hydraulics/elevator-r/final + + + + -1.0 + 1.0 + + + + + hydraulics/pitch-control + + -0.523599 + 0.296706 + + + + + fcs/pitch-pos-rad + + velocities/mach + atmosphere/density-altitude + + 0 43000 + 0.0 1.00 0.850 + 0.9 0.02 0.750 + +
+
+ +
+ + + + + /controls/flight/elevator-trim + + -1.00 + 0.32 + + + -12.5 + 4.0 + + + + + /controls/flight/elevator-trim-fdm + + -1.00 + 0.32 + + + -0.2181662 + 0.0698132 + + + + + /controls/flight/elevator-trim-fdm + + -1.00 + 0.32 + + + -12.5 + 4.0 + + + + + fcs/pitch-trim-pos-rad + + velocities/mach + atmosphere/density-altitude + + 0 43000 + 0.0 1.00 0.850 + 0.9 0.02 0.750 + +
+
+ +
+ + + + + /controls/engines/engine[0]/throttle-output + 0.95 + fcs/throttle-cmd-norm + fcs/throttle-pos-norm + + + + /controls/engines/engine[1]/throttle-output + 0.95 + fcs/throttle-cmd-norm[1] + fcs/throttle-pos-norm[1] + + + + /engines/engine[0]/n1 + 2.25 + /engines/engine[0]/n1-actual + /engines/engine[3]/n1 + + + + /engines/engine[1]/n1 + 2.25 + /engines/engine[1]/n1-actual + /engines/engine[4]/n1 + + + + /engines/engine[0]/n2 + 2.25 + /engines/engine[0]/n2-actual + /engines/engine[3]/n2 + + + + /engines/engine[1]/n2 + 2.25 + /engines/engine[1]/n2-actual + /engines/engine[4]/n2 + + + + + + + + + + /systems/hydraulic/green-psi GE 1500 + /systems/hydraulic/blue-psi GE 1500 + /systems/hydraulic/yellow-psi GE 1500 + + + + + /controls/flight/rudder-fbw + /controls/flight/rudder-trim + + -1 + 1 + + + + + + + hydraulics/rudder/pressure-switch-or EQ 1 + /systems/failures/rudder EQ 0 + + + -1.0 + 1.0 + + + + + hydraulics/rudder/switch + + + -1.0 + + + + 1.0 + + + + /controls/flight/rudder-fdm + + + + + + + + hydraulics/rudder/final + -1.0 + + + + velocities/r-aero-rad_sec + + velocities/ve-kts + + 30 0.00 + 60 2.00 + +
+ + -0.05 + 0.05 + +
+ + + fcs/yaw-damper-rate + + velocities/ve-kts + + 30 0.0 + 31 1.0 + +
+
+ + + + + /it-fbw/law == 0 + /gear/gear[1]/wow EQ 0 + /gear/gear[2]/wow EQ 0 + + + /it-fbw/law == 1 + /gear/gear[1]/wow EQ 0 + /gear/gear[2]/wow EQ 0 + + + + + hydraulics/rudder/gain + fcs/yaw-damper-switch + + -1 + 1 + + + + + fcs/yaw-sum + + -0.436332 + 0.436332 + + fcs/rudder-pos-rad + + + + fcs/rudder-pos-rad + + -0.436332 + 0.436332 + + + -1 + 1 + + fcs/rudder-pos-norm + + +
+ + + + + /controls/flight/flaps + + + 0 + + + + 35 + + + + fcs/flap-pos-deg + + + + fcs/flap-pos-deg + + 0 + 35 + + + 0 + 1 + + fcs/flap-pos-norm + + + + + + + + /controls/flight/slats + + + 0 + + + + 27 + + + + fcs/slat-pos-deg + + + + fcs/slat-pos-deg + + 0 + 27 + + + 0 + 1 + + fcs/slat-pos-norm + + + + + + + + gear/gear-cmd-norm + + + 0 + + + + 1 + + + + gear/gear-pos-norm + + + + + + + + /controls/flight/speedbrake-output + 1.0 + fcs/speedbrake-pos-norm + + + + + + + + + + /velocities/groundspeed-kt + /controls/flight/rudder + + -1 0 1 + 30.000 -70.0 0 70.0 + 30.001 -10.0 0 10.0 + +
+
+
+ + + fcs/steer-nose-deg[0] + 70 + fcs/steer-pos-deg[0] + + +
+ +
diff --git a/Systems/fbw-pitch.xml b/Systems/fbw-pitch.xml index 8030da07..5f24c9ce 100644 --- a/Systems/fbw-pitch.xml +++ b/Systems/fbw-pitch.xml @@ -346,7 +346,7 @@ /velocities/mach - 0.2-0.26 + 0.2-0.280.9-0.13
@@ -552,6 +552,7 @@ IT-CONTROLLER: PITCH TRIM false output + noise-spike @@ -645,7 +646,8 @@ -1 /controls/flight/elevator-trim - noise-spike + -1.0 + 0.32 0.01 diff --git a/Systems/fcs.xml b/Systems/fcs.xml deleted file mode 100644 index 311321ab..00000000 --- a/Systems/fcs.xml +++ /dev/null @@ -1,376 +0,0 @@ - - - - - - - fcs/internal-fbw-law - - - - - - - /gear/gear[1]/wow == 1 - /gear/gear[2]/wow == 1 - - - - - - - - - /controls/flight/aileron-sum - /controls/flight/aileron-trim - - -1 - 1 - - - - - fcs/roll-trim-sum - - -0.523599 - 0.523599 - - fcs/roll-pos-rad - - - - fcs/roll-pos-rad - - -0.523599 - 0.523599 - - - -1 - 1 - - fcs/roll-pos-norm - - - - - - - - /controls/flight/elevator-sum - /controls/flight/elevator-trim - - -1 - 1 - - - - - fcs/pitch-trim-sum - - -0.523599 - 0.523599 - - fcs/pitch-pos-rad - - - - fcs/pitch-pos-rad - - velocities/mach - atmosphere/density-altitude - - 0.0 43000 - 0.0 1.00 0.85 - 0.9 0.02 0.75 - -
- fcs/pitch-pos-geared -
- - - fcs/pitch-pos-geared - - -0.523599 - 0.523599 - - - -1 - 1 - - fcs/pitch-pos-norm - - -
- - - - - /controls/engines/engine[0]/throttle-output - 0.95 - fcs/throttle-cmd-norm - fcs/throttle-pos-norm - - - - /controls/engines/engine[1]/throttle-output - 0.95 - fcs/throttle-cmd-norm[1] - fcs/throttle-pos-norm[1] - - - - /engines/engine[0]/n1 - 2.25 - /engines/engine[0]/n1-actual - /engines/engine[3]/n1 - - - - /engines/engine[1]/n1 - 2.25 - /engines/engine[1]/n1-actual - /engines/engine[4]/n1 - - - - /engines/engine[0]/n2 - 2.25 - /engines/engine[0]/n2-actual - /engines/engine[3]/n2 - - - - /engines/engine[1]/n2 - 2.25 - /engines/engine[1]/n2-actual - /engines/engine[4]/n2 - - - - - - - - /controls/flight/rudder-fdm - -1 - fcs/rudder-cmd-norm - - - - fcs/rudder-cmd-norm - fcs/yaw-trim-cmd-norm - - -0.35 - 0.35 - - - - - velocities/r-aero-rad_sec - - velocities/ve-kts - - 30 0.00 - 60 2.00 - -
-
- - - aero/beta-rad - - velocities/ve-kts - - 30 0.00 - 60 0.00 - -
-
- - - fcs/yaw-damper-beta - fcs/yaw-damper-rate - - -0.1 - 0.1 - - - - - fcs/yaw-damper-sum - - velocities/ve-kts - - 30 0.0 - 31 1.0 - -
-
- - - fcs/rudder-command-sum - fcs/yaw-damper-final - - -1 - 1 - - - - - fcs/rudder-sum - - -0.35 - 0.35 - - fcs/rudder-pos-rad - - - - fcs/rudder-pos-rad - - -0.35 - 0.35 - - - -1 - 1 - - fcs/rudder-pos-norm - - -
- - - - - /controls/flight/flaps - - - 0 - - - - 35 - - - - fcs/flap-pos-deg - - - - fcs/flap-pos-deg - - 0 - 35 - - - 0 - 1 - - fcs/flap-pos-norm - - - - - - - - /controls/flight/slats - - - 0 - - - - 27 - - - - fcs/slat-pos-deg - - - - fcs/slat-pos-deg - - 0 - 27 - - - 0 - 1 - - fcs/slat-pos-norm - - - - - - - - gear/gear-cmd-norm - - - 0 - - - - 1 - - - - gear/gear-pos-norm - - - - - - - - /controls/flight/speedbrake-output - - - 0 - - - - 1 - - - - fcs/speedbrake-pos-norm - - - - - - - - - Steering command for nose gear - - - /velocities/groundspeed-kt - /controls/flight/rudder - - -1 0 1 - 30.000 -70 0 70 - 30.001 -10 0 10 - -
-
-
-
- - - fcs/steer-nose-deg[0] - 70 - fcs/steer-pos-deg[0] - - -
- -
diff --git a/Systems/hydraulics.xml b/Systems/hydraulics.xml index 6a765580..3e0073a1 100644 --- a/Systems/hydraulics.xml +++ b/Systems/hydraulics.xml @@ -6,288 +6,9 @@ ############################################## --> - + - - - - - - - Aileron Droop - gain - 1.0 - 0.05 - - - - /velocities/airspeed-kt - 620.5 - 1160.0 -
-
- - /systems/hydraulic/aileron-droop -
- - - Elevator Droop - gain - 1.0 - 0.05 - - - - /velocities/airspeed-kt - 720.5 - 1210.0 -
-
- - /systems/hydraulic/elevator-droop -
- - - - - - - - - false - gain - 1.0 - - - - - - /systems/hydraulic/green-psi - 1500 - - - /systems/hydraulic/blue-psi - 1500 - - - - /controls/flight/speedbrake-norm - 1.0 - - - /gear/gear[1]/wow - 1 - - - /gear/gear[2]/wow - 1 - - - /systems/failures/aileron-left - 0 - - - - - - /controls/flight/speedbrake-norm - - /controls/flight/roll-fbw - 0.0 0 - 1.0-1.0 -
-
-
- -0.5 - - - - - - - /systems/hydraulic/green-psi - 1500 - - - /systems/hydraulic/blue-psi - 1500 - - - - /systems/failures/aileron-left - 1 - - - - /systems/hydraulic/aileron-droop - - - - - - - /systems/hydraulic/green-psi - 1500 - - - /systems/hydraulic/blue-psi - 1500 - - - - /systems/failures/aileron-left - 0 - - - - - - - /controls/flight/roll-fbw - -1-0.5 - 0 0.0 - 1 0.5 -
- - /fdm/jsbsim/fcs/flap-pos-deg - 10.00 - 50.13 -
-
-
- - /controls/flight/aileron-left-cmd - -0.5 - 0.5 -
- - - false - noise-spike - /controls/flight/aileron-left-cmd - /controls/flight/aileron-left - 2.5 - - - - - - false - gain - 1.0 - - - - - - /systems/hydraulic/green-psi - 1500 - - - /systems/hydraulic/blue-psi - 1500 - - - - /controls/flight/speedbrake-norm - 1.0 - - - /gear/gear[1]/wow - 1 - - - /gear/gear[2]/wow - 1 - - - /systems/failures/aileron-right - 0 - - - - - - /controls/flight/speedbrake-norm - - /controls/flight/roll-fbw - -0.0 0 - -1.0-1.0 -
-
-
- 0.5 - - - - - - - /systems/hydraulic/green-psi - 1500 - - - /systems/hydraulic/blue-psi - 1500 - - - - /systems/failures/aileron-right - 1 - - - - /systems/hydraulic/aileron-droop - -1.0 - - - - - - - /systems/hydraulic/green-psi - 1500 - - - /systems/hydraulic/blue-psi - 1500 - - - - /systems/failures/aileron-right - 0 - - - - - - - /controls/flight/roll-fbw - -1-0.5 - 0 0.0 - 1 0.5 -
- - /fdm/jsbsim/fcs/flap-pos-deg - 1 0.00 - 5-0.13 -
-
-
- - /controls/flight/aileron-right-cmd - -0.5 - 0.5 -
- - - false - noise-spike - /controls/flight/aileron-right-cmd - /controls/flight/aileron-right - 2.5 - @@ -1438,273 +1159,21 @@ /controls/flight/spoiler-r-sum - - - - - - - false - gain - 1.0 - - - - - - - /controls/flight/aileron-left - /controls/flight/aileron-right - - 1.75 - - - - - /controls/flight/spoiler-l-sum - -1.0 - - /controls/flight/spoiler-r-sum - - 0.25 - - - 0.444444 - - - - /controls/flight/aileron-sum - -1.0 - 1.0 - - - - - - - false - gain - 1.0 - - - - - - /systems/hydraulic/green-psi - 1500 - - - /systems/hydraulic/blue-psi - 1500 - - - - /systems/failures/elevator-left - 1 - - - - /systems/hydraulic/elevator-droop - - - - - - - /systems/hydraulic/green-psi - 1500 - - - /systems/hydraulic/blue-psi - 1500 - - - - /systems/failures/elevator-left - 0 - - - - - - /controls/flight/elevator-fbw - -1-0.5 - 0 0.0 - 1 0.5 -
-
- - /controls/flight/elevator-left-cmd - -0.5 - 0.5 -
- false noise-spike - /controls/flight/elevator-left-cmd - /controls/flight/elevator-left - 2.5 - - - - false - gain - 1.0 - + - - - - /systems/hydraulic/yellow-psi - 1500 - - - /systems/hydraulic/blue-psi - 1500 - - - - /systems/failures/elevator-right - 1 - - + + /systems/hydraulic/green-psi + 1500 + - /systems/hydraulic/elevator-droop - - - - - - - /systems/hydraulic/yellow-psi - 1500 - - - /systems/hydraulic/blue-psi - 1500 - - - - /systems/failures/elevator-right - 0 - - - - - - /controls/flight/elevator-fbw - -1-0.5 - 0 0.0 - 1 0.5 -
-
- - /controls/flight/elevator-right-cmd - -0.5 - 0.5 -
- - - false - noise-spike - /controls/flight/elevator-right-cmd - /controls/flight/elevator-right - 2.5 - - - - false - gain - 1.0 - - - - /controls/flight/elevator-left - /controls/flight/elevator-right - - - - /controls/flight/elevator-sum - -1.0 - 1.0 - - - - - - - - false - gain - 1.0 - - - - - - /systems/hydraulic/green-psi - 1500 - - - /systems/hydraulic/blue-psi - 1500 - - - /systems/hydraulic/yellow-psi - 1500 - - - - /systems/failures/rudder - 1 - - - - 0 - - - - - - - /systems/hydraulic/green-psi - 1500 - - - /systems/hydraulic/blue-psi - 1500 - - - /systems/hydraulic/yellow-psi - 1500 - - - - /systems/failures/rudder - 0 - - - - - - /controls/flight/rudder-fbw - /controls/flight/rudder-trim - - - - /controls/flight/rudder-fdm-cmd - -1.0 - 1.0 - - - - false - noise-spike - /controls/flight/rudder-fdm-cmd - /controls/flight/rudder-fdm - 2.5 +
+ /controls/flight/elevator-trim + /controls/flight/elevator-trim-fdm + 0.1 @@ -1765,8 +1234,6 @@ /controls/flight/speedbrake-output - - Auto Speedbrake @@ -1822,8 +1289,6 @@ /controls/flight/speedbrake-lever - - Main Speedbrake Controller @@ -1837,15 +1302,10 @@ - /controls/flight/speedbrake - - - - Speedbrake Norm - noise-spike - /controls/flight/speedbrake - /controls/flight/speedbrake-norm - 0.7 + + /controls/flight/speedbrake + /controls/flight/speedbrake-norm + diff --git a/Systems/lower-ecam.xml b/Systems/lower-ecam.xml index 4ea42e8c..65e9442f 100644 --- a/Systems/lower-ecam.xml +++ b/Systems/lower-ecam.xml @@ -11,7 +11,7 @@ APU N Output gain - 1 + 1.0 @@ -28,7 +28,7 @@ APU EGT Output gain - 1 + 1.0
@@ -48,7 +48,7 @@ Oil QT Output 1 gain - 1 + 1.0
@@ -64,7 +64,7 @@ Oil QT Output 2 gain - 1 + 1.0
@@ -80,7 +80,7 @@ Oil PSI Output 1 gain - 1 + 1.0
@@ -97,7 +97,7 @@ Oil PSIOutput 2 gain - 1 + 1.0
@@ -114,7 +114,7 @@ Aileron L Indication gain - 1 + 1.0
@@ -131,7 +131,7 @@ Aileron R Indication gain - 1 + 1.0
@@ -148,7 +148,7 @@ Elevator L Indication gain - 1 + 1.0
@@ -165,7 +165,7 @@ Elevator R Indication gain - 1 + 1.0
@@ -182,21 +182,8 @@ Elevator Trim Deg gain - 1 - - -
- /controls/flight/elevator-trim - 0.4200-4.0 - 0.2150-2.0 - 0.1100-1.0 - 0.0000 0.0 - -0.1000 1.0 - -0.2000 2.0 - -0.5000 5.0 -
-
- + -1.0 + /fdm/jsbsim/fcs/pitch-trim-pos-deg /ECAM/Lower/elevator-trim-deg
diff --git a/Systems/upper-ecam.xml b/Systems/upper-ecam.xml index f5448e6e..ae258734 100644 --- a/Systems/upper-ecam.xml +++ b/Systems/upper-ecam.xml @@ -11,7 +11,7 @@ EPR 1 gain - 1 + 1.0 @@ -38,7 +38,7 @@ EPR THR 1 gain - 1 + 1.0 @@ -65,7 +65,7 @@ EPR 2 gain - 1 + 1.0 @@ -92,7 +92,7 @@ EPR THR 2 gain - 1 + 1.0 @@ -119,7 +119,7 @@ EPR LIMIT gain - 1 + 1.0 @@ -146,7 +146,7 @@ EGT 1 gain - 1 + 1.0 @@ -185,7 +185,7 @@ EGT 2 gain - 1 + 1.0 @@ -224,7 +224,7 @@ N1 1 gain - 1 + 1.0 @@ -265,7 +265,7 @@ N1 THR 1 gain - 1 + 1.0 @@ -306,7 +306,7 @@ N1 2 gain - 1 + 1.0 @@ -347,7 +347,7 @@ N1 THR 2 gain - 1 + 1.0 @@ -388,7 +388,7 @@ N1 LIMIT gain - 1 + 1.0 diff --git a/revision.txt b/revision.txt index b1f0448f..f2c96cd5 100644 --- a/revision.txt +++ b/revision.txt @@ -1 +1 @@ -4074 \ No newline at end of file +4100 \ No newline at end of file