This object is in archive! 

Problem with Auto-Rotate (3.24.1)

Ingo Rau shared this problem 6 years ago
Solved

Just came back from a little Sunday morning bike trip:

I couldn't get Map Auto-Rotate to work anymore (it worked before, but don't know which version). I had a profile with "Shift map screen center", "Center map" and "Rotate map" activated. At first the rotation was correct, but it didn't update when I changed direction. Turning auto rotate off with the button in the bottom bar and back on again corrected the rotation for the moment, but it never auto-rotated. But so I can safely assume that the device's compass (Galaxy S4) was working.


Btw: "Shift map screen center" and "Center map" may technically be correct terms, but I think they can be confusing. What about "Lock map to GPS position" instead of "Center map"?

Replies (3)

photo
1

Good day Ingo,

problems with compass ( generally with any sensors ) are really complicated to fix, because they are usually really really complicated to simulate on different ( mine in best case ) device.


In first case I suggest to check settings > sensors > compass settings, if you have here set what you expect ( in this case probably "hardware compass" option.


If you have this option selected and rotation still don't work as expected, I'll probably have to create for you a special version.

photo
1

Actually, I had it set to "Hardware compass" - tried again, still doesn't work. When I set it to "Orientation via GPS", it works flawlessly, apart from some "jumping" at low speeds. Which, of course, why there is the option "Auto-change", which I have to test once more.

Anyway, in principle, all parts are there: Map rotation works, hardware compass works (everytime I turn it on) - but the automatic doesn't...

photo
1

Oki, thanks for information. To be true, it's still not perfectly clear to me what is not working anyway let's try special version that will tell me more.


Here is it: http://nas.asamm.com:8080/share.cgi?ssid=0nFBNCU


Please download it, install and start. Try to simulate your issue and when happen what should not happen, close it. In Locus/logs will be file with printed sensor data and some more debug information so send me last file from this directory, thank you!

photo
1

Thx. Didn't have time to try it out yet, but one thing I realized on the way back from work: I only have map-rotation on while navigating, and as long as the "?" is displayed, the map rotates perfectly with "Hardware compass" on, but as soon as the navigation locks to a direction, the map direction gets stuck.

photo
1

Ehm ... :) ... quite important difference ...


Is rotation of map really wanted behavior in case, you are currently navigating along the track? Can't imagine that map rotates widely while navigating ...


So if navigation is disabled then no problem with rotation right? Then there is no problem at all. This is how is Locus made since begin ... and most of navigation apps as well I believe.

photo
1

Ok, I think now I know our misunderstanding. You're right, the map should not rotate according to compass when in navigation mode - I overlooked that (I mixed up the possible reasons for the map rotation). But... it's still a bug related to compass, because when the hardware compass is on, the map doesn't rotate anymore at all, also not when navigation changes direction. So you might have the cursor point to the bottom when you're driving south and you can only see the next few meters. And this doesn't happen with "Orientation by GPS" on.

So yeah, the expectation is not to rotate map by compass, but turning on "Hardware Compass" messes with the "rotation by navigation", so to speak.

photo
1

Ok fine.

So let's please start little bit from begin as I'm still little confused what to fix.


Forget on navigation, just enable "hardware compass" , return back to map and enable map rotation, nothing more. Is map rotating? If not, please create me a log with mentioned test version, thanks.

photo
1

Yes, that's working fine - sorry for getting the actual problem wrong in the first place.

Now I start a navigation: The arrow points upwards along the initial direction, so the map is rotated according to navigation - ok.

Now I drive: When I first change direction, the arrow changes direction, but the map doesn't rotate. So if e.g. I have to make a two left turns, the arrow points down and I can only see a few pixels of the next part of the track.

When I switch to "Orientation by GPS", navigation works as expected: Once I make a turn along the navigation track, the map is rotated again so that the next part of the track points straight up, as does the arrow.

photo
1

Hi Menion,

I'm sorry, very busy right now, work & holiday preparations ;) So didn't have the time to try it out. Perhaps in the holidays, but this time it's a more relaxing one :o)

photo
1

Good day Ingo,

no need to hurry!

I was testing all parameters of "compass source" during navigation during last days and for me it really works always correctly. Not sure if test version is still available for download and works, but I'll need an log from it. Thanks

photo
1

I did copy the test version, so I might still try it in holidays. Depends on what we're doing :)

photo
1

Hi Menion!

Did you change something here in 3.24.2 or .3? Because I updated and did a short trip yesterday and it worked perfectly, just as expected.

Anyway, can close this until further notice.

photo
1

Hello, hmm interesting, Yes, I made small fix, but it was related mainly to "compass screen".

Anyway glad it works!

Replies have been locked on this page!