From 1cf7afa35fe82d0466bd902e1be0f2e36ea49358 Mon Sep 17 00:00:00 2001 From: Joshua Davidson Date: Fri, 29 Dec 2017 15:27:41 -0500 Subject: [PATCH] A32X: Fix not enough drag, fix some other, add new EPR calculation system --- Engines/cfm56_5b4.xml | 12 ++-- Engines/leap1a26.xml | 12 ++-- Engines/pw1127g.xml | 12 ++-- Engines/v2527_a5.xml | 12 ++-- Models/FlightDeck/a320.flightdeck.xml | 2 +- Systems/a320-aerodynamics.xml | 13 ++-- Systems/fadec-cfm.xml | 14 ++--- Systems/fadec-iae.xml | 86 ++++++++++++++++++++------- Systems/fmgc-drivers.xml | 6 +- revision.txt | 2 +- 10 files changed, 109 insertions(+), 62 deletions(-) diff --git a/Engines/cfm56_5b4.xml b/Engines/cfm56_5b4.xml index e7a01364..49983bb5 100644 --- a/Engines/cfm56_5b4.xml +++ b/Engines/cfm56_5b4.xml @@ -27,12 +27,12 @@ atmosphere/density-altitude -10000 0 10000 20000 30000 40000 50000 - 0.0 0.0430 0.0458 0.0378 0.0684 0.0819 0.0793 0.0000 - 0.2 0.0500 0.0291 0.0205 0.0514 0.0727 0.0729 0.0000 - 0.4 0.0040 0.0047 0.0012 0.0412 0.0585 0.0671 0.0000 - 0.6 0.0000 0.0000 0.0000 0.0000 0.0416 0.0518 0.0000 - 0.8 0.0000 0.0000 0.0000 0.0000 0.0354 0.0468 0.0000 - 1.0 0.0000 0.0000 0.0000 0.0000 0.0000 0.0352 0.0000 + 0.0 0.0430 0.0458 0.0378 0.0684 0.0619 0.0693 0.0000 + 0.2 0.0500 0.0291 0.0205 0.0514 0.0627 0.0629 0.0000 + 0.4 0.0040 0.0047 0.0012 0.0412 0.0485 0.0571 0.0000 + 0.6 0.0000 0.0000 0.0000 0.0000 0.0316 0.0418 0.0000 + 0.8 0.0000 0.0000 0.0000 0.0000 0.0254 0.0368 0.0000 + 1.0 0.0000 0.0000 0.0000 0.0000 0.0000 0.0252 0.0000 diff --git a/Engines/leap1a26.xml b/Engines/leap1a26.xml index ba223fa4..e3bc3491 100644 --- a/Engines/leap1a26.xml +++ b/Engines/leap1a26.xml @@ -27,12 +27,12 @@ atmosphere/density-altitude -10000 0 10000 20000 30000 40000 50000 - 0.0 0.0430 0.0458 0.0378 0.0684 0.0819 0.0793 0.0000 - 0.2 0.0500 0.0291 0.0205 0.0514 0.0727 0.0729 0.0000 - 0.4 0.0040 0.0047 0.0012 0.0412 0.0585 0.0671 0.0000 - 0.6 0.0000 0.0000 0.0000 0.0000 0.0416 0.0518 0.0000 - 0.8 0.0000 0.0000 0.0000 0.0000 0.0354 0.0468 0.0000 - 1.0 0.0000 0.0000 0.0000 0.0000 0.0000 0.0352 0.0000 + 0.0 0.0430 0.0458 0.0378 0.0684 0.0619 0.0693 0.0000 + 0.2 0.0500 0.0291 0.0205 0.0514 0.0627 0.0629 0.0000 + 0.4 0.0040 0.0047 0.0012 0.0412 0.0485 0.0571 0.0000 + 0.6 0.0000 0.0000 0.0000 0.0000 0.0316 0.0418 0.0000 + 0.8 0.0000 0.0000 0.0000 0.0000 0.0254 0.0368 0.0000 + 1.0 0.0000 0.0000 0.0000 0.0000 0.0000 0.0252 0.0000 diff --git a/Engines/pw1127g.xml b/Engines/pw1127g.xml index e9818b33..394f6f26 100644 --- a/Engines/pw1127g.xml +++ b/Engines/pw1127g.xml @@ -27,12 +27,12 @@ atmosphere/density-altitude -10000 0 10000 20000 30000 40000 50000 - 0.0 0.0430 0.0458 0.0378 0.0684 0.0819 0.0793 0.0000 - 0.2 0.0500 0.0291 0.0205 0.0514 0.0727 0.0729 0.0000 - 0.4 0.0040 0.0047 0.0012 0.0412 0.0585 0.0671 0.0000 - 0.6 0.0000 0.0000 0.0000 0.0000 0.0416 0.0518 0.0000 - 0.8 0.0000 0.0000 0.0000 0.0000 0.0354 0.0468 0.0000 - 1.0 0.0000 0.0000 0.0000 0.0000 0.0000 0.0352 0.0000 + 0.0 0.0430 0.0458 0.0378 0.0684 0.0619 0.0693 0.0000 + 0.2 0.0500 0.0291 0.0205 0.0514 0.0627 0.0629 0.0000 + 0.4 0.0040 0.0047 0.0012 0.0412 0.0485 0.0571 0.0000 + 0.6 0.0000 0.0000 0.0000 0.0000 0.0316 0.0418 0.0000 + 0.8 0.0000 0.0000 0.0000 0.0000 0.0254 0.0368 0.0000 + 1.0 0.0000 0.0000 0.0000 0.0000 0.0000 0.0252 0.0000 diff --git a/Engines/v2527_a5.xml b/Engines/v2527_a5.xml index c75d070a..9c1253d3 100644 --- a/Engines/v2527_a5.xml +++ b/Engines/v2527_a5.xml @@ -27,12 +27,12 @@ atmosphere/density-altitude -10000 0 10000 20000 30000 40000 50000 - 0.0 0.0430 0.0458 0.0378 0.0684 0.0819 0.0793 0.0000 - 0.2 0.0500 0.0291 0.0205 0.0514 0.0727 0.0729 0.0000 - 0.4 0.0040 0.0047 0.0012 0.0412 0.0585 0.0671 0.0000 - 0.6 0.0000 0.0000 0.0000 0.0000 0.0416 0.0518 0.0000 - 0.8 0.0000 0.0000 0.0000 0.0000 0.0354 0.0468 0.0000 - 1.0 0.0000 0.0000 0.0000 0.0000 0.0000 0.0352 0.0000 + 0.0 0.0430 0.0458 0.0378 0.0684 0.0619 0.0693 0.0000 + 0.2 0.0500 0.0291 0.0205 0.0514 0.0627 0.0629 0.0000 + 0.4 0.0040 0.0047 0.0012 0.0412 0.0485 0.0571 0.0000 + 0.6 0.0000 0.0000 0.0000 0.0000 0.0316 0.0418 0.0000 + 0.8 0.0000 0.0000 0.0000 0.0000 0.0254 0.0368 0.0000 + 1.0 0.0000 0.0000 0.0000 0.0000 0.0000 0.0252 0.0000 diff --git a/Models/FlightDeck/a320.flightdeck.xml b/Models/FlightDeck/a320.flightdeck.xml index 2a614708..6dd2521c 100644 --- a/Models/FlightDeck/a320.flightdeck.xml +++ b/Models/FlightDeck/a320.flightdeck.xml @@ -5183,7 +5183,7 @@ translate SpdBrk - controls/flight/speedbrake + controls/flight/speedbrake-lever 0.052 1 diff --git a/Systems/a320-aerodynamics.xml b/Systems/a320-aerodynamics.xml index 43be491a..be7e2f18 100644 --- a/Systems/a320-aerodynamics.xml +++ b/Systems/a320-aerodynamics.xml @@ -164,11 +164,11 @@ aero/alpha-rad - -1.57 1.2083 - -0.20 0.0231 + -1.57 1.3083 + -0.20 0.0331 0.00 0.0000 - 0.20 0.0231 - 1.57 1.2083 + 0.20 0.0331 + 1.57 1.3083
@@ -180,7 +180,7 @@ aero/qbar-psf metrics/Sw-sqft aero/cl-squared - 0.0374 + 0.0384 @@ -193,7 +193,8 @@ velocities/mach 0.00 0.000 - 0.79 0.000 + 0.20 0.000 + 0.79 0.002 1.10 0.023 1.80 0.015 diff --git a/Systems/fadec-cfm.xml b/Systems/fadec-cfm.xml index 79fb501d..bae80e0d 100644 --- a/Systems/fadec-cfm.xml +++ b/Systems/fadec-cfm.xml @@ -16,7 +16,7 @@ gain 1.0 0.05 - + /environment/temperature-degc @@ -34,7 +34,7 @@ gain1.00.05 - +
/FMGC/internal/flex @@ -76,7 +76,7 @@
- /position/altitude-ft + /fdm/jsbsim/atmosphere/density-altitude 00.035420000.285
@@ -91,7 +91,7 @@ gain 1.0 0.05 - + /controls/engines/engine[0]/throttle-pos @@ -113,7 +113,7 @@ gain1.00.05 - +
/controls/engines/engine[1]/throttle-pos @@ -135,7 +135,7 @@ gain1.00.05 - +
@@ -160,7 +160,7 @@ gain1.00.05 - +
diff --git a/Systems/fadec-iae.xml b/Systems/fadec-iae.xml index 7305caff..b4f606fd 100644 --- a/Systems/fadec-iae.xml +++ b/Systems/fadec-iae.xml @@ -16,7 +16,7 @@ gain1.00.05 - +
/environment/temperature-degc @@ -34,7 +34,7 @@ gain1.00.05 - +
/FMGC/internal/flex @@ -76,7 +76,7 @@
- /position/altitude-ft + /fdm/jsbsim/atmosphere/density-altitude 00.035420000.285
@@ -91,7 +91,7 @@ gain 1.0 0.05 - + /controls/engines/engine[0]/throttle-pos @@ -113,7 +113,7 @@ gain1.00.05 - +
/controls/engines/engine[1]/throttle-pos @@ -135,7 +135,7 @@ gain1.00.05 - +
@@ -160,7 +160,7 @@ gain1.00.05 - +
@@ -184,12 +184,12 @@ EPR Scalegain1.0 - +
- /position/altitude-ft + /fdm/jsbsim/atmosphere/density-altitude 00.576 - 420001.076 + 420000.876
@@ -197,19 +197,61 @@ - EPR Scale 2 + Alpha Normalizer gain 1.0 - + + + + /gear/gear[0]/wow + 0 + + + /fdm/jsbsim/aero/alpha-deg + + 0 + /fdm/jsbsim/aero/alpha-deg-norm + + + + EPR Scale 2 Sum/Difference + gain + 1.0 + - - /position/altitude-ft - 00.988 - 420000.708 -
+ + + /fdm/jsbsim/atmosphere/density-altitude + 00.988 + 430000.858 +
+ + /fdm/jsbsim/velocities/mach + 0.000.000 + 0.090.000 + 0.150.016 + 0.220.022 + 1.000.010 +
+ + /fdm/jsbsim/aero/alpha-deg-norm + 0.0 0.00 + 2.0 0.00 + 17.0 0.06 +
+
+ /engines/epr-scale-b-cmd +
+ + + EPR Scale 2 Sum/Difference Exponential + exponential + 1.0 + /engines/epr-scale-b-cmd /engines/epr-scale-b + 0.32 @@ -218,7 +260,7 @@ EPR N1 Input Engine 1 gain 1.0 - + /engines/engine[0]/n1-actual @@ -237,7 +279,7 @@ EPR N1 Input Engine 2 gain 1.0 - + /engines/engine[1]/n1-actual @@ -256,7 +298,7 @@ EPR THR Input Engine 1 gain 1.0 - + @@ -283,7 +325,7 @@ EPR THR Input Engine 2gain1.0 - +
@@ -310,7 +352,7 @@ EPR THR Input Flexgain1.0 - +
diff --git a/Systems/fmgc-drivers.xml b/Systems/fmgc-drivers.xml index 381962c3..994f01f1 100644 --- a/Systems/fmgc-drivers.xml +++ b/Systems/fmgc-drivers.xml @@ -165,6 +165,8 @@ /FMGC/internal/mng-alt-spd + 250 + 345 @@ -178,7 +180,7 @@
/instrumentation/altimeter/indicated-altitude-ft200000.625 - 420000.825 + 420000.805
/FMGC/internal/cost-index @@ -189,6 +191,8 @@ /FMGC/internal/mng-alt-mach + 0.500 + 0.815 diff --git a/revision.txt b/revision.txt index d3603138..73a348fe 100644 --- a/revision.txt +++ b/revision.txt @@ -1 +1 @@ -4200 \ No newline at end of file +4201 \ No newline at end of file