mapbox / mapbox/mapbox-navigation-ios

Inconsistency in simulated currentSpeed value calculation leads to course view jerkiness.

Open
#2,656 0 comments 0 reactions 1 assignee View on GitHub

@ShanMa1991 is already working on this.

Since Oct 15, 2020.

bug UI
Dominant language
Swift
Stars
918
Forks
326
Avg merge
1h 16m
Merged PRs (30d)
3

Description

Mapbox Navigation SDK version: v1.0.0-rc.5

During navigation simulation currentSpeed in some cases (e.g. after arriving to intermediate waypoint) might be inconsistently increased. This in turn leads to jerky course view updates. Here's example currentSpeed log inside SimulatedLocationManager:

- Start of navigation
17.94770163534446
2.776737654923229
...
2.777378838420406
4.716399047755162
4.716399047755162
...
4.716399047755162
4.716399047755162
- Arrival to intermediate waypoint
18.150889963319944
39.25711711189784
39.25711711189784
39.25711711189784
39.25711711189784
17.969133355688626
17.954382893051346
17.978881007944462
- Arrival to final destination
30.0
30.0

As you can see right after arrival to intermediate waypoint speed is a lot higher than it was prior to arrival. This leads to jerky course view updates shown on screencast:

output

/cc @mapbox/navigation-ios

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.