Skip to content
Snippets Groups Projects
Commit 05e52d1d authored by Emilio Corigliano's avatar Emilio Corigliano
Browse files

[MEA] Now cd correction factor applied only to force estimation and not apogee prediction

parent 83b1d17f
No related branches found
No related tags found
1 merge request!320[Algorithms] Update of MEA and NAS algorithms
Pipeline #10210 passed
......@@ -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)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment