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

Use Kalman Filter to smooth map scrolling when following current position #5681

Closed
jkufner opened this issue Jul 16, 2018 · 4 comments
Closed
Labels
Nice to Have Should be fixed but there is no priority or no possibility to fix it within current horizon planning

Comments

@jkufner
Copy link
Contributor

jkufner commented Jul 16, 2018

When current position is updated and map scrolls to the new position, it scrolls at wrong speed -- position updates are visible and distracting when watching the map at more detailed zoom levels. It would be nice to let Osmand predict the next position and smooth scroll (almost) perfectly as the next position arrives from GPS.

Kalman Filter: The math behind Kalman Filter may look scary and complicated, but the idea is rather simple. It uses current value and difference from previous value (the first derivation) to extrapolate the next value. In Osmand's case it means that the next position to be received from GPS is likely to be last known position plus last known speed multiplied by GPS update interval. There will be (small) error in the extrapolation when speed changes, but it can be easily compensated during the next update by adding acceleration (the second derivation) into the calculation.

The proposal: Use (simplified) Kalman Filter to smoothly scroll map when moving. Then when moving at any constant speed the map scroll position will perfectly match the real current position. The GPS updates will no longer be noticable.

@vshcherb vshcherb added the Nice to Have Should be fixed but there is no priority or no possibility to fix it within current horizon planning label Jul 18, 2018
@MayeulC
Copy link

MayeulC commented Aug 31, 2019

Related to #562 (comment)
(Use the same feature to approximate location in tunnels or no-GPS areas)

@tbertels
Copy link
Contributor

The gyroscope could also be used to check which way the car turns if the tunnel gets divided.

@aleung
Copy link

aleung commented Mar 4, 2023

Isn't it implemented?

@vshcherb
Copy link
Member

vshcherb commented Mar 8, 2023

Yes was implemented in 2022

@vshcherb vshcherb closed this as completed Mar 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Nice to Have Should be fixed but there is no priority or no possibility to fix it within current horizon planning
Projects
None yet
Development

No branches or pull requests

5 participants