This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Heading-tracking mode takes the long way around #1199
Comments
The headings from 11:48:25.347 Mapbox GL[3393:500129] headingDirection: 179.321411 (true:179.321411/mag:165.504303)
11:48:28.515 Mapbox GL[3393:500129] headingDirection: 184.756287 (true:184.756287/mag:170.939178)
11:48:34.055 Mapbox GL[3393:500129] headingDirection: 179.454987 (true:179.454987/mag:165.637878)
11:48:35.089 Mapbox GL[3393:500129] headingDirection: 184.748398 (true:184.748398/mag:170.931290)
11:48:36.282 Mapbox GL[3393:500129] headingDirection: 179.720413 (true:179.720413/mag:165.903305)
11:48:37.559 Mapbox GL[3393:500129] headingDirection: 185.071442 (true:185.071442/mag:171.254333) |
headingDirection: 174.973160
Transform::_setAngle: -2.920038 → -3.053858
headingDirection: 180.300735
Transform::_setAngle: -3.022575 → 3.136344
headingDirection: 174.859329
Transform::_setAngle: 3.136344 → -3.051871
headingDirection: 180.390106
Transform::_setAngle: -3.051871 → 3.134784 |
@kkaefer, perhaps you've got some ideas about the best way to fix what appears to be an interpolation issue? |
This looks like the native version of mapbox/mapbox-gl-js#818, probably a similar fix should be applied. |
1ec5
added a commit
that referenced
this issue
Apr 19, 2015
fmodf() would conflict with the fix for #1199.
1ec5
added a commit
that referenced
this issue
Apr 19, 2015
Ported mapbox/mapbox-gl-js#821 as well as `util.wrap()` from mapbox-gl-js. Fixes #1199.
This was referenced Apr 19, 2015
Merged
1ec5
added a commit
that referenced
this issue
Apr 20, 2015
Ported mapbox/mapbox-gl-js#821 as well as `util.wrap()` from mapbox-gl-js. Fixes #1199.
1ec5
added a commit
that referenced
this issue
May 6, 2015
#1295 made #1199 a lot less common, but it was still possible for the map to do a full 180° when drift-rotating past due-south. With this change, the map is atomically rotated to a bearing in the same cycle as the final bearing. /cc @friedbunny
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When using
MGLUserTrackingModeFollowWithHeading
, rotating the device several degrees around due south causes the map to go the wrong way to get there.The text was updated successfully, but these errors were encountered: