Skip to content
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

Covariance Matrix not Generated. #7

Open
adityasivaraj opened this issue Jan 22, 2022 · 6 comments
Open

Covariance Matrix not Generated. #7

adityasivaraj opened this issue Jan 22, 2022 · 6 comments
Assignees

Comments

@adityasivaraj
Copy link

After calibrating either using RTQF or Kalman, covariance matrix is not generated. I have tried calibration both through RTIMULibCal and RTIMUDemoGL, and the RTIMULib.ini generated does not contain the covariance matrix for linear acceleration, orientation and angular velocity. Does this library generate the covariance matrices or should it be filled in through some other method?

@HongshiTan HongshiTan self-assigned this Jan 23, 2022
@HongshiTan
Copy link
Owner

Yes, the current calibration does not generate the covariance matrix. For Kalman fusion, it will be estimated online.

@adityasivaraj
Copy link
Author

adityasivaraj commented Jan 23, 2022

Hey @HongshiTan Thanks for your time! Could you explain what you mean by "estimated online"? Do you mean it will be generated while using the library in general using the calibration file?

@HongshiTan
Copy link
Owner

Hi, sorry for the delay, the calibration file does not contain the covariance matrix. Maybe you can send the detailed algorithm that you refer to so that I can identify the difference for you.

@adityasivaraj
Copy link
Author

Hi @HongshiTan. I'm sorry, I think there has been a miscommunication. What I meant to say/ask was, in your first comment you mentioned that for Kalman Fusion, the calibration will be "estimated online". I wanted to know what exactly you meant by "estimated online", and can I use that covariance matrix? Because, in my usage the covariance matrix is always shown to be empty, and I cannot see online generated covariance matrix anywhere. I am not referring to any detailed algorithm.

Thanks in Advance!

@SivertHavso
Copy link
Contributor

Hi @adityasivaraj. I believe you are looking for this matrix:

RTMatrix4x4 m_Pkk; // the updated estimated covariance matrix

Which gets updated in this function:
void RTFusionKalman4::update()

However, I don't think there's any way of accessing this matrix without modifying the code.

@brightproject
Copy link

brightproject commented Nov 20, 2023

Hello @HongshiTan, @adityasivaraj and @SivertHavso.
I'm using library code RTIMULib for Arduino.
But there is no RTFusionKalman4.h file in the Arduino repository
There is a simplified (according to the author) filter RTFusionRTQF.h
I am also interested in the question about the covariance matrix.
As I understand it, the library RTIMULib was written almost 8 years ago and then microcontrollers were not very powerful.
Now it is possible to run code with double-precision floating point.
Therefore, I would like to try a full-fledged Kalman filter on the Arduino platform.

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

No branches or pull requests

4 participants