From 541015a88936529e07948eb3b473cd9e0ac4e7ee Mon Sep 17 00:00:00 2001
From: Mauco03 <marco.gaibotti@skywarder.eu>
Date: Tue, 25 Feb 2025 21:27:02 +0100
Subject: [PATCH] [handle-value-conversion][autoMatrices] Changed isHRE to
 motor.type

---
 autoMatricesProtub/mainAutoMatProtub.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/autoMatricesProtub/mainAutoMatProtub.m b/autoMatricesProtub/mainAutoMatProtub.m
index ba18176b..5dcd6e0d 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
-- 
GitLab