silverchris / openauto

AndroidAuto headunit emulator
4 stars 4 forks source link

HUD bug - when disconnect usb while navigating from AA HUD will freeze up on last image. #18

Open Pixelslot opened 2 years ago

Pixelslot commented 2 years ago

@silverchris

When navigating (using google or waze maps) and HUD is showing image and street names direction, connected by usb cable. if suddenly disconnect the usb cable from the phone, AA will return to mzd menu but HUD will be completely frozen on the last image/street name and can not be turn off or reset. The only way is to reboot the infotainment system.

I had also tried reconnect usb and set new route while the HUD is frozen but HUD will not show new route as it is still stuck on previous image.

silverchris commented 2 years ago

This is being worked on! :D

Pixelslot commented 2 years ago

This is being worked on! :D

@silverchris lane keep Is there a possibility of showing which lane to keep for future turns on the HUD like the native navigation? like those lanes on the bottom by extracting data from waze or Google maps (keeping lane is the small triangle arrow). Using code in navigation.hpp and add additional code into navigation.cpp just an idea.

typedef std::tuple<std::vector> HudRecLaneInfo;

silverchris commented 2 years ago

typedef std::tuple<std::vector> HudRecLaneInfo;

@Pixelslot That is something I do want to look into, I just wasn't sure if Waze/Google maps provide it with the interface. I have had some ideas on how to send it to the HUD. I would also like to get the speed limit working

Also, which car is that? Your HUD looks nicer than the one in my 2018 Mazda 3!

silverchris commented 2 years ago

https://github.com/silverchris/openauto/commit/e5196fc2e48ac98bd896829a9c7fd6360e71d704 try this!

Not sure if we can get the lane information out of Android Auto. It looks to be present, but I think they have a newer protocol that hasn't been reverse engineered yet. I did some digging and haven't found a smoking gun on how to enable it