diff --git a/unitTests/tests/TestSimulator.m b/unitTests/tests/TestSimulator.m index aa4044a09c9ae8d37a15210dad0c3c4e08240159..af33c4ab5c3740104f4733e445837bbc890354ef 100644 --- a/unitTests/tests/TestSimulator.m +++ b/unitTests/tests/TestSimulator.m @@ -64,18 +64,18 @@ classdef TestSimulator < matlab.unittest.TestCase simPath = fullfile(fileparts(mfilename('fullpath')), '..', '..', 'simulator', 'simulatorConfig.m'); settings = Settings('ode', simPath); - if strcmp(verifiable, 'ballistic') + if verifiable == "ballistic" settings.simulator.ballistic = 1; settings.simulator.parafoil = 0; - end - - if verifiable == "multipleAB" + elseif verifiable == "multipleAB" rocket.airbrakes.enabled = 1; + elseif verifiable == "engineCut" + rocket.motor.cutoffTime = 3; + % elseif verifiable == "HRE" + % rocket.motor = Motor(Mission("2024_Lyra_Portugal_October")); + % elseif verifiable == "solid" + % rocket.motor = Motor(Mission("2022_Pyxis_Portugal_October")); end - - % if verifiable == "engineCut" - % rocket.motor.cutOffTime = ; - % end % simulator [stateA, stateF] = mainSimulator(rocket, wind, environment, settings, 'unitTest', true); @@ -86,7 +86,7 @@ classdef TestSimulator < matlab.unittest.TestCase filePath = fullfile(folderPath, fileName); if ~exist(folderPath, "dir"), mkdir(folderPath); end - + save(filePath,'stateA','stateF', 'settings',... 'rocket', 'environment', 'wind');