diff --git a/autoMatricesProtub/mainAutoMatProtub.m b/autoMatricesProtub/mainAutoMatProtub.m index ba18176b90822310ccdaaed54fa0d027b1bdf7e2..5dcd6e0dbefdf3ef3a38dc9fae84e8d6fdc714af 100644 --- a/autoMatricesProtub/mainAutoMatProtub.m +++ b/autoMatricesProtub/mainAutoMatProtub.m @@ -29,7 +29,7 @@ autoMatSettings.vars.hprot = rocket.airbrakes.height; autoMatSettings.varsHighAOA.hprot = []; % 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.') autoMatSettings.vars.Nxcg = 2; end