From 5a90c8b3def9bfb4b36b81b0b4646c6b60661db3 Mon Sep 17 00:00:00 2001
From: giuliaghirardini <giuliaghirardini2001@gmail.com>
Date: Tue, 29 Oct 2024 13:58:43 +0100
Subject: [PATCH] [design-updates][config] Updated Euroc and Roccaraso wind
 data according to a bug in stability analysis

Stability analysis issue when using gaussian distribution for bounded ramp/terrain altitutes.
The first element of wind parameters must be with a uniform distribution. If you want to add
a gaussian distribution of wind parameters related to terrain wind, add a new altitude element.
---
 .../2024_Lyra_Portugal_October/config/windConfig.m | 14 +++++++-------
 .../config/windConfig.m                            | 14 +++++++-------
 2 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/missions/2024_Lyra_Portugal_October/config/windConfig.m b/missions/2024_Lyra_Portugal_October/config/windConfig.m
index 843632f..48fd0be 100644
--- a/missions/2024_Lyra_Portugal_October/config/windConfig.m
+++ b/missions/2024_Lyra_Portugal_October/config/windConfig.m
@@ -11,13 +11,13 @@
 
 windCustom = WindCustom();
 
-windCustom.altitudes = [0 150 500 1000 1500 2000 2500 3000 3500 4000];                    % [m] Altitudes at which a distribution change occurs
-windCustom.magnitudeDistribution = ["g", "g", "g", "g", "g", "g", "g", "g", "g", "g"];     % [-] Distribution type: "u" - uniform, "g" - gaussian
-windCustom.magnitudeParameters = [3 4 6 7 8 11 12 14 15 18; 
-                                  1.5 1.5 2 2 2 2 2 2 2 2];               % [m/s] Distribution parameters: "u" - [min; max], "g" - [mu; sigma]
-windCustom.azimuthDistribution = ["u", "u", "u", "u", "u", "u", "u", "u", "u", "u"];       % [-] Distribution type: "u" - uniform, "g" - gaussian
-windCustom.azimuthParameters = [197 150 160 180 200 200 200 200 200 210; 
-                                217 170 180 200 220 220 220 220 220 230]*pi/180;    % [deg] Distribution parameters: "u" - [min; max], "g" - [mu; sigma]
+windCustom.altitudes = [0 10 150 500 1000 1500 2000 2500 3000 3500 4000];                    % [m] Altitudes at which a distribution change occurs
+windCustom.magnitudeDistribution = ["u","g", "g", "g", "g", "g", "g", "g", "g", "g", "g"];     % [-] Distribution type: "u" - uniform, "g" - gaussian
+windCustom.magnitudeParameters = [3 3 4 6 7 8 11 12 14 15 18; 
+                                  7 1.5 1.5 2 2 2 2 2 2 2 2];               % [m/s] Distribution parameters: "u" - [min; max], "g" - [mu; sigma]
+windCustom.azimuthDistribution = ["u", "u", "u", "u", "u", "u", "u", "u", "u", "u", "u"];       % [-] Distribution type: "u" - uniform, "g" - gaussian
+windCustom.azimuthParameters = [197 197 150 160 180 200 200 200 200 200 210; 
+                                217 217 170 180 200 220 220 220 220 220 230]*pi/180;    % [deg] Distribution parameters: "u" - [min; max], "g" - [mu; sigma]
 
 % windCustom.altitudes = [0 4500];
 % windCustom.magnitudeDistribution = ["u", "u"];
diff --git a/missions/2024_Lyra_Roccaraso_September/config/windConfig.m b/missions/2024_Lyra_Roccaraso_September/config/windConfig.m
index cd274da..0f889ba 100644
--- a/missions/2024_Lyra_Roccaraso_September/config/windConfig.m
+++ b/missions/2024_Lyra_Roccaraso_September/config/windConfig.m
@@ -11,13 +11,13 @@
 
 windCustom = WindCustom();
 
-windCustom.altitudes = [0 500 900 1200];                    % [m] Altitudes at which a distribution change occurs
-windCustom.magnitudeDistribution = ["g", "g", "g", "g"];     % [-] Distribution type: "u" - uniform, "g" - gaussian
-windCustom.magnitudeParameters = [4 5 5 4;               % [m/s] Distribution parameters: "u" - [min; max], "g" - [mu; sigma]
-                                  0.25 0.83 0.83 0.83];
-windCustom.azimuthDistribution = ["u", "u", "u", "u"];       % [-] Distribution type: "u" - uniform, "g" - gaussian
-windCustom.azimuthParameters = [350 320 320 320;
-    370 370 370 370]*pi/180;    % [deg] Distribution parameters: "u" - [min; max], "g" - [mu; sigma]
+windCustom.altitudes = [0 10 500 900 1200];
+windCustom.magnitudeDistribution = ["u", "g", "g", "g", "g"];     % [-] Distribution type: "u" - uniform, "g" - gaussian
+windCustom.magnitudeParameters = [4 4 5 5 4;               % [m/s] Distribution parameters: "u" - [min; max], "g" - [mu; sigma]
+                                  8 0.25 0.83 0.83 0.83];
+windCustom.azimuthDistribution = ["u", "u", "u", "u", "u"];       % [-] Distribution type: "u" - uniform, "g" - gaussian
+windCustom.azimuthParameters = [350 350 320 320 320;
+    370 370 370 370 370]*pi/180;    % [deg] Distribution parameters: "u" - [min; max], "g" - [mu; sigma]
 
 %% MATLAB WIND MODEL
 
-- 
GitLab