Skip to content
Snippets Groups Projects
Commit be8af355 authored by giuliaghirardini's avatar giuliaghirardini
Browse files

[code-refactoring][missions] created aerodynamicsConfig and updated engineConfig, settingsConfig

- wip for flags
- {settingsConfig} changed features struct into settings
parent b253bb88
Branches
Tags
1 merge request!2Final data structure
% CONFIG - This script sets up control parameters
%% AERODYNAMICS DETAILS
% These coefficients are obtained using MISSILE DATCOM, check simulator/README.md for further details.
features = loadConfig("settingsConfig.m");
if not(isfield(aerodynamics,'autoMatProt_flag')) || features.flags.autoMatProt
% Coefficients
Coeffs = load(filename_coeffs);
aerodynamics.Coeffs = Coeffs.CoeffsTot;
% Geometry
aerodynamics.Geometry = Coeffs.Geometry;
aerodynamics.Geometry.xcg = Coeffs.Geometry.xcg';
% State
aerodynamics.State.Alphas = Coeffs.State.Alphas';
aerodynamics.State.Betas = Coeffs.State.Betas';
aerodynamics.State.Altitudes = Coeffs.State.Altitudes';
aerodynamics.State.Machs = Coeffs.State.Machs';
aerodynamics.State.Controls = Coeffs.State.hprot';
aerodynamics.State.xcgTime = Coeffs.State.xcgTime';
clear('Coeffs');
CoeffHighAOA = load('HighAOA.mat');
aerodynamics.highAOA.Coeffs = CoeffHighAOA.CoeffsTot;
aerodynamics.highAOA.State.Alphas = CoeffHighAOA.State.Alphas';
aerodynamics.highAOA.State.Betas = CoeffHighAOA.State.Betas';
aerodynamics.highAOA.State.Altitudes = CoeffHighAOA.State.Altitudes';
aerodynamics.highAOA.State.Machs = CoeffHighAOA.State.Machs';
aerodynamics.highAOA.State.Controls = CoeffHighAOA.State.hprot';
aerodynamics.highAOA.State.xcgTime = CoeffHighAOA.State.xcgTime';
clear('CoeffHighAOA');
aerodynamics.highAOA.tb = aerodynamics.tb;
aerodynamics.highAOA.timeEngineCut = aerodynamics.timeEngineCut;
end
\ No newline at end of file
...@@ -4,3 +4,5 @@ engine.name = 'HRE_FURIA-Rv2-T04T03'; ...@@ -4,3 +4,5 @@ engine.name = 'HRE_FURIA-Rv2-T04T03';
engine.burnTime = inf; % [s] Burn duration engine.burnTime = inf; % [s] Burn duration
engine.ignitionTime = 000; %0.4; % [s] Ignition transient engine.ignitionTime = 000; %0.4; % [s] Ignition transient
engine.cutOffTime = 000; %0.3; % [s] Cut-off transient engine.cutOffTime = 000; %0.3; % [s] Cut-off transient
filename_coeffs = strcat(engine.name, '.mat');
\ No newline at end of file
...@@ -4,4 +4,6 @@ ...@@ -4,4 +4,6 @@
% mission (e.g. whether a specific algorithm is used, the engine type, % mission (e.g. whether a specific algorithm is used, the engine type,
% flags...) % flags...)
features.engineType = 'hybrid'; % [-] choices are: solid, hybrid settings.engineType = 'hybrid'; % [-] choices are: solid, hybrid
\ No newline at end of file
settings.flags.autoMatProt = false;
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment