Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
Common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Skyward
Matlab dependencies
Common
Commits
d40cbc71
Commit
d40cbc71
authored
1 year ago
by
Marco Luigi Gaibotti
Browse files
Options
Downloads
Patches
Plain Diff
[msa-refactoring][classes] Added Wind
parent
7d9a130a
No related branches found
No related tags found
1 merge request
!2
Final data structure
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
classes/components/Wind.m
+28
-14
28 additions, 14 deletions
classes/components/Wind.m
missions/2024_Lyra_Roccaraso_September/config/windConfig.m
+24
-9
24 additions, 9 deletions
missions/2024_Lyra_Roccaraso_September/config/windConfig.m
with
52 additions
and
23 deletions
classes/components/Wind.m
+
28
−
14
View file @
d40cbc71
classdef
untitled
classdef
Wind
<
Component
%UNTITLED Summary of this class goes here
% Detailed explanation goes here
properties
Property1
end
model
% [] Chosen wind model: 'custom' or 'matlab'
methods
function
obj
=
untitled
(
inputArg1
,
inputArg2
)
%UNTITLED Construct an instance of this class
% Detailed explanation goes here
obj
.
Property1
=
inputArg1
+
inputArg2
;
altitudes
magnitudeMin
% [m/s] Minimum Magnitude
magnitudeMax
% [m/s] Maximum Magnitude
elevationMin
% [rad] Minimum Elevation, user input in degrees (ex. 0)
elevationMax
% [rad] Maximum Elevation, user input in degrees (ex. 0) (Max == 90 Deg)
azimuthMin
% [rad] Minimum Azimuth, user input in degrees (ex. 90)
azimuthMax
% [rad] Maximum Azimuth, user input in degrees (ex. 90)
magnitudeDistribution
%
azimuthDistribution
%
magnitude
%
azimuth
%
DayMin
% [d] Minimum Day of the launch
DayMax
% [d] Maximum Day of the launch
HourMin
% [h] Minimum Hour of the day
HourMax
% [h] Maximum Hour of the day
ww
% [m/s] Vertical wind speed
end
function
outputArg
=
method1
(
obj
,
inputArg
)
%METHOD1 Summary of this method goes here
% Detailed explanation goes here
outputArg
=
obj
.
Property1
+
inputArg
;
properties
(
Access
=
protected
)
mission
Mission
=
Mission
()
configName
=
'windConfig.m'
variableName
=
''
end
methods
end
end
This diff is collapsed.
Click to expand it.
missions/2024_Lyra_Roccaraso_September/config/windConfig.m
+
24
−
9
View file @
d40cbc71
...
...
@@ -7,13 +7,28 @@
% 180 deg -> South
% 270 deg -> West
wind
.
magnitude
=
[
5
,
5
];
% [m/s] Magnitude, [min, max] % [m/s] Maximum Magnitude
wind
.
elevationMin
=
[
0
,
0
]
*
pi
/
180
;
% [rad] Elevation, user input in degrees, [min, max <= 90]
wind
.
azimuthMin
=
[
180
,
180
]
*
pi
/
180
;
% [rad] Azimuth, user input in degrees, [min, max]
wind
.
model
=
'custom'
;
% [] Chosen wind model: 'custom' or 'matlab'
wind
.
altitudes
=
[
0
200
2000
];
wind
.
magDistribution
=
[
"g"
,
"u"
,
"u"
];
wind
.
mag
=
[
7
2
10
;
%% CUSTOM WIND MODEL
wind
.
magnitudeMin
=
1
;
% [m/s] Minimum Magnitude
wind
.
magnitudeMax
=
5
;
% [m/s] Maximum Magnitude
wind
.
elevationMin
=
0
*
pi
/
180
;
% [rad] Minimum Elevation, user input in degrees (ex. 0)
wind
.
elevationMax
=
0
*
pi
/
180
;
% [rad] Maximum Elevation, user input in degrees (ex. 0) (Max == 90 Deg)
wind
.
azimuthMin
=
wrapTo360
(
180
)
*
pi
/
180
;
% [rad] Minimum Azimuth, user input in degrees (ex. 90)
wind
.
azimuthMax
=
wrapTo360
(
180
)
*
pi
/
180
;
% [rad] Maximum Azimuth, user input in degrees (ex. 90)
wind
.
altitudes
=
[
0
200
2000
];
% [m] Altitudes at which a distribution change occurs
wind
.
magnitudeDistribution
=
[
"g"
,
"u"
,
"u"
];
% []
wind
.
magnitude
=
[
7
2
10
;
% []
0.5
9
20
];
wind
.
azDistribution
=
[
"u"
,
"u"
,
"u"
];
wind
.
az
=
90
*
pi
/
180
*
ones
(
2
,
3
);
\ No newline at end of file
wind
.
azimuthDistribution
=
[
"u"
,
"u"
,
"u"
];
% []
wind
.
azimuth
=
0
*
pi
/
180
*
ones
(
2
,
3
);
% []
%% MATLAB WIND MODEL
wind
.
DayMin
=
105
;
% [d] Minimum Day of the launch
wind
.
DayMax
=
105
;
% [d] Maximum Day of the launch
wind
.
HourMin
=
4
;
% [h] Minimum Hour of the day
wind
.
HourMax
=
4
;
% [h] Maximum Hour of the day
wind
.
ww
=
0
;
% [m/s] Vertical wind speed
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment