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)
441441 if err isa PosDefException
442442 @warn (" Arrival covariance is not positive definite: keeping the old one" )
443443 else
444- rethrow (err )
444+ rethrow ()
445445 end
446446 end
447447 return nothing
@@ -461,7 +461,7 @@ function update_cov!(estim::MovingHorizonEstimator)
461461 if err isa PosDefException
462462 @warn (" Arrival covariance is not positive definite: keeping the old one" )
463463 else
464- rethrow (err )
464+ rethrow ()
465465 end
466466 end
467467 return nothing
@@ -472,7 +472,7 @@ function invert_cov!(estim::MovingHorizonEstimator, P̄)
472472 try
473473 estim. invP̄ .= inv (P̄)
474474 catch err
475- if err isa SingularException
475+ if err isa SingularException || err isa LAPACKException
476476 @warn (" Arrival covariance is not invertible: keeping the old one" )
477477 else
478478 rethrow (err)
You can’t perform that action at this time.
0 commit comments