From 05e52d1dc9edce935b66f619e728fd39bed212aa Mon Sep 17 00:00:00 2001 From: Emilio Corigliano <emilio.corigliano@skywarder.eu> Date: Mon, 23 Sep 2024 12:08:04 +0200 Subject: [PATCH] [MEA] Now cd correction factor applied only to force estimation and not apogee prediction --- src/shared/algorithms/MEA/MEA.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shared/algorithms/MEA/MEA.cpp b/src/shared/algorithms/MEA/MEA.cpp index 494bcaab6..0b4108a07 100644 --- a/src/shared/algorithms/MEA/MEA.cpp +++ b/src/shared/algorithms/MEA/MEA.cpp @@ -114,14 +114,14 @@ void MEA::computeForce(const Step &step) mach = Aeroutils::computeMach(-step.mslAltitude, step.verticalSpeed, Constants::MSL_TEMPERATURE); - cd = cdCorrectionFactor * Aeroutils::computeCd(coeffs, mach); + cd = Aeroutils::computeCd(coeffs, mach); rho = Aeroutils::computeRho(-step.mslAltitude, Constants::MSL_TEMPERATURE); // Dynamic pressure q = 0.5f * rho * (step.verticalSpeed * step.verticalSpeed); // Aerodynamic force component - force = q * crossSection * cd; + force = q * crossSection * (cd * cdCorrectionFactor); if (step.mslAltitude > 800) { -- GitLab