From 7be8e6b199423037974e2fe58f0c6ad04ddcae56 Mon Sep 17 00:00:00 2001 From: Andreas Guther Date: Fri, 15 Mar 2024 23:54:01 +0100 Subject: [PATCH] feat(athr/fadec) tuned reverse thrust ratio and default thrust percentage from TOGA limit --- fbw-a32nx/src/wasm/fbw_a320/src/FlyByWireInterface.cpp | 2 +- .../src/wasm/systems/systems/src/engine/reverser_thrust.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fbw-a32nx/src/wasm/fbw_a320/src/FlyByWireInterface.cpp b/fbw-a32nx/src/wasm/fbw_a320/src/FlyByWireInterface.cpp index 5aa05b18d76d..3bf6ee8a2abe 100644 --- a/fbw-a32nx/src/wasm/fbw_a320/src/FlyByWireInterface.cpp +++ b/fbw-a32nx/src/wasm/fbw_a320/src/FlyByWireInterface.cpp @@ -224,7 +224,7 @@ void FlyByWireInterface::loadConfiguration() { // -------------------------------------------------------------------------- // load values - autothrust autothrustThrustLimitReversePercentageToga = - INITypeConversion::getDouble(iniStructure, "AUTOTHRUST", "THRUST_LIMIT_REVERSE_PERCENTAGE_TOGA", 0.8); + INITypeConversion::getDouble(iniStructure, "AUTOTHRUST", "THRUST_LIMIT_REVERSE_PERCENTAGE_TOGA", 0.813); // print configuration into console std::cout << "WASM: AUTOTHRUST : THRUST_LIMIT_REVERSE_PERCENTAGE_TOGA = " << autothrustThrustLimitReversePercentageToga << std::endl; diff --git a/fbw-common/src/wasm/systems/systems/src/engine/reverser_thrust.rs b/fbw-common/src/wasm/systems/systems/src/engine/reverser_thrust.rs index e3cff601ce31..133b1a363e82 100644 --- a/fbw-common/src/wasm/systems/systems/src/engine/reverser_thrust.rs +++ b/fbw-common/src/wasm/systems/systems/src/engine/reverser_thrust.rs @@ -50,9 +50,9 @@ impl ReverserThrust { } fn reverse_thrust_ratio_from_n1(engine_n1: Ratio) -> Ratio { - let n1_breakpoints = [0., 15., 20., 50., 55.]; + let n1_breakpoints = [0., 15., 20., 50., 55., 100.]; - let reverse_thrust_ratio = [0., 0., 0.15, 0.4, 0.42]; + let reverse_thrust_ratio = [0., 0., 0.04, 0.15, 0.15, 0.15]; Ratio::new::(interpolation( &n1_breakpoints,