Skip to content
Snippets Groups Projects
Commit 6ad064e2 authored by Marco Luigi Gaibotti's avatar Marco Luigi Gaibotti
Browse files

[msa-refactoring][classes] Applying corrections

- Added headers
- Removed unnecessary lines/files
parent a0b0b500
Branches
No related tags found
1 merge request!2Final data structure
Source diff could not be displayed: it is stored in LFS. Options to address this: view the blob.
classdef(Abstract) Config < handle classdef(Abstract) Config < handle
% Config: Represents an abstraction layer for all config-dependent Classes % Config: Represents an abstraction layer for all config-dependent Classes
% Config standardizes property management and declares fundemental % Config standardizes property management and declares fundemental
% properties (see doc for more info) % methods (see doc for more info)
properties(Abstract, Access = protected) properties(Abstract, Access = protected)
configName {mustBeTextScalar} configName {mustBeTextScalar}
...@@ -34,6 +35,7 @@ classdef(Abstract) Config < handle ...@@ -34,6 +35,7 @@ classdef(Abstract) Config < handle
% %
% WARNING: If second output is used, only values with public % WARNING: If second output is used, only values with public
% getAccess will be read % getAccess will be read
arguments arguments
obj obj
preset char {mustBeMember(preset, {'readable', 'writable', ''})} = '' preset char {mustBeMember(preset, {'readable', 'writable', ''})} = ''
......
classdef Mission < Config classdef Mission < Config
% Config: Contains names and paths needed to access mission-dependent config files % Mission: Contains names and paths needed to access mission-dependent
% config files
% %
% To get an empty Mission, run "Mission()", or "Mission(false)" % Constructor:
% To get an initialized Mission, run "Mission(true)" % - Mission: Creates an instance of the Mission class.
% Where the argument specifies whether to read config files or not % Loaded config: missionConfig.m
% Loaded data: -
% Arguments:
% - loadConfig: bool, Whether to load config file or return
% an empty mission
properties properties
name % Mission name, used to access <mission> folder name % Mission name, used to access <mission> folder
......
classdef Environment < Component classdef Environment < Component
%ENVIRONMENT Summary of this class goes here % Environment: Represents launch site dependent variables.
% Detailed explanation goes here %
% Constructor:
% - Environment: Creates an instance of the Environment class.
% Loaded config: environmentConfig.m
% Loaded data: -
% Arguments:
% - mission: Mission, mission object
% - motor: Motor, used to compute pin distance
% - varIn: (optional) config source. Alternative to config.m
% file
properties properties
lat0 double % [deg] Launchpad latitude lat0 double % [deg] Launchpad latitude
......
classdef Parachute < Component classdef Parachute < Component
%PARACHUTE Summary of this class goes here % Parachute: Represents a parachute component.
% Detailed explanation goes here %
% Constructor:
% - Parachute: Creates an instance of the Parachute class.
% Loaded config: rocketConfig.m > parachute
% Loaded data: -
% Arguments:
% - mission: Mission, mission object
% - varIn: (optional) config source. Alternative to config.m
% file
properties properties
name {mustBeTextScalar} = '' name {mustBeTextScalar} = ''
surface double % [m^2] Surface surface double % [m^2] Surface
...@@ -30,11 +39,8 @@ classdef Parachute < Component ...@@ -30,11 +39,8 @@ classdef Parachute < Component
mission Mission = Mission() mission Mission = Mission()
varIn = [] varIn = []
end end
% if nargin > 0 && nargin < 2, error('Too few arguments. Type help for more info'); end
% if nargin > 3, error('Too many arguments.'); end
obj@Component(mission, varIn); obj@Component(mission, varIn);
%obj.motor = motor;
end end
end end
end end
......
classdef Pitot < Component classdef Pitot < Component
%PITOT Summary of this class goes here % Pitot: Represents a pitot tube.
% Detailed explanation goes here %
% Constructor:
% - Pitot: Creates an instance of the Pitot class.
% Loaded config: rocketConfig.m > pitot
% Loaded data: -
% Arguments:
% - mission: Mission, mission object
% - varIn: (optional) config source. Alternative to config.m
% file
properties properties
length double % [m] Pitot tube length length double % [m] Pitot tube length
......
classdef WindCustom < Component classdef WindCustom < Component
%UNTITLED Summary of this class goes here % WindCustom: Represents Skyward's custom wind model.
% Detailed explanation goes here %
% Constructor:
% - WindCustom: Creates an instance of the WindCustom class.
% Loaded config: windConfig.m > windCustom
% Loaded data: -
% Arguments:
% - mission: Mission, mission object
% - varIn: (optional) config source. Alternative to config.m
% file
properties properties
altitudes (1, :) altitudes (1, :)
......
classdef WindMatlab < Component classdef WindMatlab < Component
%UNTITLED Summary of this class goes here % WindMatlab: Represents matlab wind variables.
% Detailed explanation goes here %
% Constructor:
% - WindMatlab: Creates an instance of the WindMatlab class.
% Loaded config: windConfig.m > windMatlab
% Loaded data: -
% Arguments:
% - mission: Mission, mission object
% - environment: Environment, used to get launch coordinates
% - varIn: (optional) config source. Alternative to config.m
% file
properties properties
DayMin % [d] Minimum Day of the launch DayMin % [d] Minimum Day of the launch
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment