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

Incorrect arrow on car display using Android auto #16723

Open
wolfsolver opened this issue Mar 16, 2023 · 8 comments
Open

Incorrect arrow on car display using Android auto #16723

wolfsolver opened this issue Mar 16, 2023 · 8 comments
Labels
Observed Needs more clarification, feedback, or research

Comments

@wolfsolver
Copy link
Contributor

Description

Using Android auto, car display show wrong indicator if instructions is keep right and take exit

Topical append on highway when need to exit from highway

Steps to reproduce

  • Start navigation with a route having keep right
  • Wait for keep right indication (not turn)

Actual result

Sorry for low Res image :)

Osmand+ screen
IMG_20230316_205628814.jpg

Car display
IMG_20230316_205635255.jpg

Expected result

Starting from 10km (or 5km) before is useful to have a right arrow to indicate that you need to exit, for example with a turn right

Your Environment

OsmAnd Version: osmand+ 4.4.3
Android/iOS version: 12
Device model: Motorola

@Zirochkabila
Copy link
Collaborator

@wolfsolver Please clarify:

  1. Route, start and finish coordinates ( the place on the map)
  2. What maps are you using (update date, live updates, clarify all maps this region which you use)?

@wolfsolver
Copy link
Contributor Author

wolfsolver commented Mar 16, 2023

Just as example

https://osmand.net/map?start=45.495903%2C9.254719&end=45.487270%2C9.250285&mode=car#15/45.480747/9.251333

Offline maps updated 1 march 2023 for italy

I think is not related to maps or routing (on osmand and osmand on android auto the instructions is correct). The issue is only on car display with "go on" arrow.

@Zirochkabila
Copy link
Collaborator

@wolfsolver Based on your itinerary OsmAnd and the lines displayed by OSM GraphHopper everything looks right.
Except that OSM OSRM and Google show "Take exit 8a on the A51 towards Lambrate", but not a straight line.
If you request to be warned in advance, you can view all the route details or set up a notification: Navigation settings > Voice guidance > Announcement time

Map

@wolfsolver
Copy link
Contributor Author

wolfsolver commented Mar 20, 2023

I'm not sure to understand your point of view. I try to recap.
Using navigation just befor exit OSMAnd has this indication (image get using navigation simulation)

So I have evidence that I need to take an exit (icon is "Stay Right" (not Take right exit, but Stay Right), this in according to OSM GraphHopper. So I suppose that OSMAnd use this engine. This is fine on smartphone app and on AA app, becouse also the icon has evidence of "right". Unfortunately on CAR display the only icon is a "straight Arrow" with correct distance, but no evidence if turn left or right (as in my previus picture). Maybe using OSMR engine we have a better evidence in CAR Display... But I don't know if this is feasible.

@Zirochkabila
Copy link
Collaborator

@wolfsolver If you set OSM DE as the routing type: Menu > Settings > Driving > Navigation settings > Navigation type > Online > Routing OSM DE - The navigation prompts will be similar to those in OSRM

@wolfsolver
Copy link
Contributor Author

I don't think is relate to route engine.

Here some other example of incorrect car display. I think is more relate to lack of information in exchange data with AA.

Example 1)
IMG_20230328_080727966.jpg

IMG_20230328_080734130.jpg

Example 2)
IMG_20230328_080443429.jpg

IMG_20230328_080449660.jpg

@Zirochkabila
Copy link
Collaborator

@wolfsolver Perhaps it's because your car's navigation system differs from OsmAnd's - as far as I understand, your car's center panel displays built-in navigation.

@wolfsolver
Copy link
Contributor Author

I took some time to read some documentation on this topic. Car Display show informaition from navigation sistem (bultin if using navigation builtin or from navitiaion APP like Google Maps, Waze, OsmAnd). As soon start a new navigation from an AA App Car Display shown new information (so I'm sure that car display does not show internal information if starting navigation from OSMAnd or other app).
Starting from official documentation https://developer.android.com/training/cars/apps/navigation#trip-information Car Display show information from Update trip information using
NavigationManager.updateTrip
This method The information provided in this call can be used by the vehicle’s cluster and heads-up displays. Depending on the particular vehicle being driven, not all the information is displayed to the user. For example, the Desktop Head Unit (DHU) shows the [Step](https://developer.android.com/reference/androidx/car/app/navigation/model/Step) added to the [Trip](https://developer.android.com/reference/androidx/car/app/navigation/model/Trip), but does not show the [Destination](https://developer.android.com/reference/androidx/car/app/navigation/model/Destination) information.
Going deeper through this method Trip ==> [getSteps] (https://developer.android.com/reference/androidx/car/app/navigation/model/Trip#getSteps()) ==> getManeuver] ==> Maneuver
at this level a set of constat is define for comunicate value with CarDisplay. For example:

So I suppose that some improvement on this information can improve car display with usefull information.

I try to take a look into code and found this
TripHelper.java and, for example,
case TurnType.KR: return Maneuver.TYPE_KEEP_RIGHT; // keep right
does not set the degree (so is 0). Maybe set it to 9 (max value) will show a different icon.
This is the best i can do, Hope is usefull.

@vshcherb vshcherb added the Observed Needs more clarification, feedback, or research label Jul 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Observed Needs more clarification, feedback, or research
Projects
None yet
Development

No branches or pull requests

3 participants