osmandapp / OsmAnd

OsmAnd
https://osmand.net
Other
4.68k stars 1.02k forks source link

Android Auto with map rotation "compass" is unreliable #21283

Open sjvudp opened 4 days ago

sjvudp commented 4 days ago

Description

For some reason I had set the map rotation for "car" mode to "compass", and it worked when I looked at the map. Then I connected the phone to the car (Android Auto) and started a "free drive". However the map looked "upside down" while I could not really explain. Later when back at home I re-checked the map: It worked OK. So I suspect that I had placed the phone "upside down" on the seat next to the driver, causing the compass to be reverted, too.

Steps to reproduce

Use "compass rotation mode" for the car map, then put the phone upside down in the car.

Actual result

The map is very confusing, being "upside down".

Expected result

Compass should work independently from the phones rotation. AFAIK the compass is actually a 3D compass, and the phone has a rotation sensor, so the correct plane could be determined, and from the plane with the 3D compass the true direction. OTOH the phone can have any 3D position, and it may not match the front of the car (the car does not know the relative rotation of the phone compared to the car) . So it's probably best to display a warning and switch to a different mode, like direction of movement. Another open issue is the rotation of the map if the car is not moving then. The only true solution seems to be that the car has to provide compass (orientation) data.

Your Environment (required)

WARNING Crash-Logs MAY contain information you deem sensitive. Review this CAREFULLY before posting your issue!

OsmAnd Version: 4.8.6
Android/iOS version: 13
Device model: Oppo CPH2371
Crash-Logs: ?
yuriiurshuliak commented 4 days ago

Android Auto relies on your phone's display settings, but you can also adjust the orientation directly within Android Auto. Simply select the "North is up" mode there to achieve a stable map orientation.

sjvudp commented 3 days ago

Sorry, I could not find that setting. Also I don't want a permanent "north is up" orientation. Here's what I see in German.

09.11.2024 11:11:07 yuriiurshuliak @.***>:

Android Auto relies on your phone's display settings, but you can also adjust the orientation directly within Android Auto. Simply select the "North is up" mode there to achieve a stable map orientation.

— Reply to this email directly, view it on GitHub[https://github.com/osmandapp/OsmAnd/issues/21283#issuecomment-2466158311], or unsubscribe[https://github.com/notifications/unsubscribe-auth/ABTMHWA6AHN2TNBLLX3V2M3Z7XNTXAVCNFSM6AAAAABROAM4MWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINRWGE2TQMZRGE]. You are receiving this because you authored the thread. [Verfolgungsbild][https://github.com/notifications/beacon/ABTMHWA5JZHLSALWBIECZI3Z7XNTXA5CNFSM6AAAAABROAM4MWWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTUS72LOO.gif]

yuriiurshuliak commented 1 day ago

We have a setting directly in Android Auto that allows you to configure the compass. Here is a link to the documentation: https://osmand.net/docs/user/navigation/auto-car/#interaction-with-the-map

Also please send us screenshots or video of the bug you are experiencing so that we can better understand the issue and reproduce it. We also recommend that you try our latest nightly build to see if this issue exists there: https://osmand.net/docs/versions/nightly_versions#nightly-builds

sjvudp commented 21 hours ago

So far I couldn't find out how to make a screenshot when the mobile is connected to the car. On Android forum I had made a feature request (allow screenshots)

--

Mit freundlichen Grüßen Ulrich Windl

11.11.2024 15:57:35 yuriiurshuliak @.***>:

We have a setting directly in Android Auto that allows you to configure the compass. Here is a link to the documentation: https://osmand.net/docs/user/navigation/auto-car/#interaction-with-the-map

Also please send us screenshots or video of the bug you are experiencing so that we can better understand the issue and reproduce it. We also recommend that you try our latest nightly build to see if this issue exists there: https://osmand.net/docs/versions/nightly_versions#nightly-builds

photo_2024-11-11_16-51-01.jpg (view on web)[https://github.com/user-attachments/assets/016acd40-6cd5-471b-a101-3652fa40c73a]

— Reply to this email directly, view it on GitHub[https://github.com/osmandapp/OsmAnd/issues/21283#issuecomment-2468375552], or unsubscribe[https://github.com/notifications/unsubscribe-auth/ABTMHWD7XOZSVXSHBQ4ATL32ADAV7AVCNFSM6AAAAABROAM4MWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINRYGM3TKNJVGI]. You are receiving this because you authored the thread. [Verfolgungsbild][https://github.com/notifications/beacon/ABTMHWDLQ54XDZ46YCULDHL2ADAV7A5CNFSM6AAAAABROAM4MWWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTUTEBWAA.gif]