From 833e728b4b1999d93f025ee05fb3029458ee1636 Mon Sep 17 00:00:00 2001 From: Josh Davidson Date: Sun, 13 Mar 2022 12:39:16 -0400 Subject: [PATCH] FMGC: V/S and FPA filtering bugfix, DU: Add flashing amber for FPA protection also --- Models/Instruments/PFD/PFD.nas | 2 +- Nasal/FMGC/FMGC-b.nas | 1 - Systems/fmgc-drivers.xml | 208 ------------------------------- Systems/fmgc-pitch.xml | 218 ++++++++++++++++++++++++++++++++- 4 files changed, 213 insertions(+), 216 deletions(-) diff --git a/Models/Instruments/PFD/PFD.nas b/Models/Instruments/PFD/PFD.nas index 60d714f3..310d8d9c 100644 --- a/Models/Instruments/PFD/PFD.nas +++ b/Models/Instruments/PFD/PFD.nas @@ -1723,7 +1723,7 @@ var canvas_pfd = { } else { me["FMA_combined"].hide(); me["FMA_combined_box"].hide(); - if ((notification.ap1 or notification.ap2) and fmgc.Modes.PFD.FMA.pitchMode == "V/S" and (notification.overspeedVsProt or notification.underspeedVsProt)) { + if ((notification.ap1 or notification.ap2) and (fmgc.Modes.PFD.FMA.pitchMode == "V/S" or fmgc.Modes.PFD.FMA.pitchMode == "FPA") and (notification.overspeedVsProt or notification.underspeedVsProt)) { me.amberBoxVS = 1; } else { me.amberBoxVS = 0; diff --git a/Nasal/FMGC/FMGC-b.nas b/Nasal/FMGC/FMGC-b.nas index 33b3948e..1595369e 100644 --- a/Nasal/FMGC/FMGC-b.nas +++ b/Nasal/FMGC/FMGC-b.nas @@ -379,7 +379,6 @@ var ITAF = { } else { Internal.bankLimitAuto = 30; } - Internal.bankLimit.setValue(Internal.bankLimitAuto); # If in LNAV mode and route is not longer active, switch to HDG HLD diff --git a/Systems/fmgc-drivers.xml b/Systems/fmgc-drivers.xml index eb45cb7d..61a9dd34 100644 --- a/Systems/fmgc-drivers.xml +++ b/Systems/fmgc-drivers.xml @@ -513,214 +513,6 @@ /it-autoflight/input/vs - - Vertical Speed VMO Protection - gain - - -
- - /instrumentation/airspeed-indicator/true-speed-kt - 101.26859142607174 - - - /fdm/jsbsim/forces/fbx-prop-lbs - - /fdm/jsbsim/aero/alpha-rad - - - - /fdm/jsbsim/forces/fwx-aero-lbs - - 1 - - /it-autoflight/internal/vmo-mmo-error - -0.1 - - - - - - /fdm/jsbsim/inertia/weight-lbs -
-
- - /it-autoflight/internal/overspeed-vs - -6000 - 6000 -
- - - Vertical Speed VLS Protection - gain - - -
- - /instrumentation/airspeed-indicator/true-speed-kt - 101.26859142607174 - - - /fdm/jsbsim/forces/fbx-prop-lbs - - /fdm/jsbsim/aero/alpha-rad - - - - /fdm/jsbsim/forces/fwx-aero-lbs - - 1 - - /it-autoflight/internal/vls-error - -0.1 - - - - - - /fdm/jsbsim/inertia/weight-lbs -
-
- - /it-autoflight/internal/underspeed-vs - -6000 - 6000 -
- - - - - - /instrumentation/airspeed-indicator/indicated-speed-kt - /FMGC/internal/vmo-mmo-minus-5 - - - - - /it-autoflight/output/vert - 1 - - - /it-autoflight/internal/overspeed-vs - /it-autoflight/input/vs - - - - - /it-autoflight/output/vert - 5 - - - /it-autoflight/internal/overspeed-vs - /it-autoflight/internal/target-fpm-fpa-raw - - - - - - /it-autoflight/internal/overspeed-vs-prot - - - - - - - /instrumentation/airspeed-indicator/indicated-speed-kt - /FMGC/internal/vls-switched-plus-5 - - - - - /it-autoflight/output/vert - 1 - - - /it-autoflight/internal/underspeed-vs - /it-autoflight/input/vs - - - - - /it-autoflight/output/vert - 5 - - - /it-autoflight/internal/underspeed-vs - /it-autoflight/internal/target-fpm-fpa-raw - - - - - - /it-autoflight/internal/underspeed-vs-prot - - - - Vertical Speed Filter - noise-spike - true - output - - - - - /it-autoflight/output/ap-on - - /it-autoflight/output/vert - 1 - - - /gear/gear[1]/wow - 0 - - - /gear/gear[2]/wow - 0 - - - - - /it-autoflight/internal/vert-speed-fpm - - - - /it-autoflight/internal/overspeed-vs-prot - - /it-autoflight/internal/overspeed-vs - - - - /it-autoflight/internal/underspeed-vs-prot - - /it-autoflight/internal/underspeed-vs - - /it-autoflight/input/vs - /it-autoflight/internal/vs - - - - /it-autoflight/output/ap-on - /it-autoflight/internal/overspeed-vs-prot - /it-autoflight/internal/underspeed-vs-prot - - /it-autoflight/output/vert - 1 - - - /gear/gear[1]/wow - 0 - - - /gear/gear[2]/wow - 0 - - - - 300 - - 2000 - - VS Abs gain diff --git a/Systems/fmgc-pitch.xml b/Systems/fmgc-pitch.xml index 41afbbed..9d15ccb6 100644 --- a/Systems/fmgc-pitch.xml +++ b/Systems/fmgc-pitch.xml @@ -24,6 +24,212 @@ /it-autoflight/internal/max-vs + + Vertical Speed VMO Protection + gain + + +
+ + /instrumentation/airspeed-indicator/true-speed-kt + 101.26859142607174 + + + /fdm/jsbsim/forces/fbx-prop-lbs + + /fdm/jsbsim/aero/alpha-rad + + + + /fdm/jsbsim/forces/fwx-aero-lbs + + 1 + + /it-autoflight/internal/vmo-mmo-error + -0.1 + + + + + + /fdm/jsbsim/inertia/weight-lbs +
+
+ + /it-autoflight/internal/overspeed-vs + -6000 + 6000 +
+ + + Vertical Speed VLS Protection + gain + + +
+ + /instrumentation/airspeed-indicator/true-speed-kt + 101.26859142607174 + + + /fdm/jsbsim/forces/fbx-prop-lbs + + /fdm/jsbsim/aero/alpha-rad + + + + /fdm/jsbsim/forces/fwx-aero-lbs + + 1 + + /it-autoflight/internal/vls-error + -0.1 + + + + + + /fdm/jsbsim/inertia/weight-lbs +
+
+ + /it-autoflight/internal/underspeed-vs + -6000 + 6000 +
+ + + + + + /instrumentation/airspeed-indicator/indicated-speed-kt + /FMGC/internal/vmo-mmo-minus-5 + + + + + /it-autoflight/output/vert + 1 + + + /it-autoflight/internal/overspeed-vs + /it-autoflight/input/vs + + + + + /it-autoflight/output/vert + 5 + + + /it-autoflight/internal/overspeed-vs + /it-autoflight/internal/target-fpm-fpa-raw + + + + + + /it-autoflight/internal/overspeed-vs-prot + + + + + + + /instrumentation/airspeed-indicator/indicated-speed-kt + /FMGC/internal/vls-switched-plus-5 + + + + + /it-autoflight/output/vert + 1 + + + /it-autoflight/internal/underspeed-vs + /it-autoflight/input/vs + + + + + /it-autoflight/output/vert + 5 + + + /it-autoflight/internal/underspeed-vs + /it-autoflight/internal/target-fpm-fpa-raw + + + + + + /it-autoflight/internal/underspeed-vs-prot + + + + Vertical Speed Filter + noise-spike + + + + + /it-autoflight/output/ap-on + + /it-autoflight/output/vert + 1 + + + /gear/gear[1]/wow + 0 + + + /gear/gear[2]/wow + 0 + + + + + /it-autoflight/internal/vert-speed-fpm + + + + /it-autoflight/internal/overspeed-vs-prot + + /it-autoflight/internal/overspeed-vs + + + + /it-autoflight/internal/underspeed-vs-prot + + /it-autoflight/internal/underspeed-vs + + /it-autoflight/input/vs + /it-autoflight/internal/target-fpm-vs + + + + /it-autoflight/output/ap-on + /it-autoflight/internal/overspeed-vs-prot + /it-autoflight/internal/underspeed-vs-prot + + /it-autoflight/output/vert + 1 + + + /gear/gear[1]/wow + 0 + + + /gear/gear[2]/wow + 0 + + + + 300 + + 10000 + + @@ -351,7 +557,7 @@ /it-autoflight/internal/underspeed-vs /it-autoflight/input/vs - /it-autoflight/internal/vs-fd + /it-autoflight/internal/target-fpm-vs-fd @@ -370,8 +576,8 @@ /it-autoflight/internal/underspeed-vs - /it-autoflight/internal/target-fpm-fpa-raw - /it-autoflight/internal/fpa-fd + /it-autoflight/internal/target-fpm-fpa + /it-autoflight/internal/target-fpm-fpa-fd @@ -394,7 +600,7 @@ 1 - /it-autoflight/internal/vs-fd + /it-autoflight/internal/target-fpm-vs-fd @@ -427,7 +633,7 @@ 5 - /it-autoflight/internal/fpa-fd + /it-autoflight/internal/target-fpm-fpa-fd @@ -479,7 +685,7 @@ 1 - /it-autoflight/internal/vs + /it-autoflight/internal/target-fpm-vs