summaryrefslogtreecommitdiffstats
path: root/uav_sim_step.m
diff options
context:
space:
mode:
authorNao Pross <np@0hm.ch>2024-05-31 14:26:27 +0200
committerNao Pross <np@0hm.ch>2024-05-31 14:26:27 +0200
commit83c1d7cbca88dc82fa873445e20e152ae1ee0507 (patch)
treecce44b5b6bd4901c21432dac1690975238f91b34 /uav_sim_step.m
parentUpdate weights (diff)
downloaduav-83c1d7cbca88dc82fa873445e20e152ae1ee0507.tar.gz
uav-83c1d7cbca88dc82fa873445e20e152ae1ee0507.zip
Add worst case
Diffstat (limited to '')
-rw-r--r--uav_sim_step.m4
1 files changed, 3 insertions, 1 deletions
diff --git a/uav_sim_step.m b/uav_sim_step.m
index 2130a3d..7bf0f2b 100644
--- a/uav_sim_step.m
+++ b/uav_sim_step.m
@@ -18,6 +18,7 @@ end
% There is an uncertainty block
if isfield(uncert, 'Delta')
+ fprintf(' - Running worst case with provided Delta.\n');
hws.assignin('Delta', uncert.Delta);
else
fprintf(' - No uncertainty error Delta was provided, setting to zero.\n');
@@ -44,7 +45,8 @@ else
eigvals = eig(P_clp.A);
for i = 1:nx
if real(eigvals(i)) >= 0
- error('Closed loop is not stable!');
+ fprintf(' Closed loop is not stable!\n');
+ break;
end
end
end