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

Kalman Filter issue #214

Open
oscar-polheim opened this issue Oct 31, 2022 · 5 comments
Open

Kalman Filter issue #214

oscar-polheim opened this issue Oct 31, 2022 · 5 comments

Comments

@oscar-polheim
Copy link

I've compared Kalman Filter used in radar_pi with the one I use in my projects with GPS.

From what I can see, radar_pi's KF seems not so good even compared to raw GPS.

Legend:
image

Sample is from a boat GPS at 10Hz:
image

Is this something known or expected? Or should I dig deeper and try to understand if I did something wrong using radar_pi's KF.

@douwefokkema
Copy link
Collaborator

Very interesting. But please clarify the image for me. I understand the blue one is the original raw GPS. Is the pink one your KF? The green one is marked OpenCPN, but is this the track from OpenCPN or the results of the KF in radar_pi?
The KF in radar_pi is only used to get the vessel position on a given time (could be in the future), not used otherwise by OpenCPN.
Douwe, alternatively mail me at [email protected]

@oscar-polheim
Copy link
Author

oscar-polheim commented Nov 2, 2022

The pink one is the result of KF from https://github.com/lacker/ikalman
The green one is the result of KF from radar_pi

@douwefokkema
Copy link
Collaborator

It is already several years ago that I made this. The filter used in radar_pi was optimized for slow GPS (1 Hz) and typical sailboat speeds, with a slow turn rate (some 20 degrees/sec). With a rapid update GPS a Kalman filter is not needed at all, the last GPS position is sufficiently accurate for "now".

@oscar-polheim
Copy link
Author

oscar-polheim commented Nov 3, 2022

Looking at some preliminary results with 1Hz, it looks better. What would you do to adapt the filter to 10Hz?

@douwefokkema
Copy link
Collaborator

I would remove it. A position not older than 0.1 sec is sufficiently accurate for our purpose.
What is the scale of your images? What speeds are used? What turn rates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants