From 980f4165e3b771afc96141ea1dadb033d5a42320 Mon Sep 17 00:00:00 2001 From: giuliaghirardini <giuliaghirardini2001@gmail.com> Date: Thu, 14 Nov 2024 15:59:47 +0100 Subject: [PATCH] [design-updates] Bugfix in singleGArun --- functions/miscellaneous/singleGArun.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/functions/miscellaneous/singleGArun.m b/functions/miscellaneous/singleGArun.m index 7ec2063..483a62a 100644 --- a/functions/miscellaneous/singleGArun.m +++ b/functions/miscellaneous/singleGArun.m @@ -169,6 +169,9 @@ for i = 1:nAz indexBeta = find(betaExit(i) == input.fltcon.BETA); launchpad.indexAlpha(i) = indexAlpha-1; launchpad.indexBeta(i) = indexBeta; + + launchpad.indexAlpha(launchpad.indexAlpha <= 0) = 1; + launchpad.indexBeta(launchpad.indexBeta <= 0) = 1; end [c, ~] = XCPcheck(x, input, data_opt, launchpad, rocket, environment, settings); -- GitLab