Skip to content

Kalman gain #153

Answered by rodralez
Mtulaza1 asked this question in Q&A
Discussion options

You must be logged in to vote

Hello,

I will share my experience in tuning the Kalman filter.

  1. Q, the system noise covariance matrix, sets how much you trust your model. Smaller values, you trust your model pretty much.
  2. R, the measurement noise covariance matrix, sets the quality of the system output sensors as GNSS. Values come from sensor manufacturers' datasheets.
  3. P, the error covariance matrix, sets the initial errors when the system starts. Choose bigger errors since the KF will rapidly converge to smaller errors.

So, start with P and Q with bigger values, and R with manufacturers' values.

If your system doesn't diverge you are good. If not, typically increase Q.

Once your system doesn't diverge, try to decrease …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rodralez
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants