Commit Graph

14 Commits

Author SHA1 Message Date
Willem Melching f9f43578d1 Nav: only open map once (#21650) 2021-07-19 12:23:01 +02:00
Adeeb Shihadeh 86c255e3e8 nav: restore zoom and position on double click (#21551) 2021-07-11 00:32:11 -07:00
Willem Melching 9ea913bcc8 nav: various cleanup (#21521)
* nav: various cleanup

* eta resize instant

* show
2021-07-08 14:33:58 +02:00
Willem Melching f32ca73724 nav: simplify segment transition (#21383) 2021-06-23 15:00:32 +02:00
Willem Melching 7e6a9ce9a5 nav: cleanup errors and wait for map to be loaded (#21381)
* Cleanup errors

* prevent flicker
2021-06-23 14:33:27 +02:00
Willem Melching a3b155839b Nav: ETA layout improvements (#21361)
* bold and more space

* rounded corners

* oneline

* center

* fix am/pm

* revert width change
2021-06-21 17:23:44 +02:00
Willem Melching e4e67985d6 Nav: No GPS warning (#21359)
* Nav: No GPS warning

* optional
2021-06-21 15:50:23 +02:00
Willem Melching 43151389e7 nav: expand banner at correct distance from maneuver 2021-06-10 12:31:47 +02:00
Willem Melching 3c197953bc nav: add page to settings (#21208)
* add navigation panel to settings

* am/pm display and dynamic width
2021-06-10 09:59:34 +02:00
Willem Melching 561f3b3191 nav: show ETA and remaining distance (#21188)
* abbreviate distance

* static values

* update distance

* set eta

* use distance along geometry to compute eta

* add traffic info

* formatting improvements

* remove old

* add using git lfs

* git lfs

* cleanup

* abstract

* bit larger
2021-06-08 16:48:20 +02:00
Willem Melching 41c96c99c7 nav: add current bearing to route request (#21186) 2021-06-08 16:00:31 +02:00
Willem Melching 21be443499 Fetch mapbox token from API (#21136)
* delay widget creation until going onroad

* let athena fetch mapbox token

* only tici

* add token

* cleaner

* rename slots

* that was missing
2021-06-07 12:14:08 +02:00
Willem Melching 14f09e4ee1 Various nav improvements (#21133)
* various nav improvements

* use traffic aware routing

* read last position from param

* allow compute without gps when no route

* cleanup

* properly hide route

* set pitch
2021-06-04 13:45:42 +02:00
Willem Melching 86aefbe766 Mapbox widget (#20751)
* squash mapbox stuff

* only hacks for pc

* no hack there

* only update when needed

* get destination from param

* no need for user agent

* add athena method

* change nav path color

* layout cleanups

* margin top

* add build scripts

* rename header file

* set pitch

* fix icon blinking

* keep both options

* draw on top to fix last blinking

* only recomput with gps

* fix include

* put map in onroadwidget

* update mapbox plugin to allow specifying directions url

* cycle through views

* dynamic resize

* only when present

* add map_helpers

* whitespace

* small fixes

* let scons decide

* update setup files

* implicit dependency

* fix alerts

* Update selfdrive/ui/SConscript

* move clearLayout to util.h

* only build when map.cc present

* move maps to own folder

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-05-17 14:57:07 +02:00