From a1162d40a11cc27528b95a3c1b1915917252b474 Mon Sep 17 00:00:00 2001 From: giuliaghirardini <giuliaghirardini2001@gmail.com> Date: Tue, 16 Jul 2024 10:21:47 +0200 Subject: [PATCH] [refactoring-missions][functions] Solved a bug with variable name for ogive type --- functions/miscellaneous/createDissileInput.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/miscellaneous/createDissileInput.m b/functions/miscellaneous/createDissileInput.m index de7c05f..cd655d6 100644 --- a/functions/miscellaneous/createDissileInput.m +++ b/functions/miscellaneous/createDissileInput.m @@ -83,7 +83,7 @@ input.axibod.about = 'Axisymmetric body quantities'; input.axibod.TNOSE = find(strcmp(noses, rocket.payload.noseType))-1; % [0=CONICAL, 1=OGIVE, 2=POWER, 3=HAACK, 4=KARMAN, 5=MHAACK] ogive type if strcmp(rocket.payload.noseType, 'MHAACK') input.axibod.MHAACKCP = [rocket.payload.noseCMod rocket.payload.nosePMod]; % [-] CMOD PMOD mhaack parameters, set CMOD = 1/3 and PMOD = 1 to get a haack -elseif strcmp(rocket.OgType, 'POWER') +elseif strcmp(rocket.payload.noseType, 'POWER') input.axibod.POWER = rocket.payload.nosePower; % [-] Exponent of the power series, set a value between 0 and 1 end input.axibod.LNOSE = rocket.payload.noseLength; % [m] Nose length -- GitLab