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

[msa-refactoring][classes] Updated Components class and rocketConfig (still WIP)

parent 01910810
No related branches found
No related tags found
1 merge request!2Final data structure
...@@ -7,7 +7,7 @@ classdef Component < Config ...@@ -7,7 +7,7 @@ classdef Component < Config
mission Mission mission Mission
end end
properties properties(Access = protected)
variableName string = ''; variableName string = '';
end end
...@@ -45,9 +45,6 @@ classdef Component < Config ...@@ -45,9 +45,6 @@ classdef Component < Config
fileName = obj.configName; fileName = obj.configName;
obj.variableName = strtok(fileName, 'C'); obj.variableName = strtok(fileName, 'C');
if ~isempty(obj.variableName)
fileName = obj.variableName;
end
switch nargin switch nargin
case 1 case 1
......
% CONFIG - This script sets up control parameters % CONFIG - This script sets up control parameters
rocket = Rocket(); rocket = Rocket();
nose = Nose();
payload = Payload();
recovery = Recovery();
electronics = Electronics();
airbrakes = Airbrakes();
motor = Motor();
boat = Boat();
fins = Fins();
pitot = Pitot();
rocket.length = 0; rocket.length = 000;
rocket.diameter = 0; rocket.diameter = 000;
rocket.mass = 0; rocket.mass = 000;
rocket.inertia = 0; rocket.inertia = 000;
\ 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