Skip to content

added: setstate! now allows estimation covariance modification (if applicable) #192

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 19, 2025

Conversation

franckgaga
Copy link
Member

@franckgaga franckgaga commented Apr 19, 2025

We can now set the current estimation error covariance with the two setstate! methods:

setstate!(estim::StateEstimator, x̂, P̂=nothing)
setstate!(mpc::PredictiveController, x̂, P̂=nothing)

The matrix can be modified if estim is a:

  • KalmanFilter
  • UnscentedKalmanFilter
  • ExtendedKalmanFilter

The two methods will throw an error if estim does not compute this matrix and P̂ != nothing, that is for:

  • SteadyKalmanFilter
  • Luenberger
  • InternalModel
  • MovingHorizonEstimator (only the estimation covariance at arrival is computed for the MHE, the current covariance is not available)

Also updated codecov github action to v5 in CI.yml

@codecov-commenter
Copy link

codecov-commenter commented Apr 19, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.90%. Comparing base (4511057) to head (1367a55).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #192      +/-   ##
==========================================
+ Coverage   98.88%   98.90%   +0.02%     
==========================================
  Files          25       25              
  Lines        4205     4220      +15     
==========================================
+ Hits         4158     4174      +16     
+ Misses         47       46       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@franckgaga franckgaga merged commit 6c5f770 into main Apr 19, 2025
3 of 4 checks passed
@franckgaga franckgaga deleted the setstate_cov branch April 19, 2025 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants