Commit Graph

16 Commits

Author SHA1 Message Date
Dean Lee 63ff493fe8 UI widgets: remove unnecessary setLayout (#21232)
* remove setlayout

* remove setLayout

* space

* Update selfdrive/ui/qt/maps/map.cc

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 8f5c7e7bb5e4796708a8be672529bf65e89edaca
2021-06-12 21:28:17 -07:00
Dean Lee 147b355dde add space after function name and if statement (#21225)
old-commit-hash: e4e669bb0fc1a919dfb38800099f8e3ad52346f1
2021-06-11 10:17:52 +02:00
Willem Melching 94c76f41e9 nav: expand banner at correct distance from maneuver
old-commit-hash: 43151389e77ae6c4de8f61270e9a07e2d1c57f84
2021-06-10 12:31:47 +02:00
Willem Melching 4f842b076d nav: cleanup eta spacing
old-commit-hash: 08a7ea1af40b700922c9de2de7a299ec9b28cb3d
2021-06-10 11:09:27 +02:00
Willem Melching 1a483aad55 remove debug statement
old-commit-hash: 34edaa543ad41d42e52d82b4d91537c2d46729ad
2021-06-10 10:01:38 +02:00
Willem Melching af5cbb346b nav: lighter eta colors for better readability
old-commit-hash: 63cb0f7c20bbc4252e12090f8d62650cc799c859
2021-06-10 10:01:06 +02:00
Willem Melching ba1a20414e nav: add page to settings (#21208)
* add navigation panel to settings

* am/pm display and dynamic width
old-commit-hash: 3c197953bc19c470547b950cd987af39909c5e9e
2021-06-10 09:59:34 +02:00
Willem Melching 8fd0aafdbc nav: eta match alert colors
old-commit-hash: ff94882fa6315de6e50bfd3975d18c0e529b6156
2021-06-09 12:34:52 +02:00
Dean Lee 3a698faadc Use full include path (#21194)
old-commit-hash: b06b3ecb60c651dacf079513635f7d9d99228783
2021-06-08 12:09:30 -07:00
Willem Melching 0757dac4c6 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
old-commit-hash: 561f3b3191806760dc8e2f4ce803cd06e9f4c728
2021-06-08 16:48:20 +02:00
Willem Melching efde8146e1 nav: fix negative bearings
old-commit-hash: 0d9c0d602f102c80199961768d0dc3199beee9a0
2021-06-08 16:11:20 +02:00
Willem Melching f79ad64b31 nav: add current bearing to route request (#21186)
old-commit-hash: 41c96c99c7b37eb3067d610fe46094daebc02df8
2021-06-08 16:00:31 +02:00
Willem Melching 6f757fdd60 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
old-commit-hash: 21be4434998476669c807c3d1ba9b25c1cbc495f
2021-06-07 12:14:08 +02:00
Willem Melching 879a616ba8 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
old-commit-hash: 14f09e4ee14ce9c0497c60fbd00bc12ab151ced6
2021-06-04 13:45:42 +02:00
Willem Melching 53a78620b9 maps: fix pan amount after 2x scaling
old-commit-hash: 9c588e6117b0c25d42877fad1d7e59dce030170f
2021-05-21 17:10:59 +02:00
Willem Melching efa94a89ff 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>
old-commit-hash: 86aefbe7667f0693402c1883d286ce331e9d6215
2021-05-17 14:57:07 +02:00