diff options
Diffstat (limited to 'uav_sim_step.m')
-rw-r--r-- | uav_sim_step.m | 4 |
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 |