File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -441,7 +441,7 @@ function correct_cov!(estim::MovingHorizonEstimator)
441
441
if err isa PosDefException
442
442
@warn (" Arrival covariance is not positive definite: keeping the old one" )
443
443
else
444
- rethrow (err )
444
+ rethrow ()
445
445
end
446
446
end
447
447
return nothing
@@ -461,7 +461,7 @@ function update_cov!(estim::MovingHorizonEstimator)
461
461
if err isa PosDefException
462
462
@warn (" Arrival covariance is not positive definite: keeping the old one" )
463
463
else
464
- rethrow (err )
464
+ rethrow ()
465
465
end
466
466
end
467
467
return nothing
@@ -472,7 +472,7 @@ function invert_cov!(estim::MovingHorizonEstimator, P̄)
472
472
try
473
473
estim. invP̄ .= inv (P̄)
474
474
catch err
475
- if err isa SingularException
475
+ if err isa SingularException || err isa LAPACKException
476
476
@warn (" Arrival covariance is not invertible: keeping the old one" )
477
477
else
478
478
rethrow (err)
You can’t perform that action at this time.
0 commit comments