Skip to content
Snippets Groups Projects
Commit 541015a8 authored by Marco Luigi Gaibotti's avatar Marco Luigi Gaibotti
Browse files

[handle-value-conversion][autoMatrices] Changed isHRE to motor.type

parent 13640ce9
No related branches found
No related tags found
1 merge request!17Handle value conversion
...@@ -29,7 +29,7 @@ autoMatSettings.vars.hprot = rocket.airbrakes.height; ...@@ -29,7 +29,7 @@ autoMatSettings.vars.hprot = rocket.airbrakes.height;
autoMatSettings.varsHighAOA.hprot = []; autoMatSettings.varsHighAOA.hprot = [];
% overriding xcg number if the motor is solid % overriding xcg number if the motor is solid
if ~rocket.motor.isHRE && autoMatSettings.vars.Nxcg ~= 2 if rocket.motor.type == MotorType.Solid && autoMatSettings.vars.Nxcg ~= 2
warning('Overwriting xCg to 2 for solid rocket motors.') warning('Overwriting xCg to 2 for solid rocket motors.')
autoMatSettings.vars.Nxcg = 2; autoMatSettings.vars.Nxcg = 2;
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment