Skip to content
Snippets Groups Projects
Commit a1162d40 authored by giuliaghirardini's avatar giuliaghirardini Committed by Marco Luigi Gaibotti
Browse files

[refactoring-missions][functions] Solved a bug with variable name for ogive type

parent bdf922fa
No related tags found
1 merge request!5Refactoring missions
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment