From 83c1d7cbca88dc82fa873445e20e152ae1ee0507 Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Fri, 31 May 2024 14:26:27 +0200 Subject: Add worst case --- uav_sim_step.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'uav_sim_step.m') 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 -- cgit v1.2.1