Commit Graph

51 Commits

Author SHA1 Message Date
Adeeb Shihadeh b3f5ad454e nav: set map widget parent
old-commit-hash: d5face26a82b717ce694aa848641b879076dfe1f
2021-09-06 22:51:09 -07:00
Willem Melching 9373ea74be map fixes, #22105 (#22152)
old-commit-hash: 576459ca4595e5baaf7db23a8873a9fb0bddd272
2021-09-06 16:53:09 -07:00
Willem Melching 10447b6d04 nav: do not transition to next segment if we need to recompute
old-commit-hash: 512ab3d8fbee97ef3cfb2dcd0773c0dca2de8656
2021-08-12 19:50:14 +02:00
HaraldSchafer 3eb667e29d Fix orientation in map (#21863)
* fix calibrated orientation

* update ref

* cleaner

* update ref

* master

* update again

* update ref again again

* actually compiled this tim,e
old-commit-hash: e0087fc313b4032532e3736a4be2b07510a0c9bf
2021-08-05 21:06:46 -07:00
Harald Schafer acd45c486b Revert "nav: use calibrated orientation (#21853)"
This reverts commit cd19b37a6b187e0c26cdfe7c42e975abb1dc0155.

old-commit-hash: e63d94d8d24975d308e17b7ce71fdb6b5529dac4
2021-08-04 10:41:49 -07:00
HaraldSchafer 1c35dc951d nav: use calibrated orientation (#21853)
* calibrate map

* msg added
old-commit-hash: 4b209f31a11546a3a56032558c656c2aa0b3175f
2021-08-04 09:58:04 -07:00
Willem Melching 3267bd5c14 nav: Only recompute when onroad (#21797)
old-commit-hash: c09cff23aa0a69063edb168afcdb8e1212bb0e19
2021-07-30 12:13:51 +02:00
Willem Melching fe1eb7e99f nav: show error when route request fails
old-commit-hash: f6b7128741f01c383b31dbd7d3241f26f1e23070
2021-07-26 14:56:53 +02:00
Willem Melching 63a4bdf281 nav: double click reset pan/zoom timers
old-commit-hash: 34346c8525d81fbfb7b12ee9a5ae550a1472f156
2021-07-26 14:00:42 +02:00
Dean Lee ae1b7a85f3 Qt: draw border in OnroadWindow (#21594)
* draw border in OnroadAlerts

* non transparent

* no scissor

* set video_rect to the full size

* fix header gradient

* Revert "fix header gradient"

This reverts commit f5565c19d5cabda22fe6b60af23dc26727ecd5bc.

* Revert "set video_rect to the full size"

This reverts commit c012db105a8cabd140971208431d83ae3592b70e.

* fix scissor

* fix header gradient

* set scissor box to video_rect when draw lines

* move up eta

* init alert_size to NONE

* remove glScissor

* cleanup

* rename draw_video_frame to draw_vision_frame

* remove space

* add comment

* move border to OnroadWindow

* cleanup signals

* fw declare MapWindow

* fix build err

* remove viz_rect

* fix build err

* continue

* cleanup

* text rect:no border

* use signals

* remove space

cleanup

* merge master

* fix map eta

* get bgColor from alerts

* update alerts in OnroadWindow

* add function clearAlert

* repaint border

* init bg color to STATUS_DISENGAGED

* no black frame

* cleanup

Co-authored-by: Willem Melching <willem.melching@gmail.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: f0389f7e2d45f7f42e35bdea6a3daff0cd3aa919
2021-07-23 21:45:47 -07:00
Willem Melching 40fe85f18e Nav: only open map once (#21650)
old-commit-hash: f9f43578d1b41f97b90f43215ca320bce72e114c
2021-07-19 12:23:01 +02:00
Willem Melching e3b454a804 nav: update style url
old-commit-hash: 0c3f25ff8597eb692b2d1a001934b83ceefc3fc5
2021-07-16 11:26:43 +02:00
Willem Melching 52ace7309a nav: force request retry
old-commit-hash: baa0e47e50e6c39c04cd374be1ac6db9eafb752b
2021-07-14 15:46:18 +02:00
Adeeb Shihadeh 801ab5f5d6 nav: restore zoom and position on double click (#21551)
old-commit-hash: 86c255e3e881c81d6066b04f1d118fddb39b4a81
2021-07-11 00:32:11 -07:00
Willem Melching 0c30fbbe62 nav: hide ETA on destination reached
old-commit-hash: 35a5aae334e2409c432499a868fae69bd6ceb285
2021-07-09 11:28:53 +02:00
Willem Melching 8155c856f8 nav: cleanup error messages
old-commit-hash: 779d6479b402f3f73d11910adb62547a37d12cc4
2021-07-09 11:16:51 +02:00
Willem Melching c042bbf09c nav: various cleanup (#21521)
* nav: various cleanup

* eta resize instant

* show
old-commit-hash: 9ea913bcc812ed55d2f8204ced892b81f20af326
2021-07-08 14:33:58 +02:00
Willem Melching f1fdf6e9c6 nav: add source to route logging
old-commit-hash: d1010008525d5fe4d7e2641f743c3b2e890d56df
2021-07-07 16:22:45 +02:00
Willem Melching c266cffa97 nav: improve logging (#21477)
* nav: add logging

* handle errors in route reply
old-commit-hash: 32d5239912b592078faf50628e0f08b07a0eb755
2021-07-04 15:34:25 +02:00
Willem Melching 9d4829523d nav: don't set FBO, render when not loaded and resize once (#21468)
* nav: don't set FBO and resize once

* always update

* when visible
old-commit-hash: 06acd76d6d9583429b1c0977a6d18586997e3623
2021-07-02 15:19:33 +02:00
Willem Melching 9980d08915 nav: use mapChanged signal alongside isFullyLoaded()
old-commit-hash: f73dc9f19c81539312743376bd21142bd28b47e2
2021-06-29 15:13:23 +02:00
Willem Melching fba42aab80 nav: show recents (#21405)
* add recent buttons

* remove static request

* layout

* recent doesn't have to be a favorite

* work

* spacing

* spacing

* no recents

* query next

* not null

* this needs to live here

* less spacing between items
old-commit-hash: 9f98a3e44f3b5b70d7e420f9e51f737bb854266d
2021-06-25 16:26:02 +02:00
Willem Melching ff0c7a27f2 nav: change map loaded detection (#21397)
old-commit-hash: 4c9aba2dd542df7eef4f396e7c11f2e51852ad73
2021-06-24 14:56:38 +02:00
Willem Melching 3aae7b5fc3 nav: simplify segment transition (#21383)
old-commit-hash: f32ca73724243ffaca59d8c4ef6fa46ff29fed38
2021-06-23 15:00:32 +02:00
Willem Melching 16143bef1b nav: cleanup errors and wait for map to be loaded (#21381)
* Cleanup errors

* prevent flicker
old-commit-hash: 7e6a9ce9a5c311940a9553dfef44cecd4db852c4
2021-06-23 14:33:27 +02:00
Willem Melching 2f4257c7e3 nav: map color match offroad color scheme
old-commit-hash: febdc39d2d15eef790e76580023bda24be647e2e
2021-06-22 14:57:57 +02:00
Willem Melching 1a9706361f nav: route color match explorer
old-commit-hash: a5f65c12f7a1f991cd633850f5a30de88eaf02f7
2021-06-22 13:34:47 +02:00
Willem Melching dc19c670b6 nav: home/work shortcuts (#21276)
* add home/work widgets

* remove todo

* set contents from response

* turn into buttons

* add navigate button

* fix includes

* close settings on nav press

* close sidebar when closing settings

* use live api endpoint

* larger fonts

* more text fits

* only place name

* remove static response

* properly clear
old-commit-hash: c21ea8b50653bfb3b4c93e7042d7ffa62abfcf2a
2021-06-22 13:25:22 +02:00
Willem Melching 1f8a63af7e nav: give word wrapped widgets a fixed width
old-commit-hash: a5112bfb2e40749e467a405128b7305110e4344c
2021-06-22 13:24:11 +02:00
Willem Melching ff5656b0f8 nav: bump font size by 25%
old-commit-hash: 64e4294b04dd6481ec1fcb07d2f80595a1c834ab
2021-06-22 10:46:01 +02:00
Willem Melching e1556c0ab1 nav: update no gps text
old-commit-hash: 28694041d5ee860cdd5f26acb63887e0ce7d8bbf
2021-06-21 19:21:58 +02:00
Willem Melching 77a8b7aaf1 nav: banner add stretch to fix label size
old-commit-hash: 6ca0861360cc16849dbbd359593ee9374ab160ba
2021-06-21 18:53:19 +02:00
Willem Melching 3004b29805 Nav: ETA layout improvements (#21361)
* bold and more space

* rounded corners

* oneline

* center

* fix am/pm

* revert width change
old-commit-hash: a3b155839b1bac791f8819812feaffc7b814202c
2021-06-21 17:23:44 +02:00
Willem Melching b9042b255d nav: clear last_banner on no gps
old-commit-hash: c60f5ab6f6b976c95e0b772b68c890680877be61
2021-06-21 17:04:57 +02:00
Willem Melching aaa743ab7a Nav: No GPS warning (#21359)
* Nav: No GPS warning

* optional
old-commit-hash: e4e67985d610539ccaf0ceb7261e9fc937bc70b7
2021-06-21 15:50:23 +02:00
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