Commit Graph

81 Commits

Author SHA1 Message Date
Dean Lee
75687169eb qt/util: new function scaledPixmap (#23103)
* new function scaledPixmap

* rename to loadpixmap
2021-12-14 22:58:47 -08:00
Dean Lee
2483fc5d5d ui: singleton uistate (#22789)
* singleton uistate

* merge master

* merge master

* merge master

* connect uistate in sidebar

* move to device
2021-12-14 22:28:12 -08:00
Willem Melching
790a64af90 nav: open map on new route without valid OpenGL context (#23140) 2021-12-06 13:50:42 +01:00
Dean Lee
3fd0264960 refactor httprequest: emit single signals (#23039)
* refactor httprequest

* Trigger Build
2021-11-29 11:19:08 +01:00
Willem Melching
5069852573 navd: render map into VisionIPC (#22800)
* navd: render simple map

* render route

* offscreen rendering

* cleanup

* more cleanup

* render into visionIPC

* rename class

* split position update from route update

* stop broadcast if not active

* gate vipc server behind flag

* add python library

* faster

* no vipc from python

* put behind extras

* only send when loaded

* add glFlush just to be sure

* cleanup settings into helper function

* function ordering

* broadcast thumbnails

* put behind param

* adjust zoom level

* add route to python bindings

* revert that freq change

* add logging if map rendering is enabled

* use rlogs if available

* bump cereal
2021-11-26 14:38:02 +01:00
eFini
52c4ab73a9 nav: flip instruction images for RHD (#22877)
* nav instruction icon for rhd

* we dont need rhd for active direction

* define suffix as constant

* ps version icon

* reflect icon instead

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2021-11-18 14:14:41 +01:00
Willem Melching
5648b22833 nav: render at 20fps instead of 10fps 2021-11-17 12:26:17 +01:00
Willem Melching
9f423a93cd nav: fix receiving navRoute while map is loading (#22929) 2021-11-16 14:27:38 +01:00
Willem Melching
306df7f94f nav: check valid flag on PositionGeodetic measurement (#22858) 2021-11-11 10:24:10 +01:00
Dean Lee
e29cc1c2ee util.h: add unit conversion constants (#22813)
* Add unit conversion constants.

* move to common/util.h
2021-11-08 10:19:34 +01:00
Willem Melching
bef686f275 Move navigation into separate daemon (#22767)
* Add navd folder

* prints route instructions to console

* broadcast NavInstuction without lanes

* show basic instructions and eta

* parse out lane info

* use swaglog

* clip distance on ui side

* draw lane directions

* show route

* add to process config

* add to release files

* small cleanup

* show route without gps

* pop open map on initial route

* fix error messages around no gps

* done

* make persistent process

* handle end of route

* clear route on offroad

* only one timer

* fix layout hacks

* explicit rendering at 20Hz
2021-11-04 14:32:32 +01:00
Mayfield
5246f0231e enable wshadow (#22756)
* enable wshadow (#22714)

* fix replay

* more build fixes

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2021-11-02 17:08:53 +01:00
Willem Melching
d4433cc2d8 nav: support multiple banners in route segment (#22722) 2021-10-28 19:11:29 +02:00
Willem Melching
0ba40954b9 maps: allow using MAPBOX_TOKEN env variable (#22721) 2021-10-28 16:13:44 +02:00
Willem Melching
cca07c0c73 navigation: use mapbox proxy server (#22660)
* use mapbox proxy

* remove MapboxToken param

* do not log jwt

* remove import

* move to staging url

* put has_prime in ui state

* logic was flipped

* Update selfdrive/ui/qt/maps/map.h
2021-10-26 18:59:17 +02:00
lipniak
df9492d1e1 UI: add missing header to fix Ubuntu 21 build (#22577)
Co-authored-by: predicate@bonzo <noreply@example.com>
2021-10-16 13:30:14 -07:00
Adeeb Shihadeh
23ae67bbf9 UI: auto wide detection on PC (#22392)
* UI: auto wide detection on PC

* invert width

* cleanup
2021-09-30 20:48:02 -07:00
Adeeb Shihadeh
d5475ba946 nav: add button to clear current route (#22167)
* nav: add button to clear current route

* fix scroll

* retab

Co-authored-by: Comma Device <device@comma.ai>
2021-09-07 17:39:24 -07:00
Adeeb Shihadeh
d5face26a8 nav: set map widget parent 2021-09-06 22:51:09 -07:00
Willem Melching
576459ca45 map fixes, #22105 (#22152) 2021-09-06 16:53:09 -07:00
Willem Melching
512ab3d8fb nav: do not transition to next segment if we need to recompute 2021-08-12 19:50:14 +02:00
HaraldSchafer
e0087fc313 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
2021-08-05 21:06:46 -07:00
Harald Schafer
e63d94d8d2 Revert "nav: use calibrated orientation (#21853)"
This reverts commit 4b209f31a1.
2021-08-04 10:41:49 -07:00
HaraldSchafer
4b209f31a1 nav: use calibrated orientation (#21853)
* calibrate map

* msg added
2021-08-04 09:58:04 -07:00
Dean Lee
543e019f71 api: use API_HOST env variable everywhere (#21814)
* api base url to global constant

* update api/__init__.py
2021-08-03 13:49:49 +02:00
Dean Lee
073b96e5d1 qt/util: new function getDongleId (#21810)
* new function getDongleId

* return std::optional
2021-08-02 11:21:51 +02:00
Willem Melching
c09cff23aa nav: Only recompute when onroad (#21797) 2021-07-30 12:13:51 +02:00
Willem Melching
34bb5b935f nav: Send DELETE to clear next destination on server (#21746) 2021-07-28 11:02:32 +02:00
Willem Melching
94f85c615c nav: update favorites/recents while onroad 2021-07-27 14:46:38 +02:00
Willem Melching
f6b7128741 nav: show error when route request fails 2021-07-26 14:56:53 +02:00
Willem Melching
34346c8525 nav: double click reset pan/zoom timers 2021-07-26 14:00:42 +02:00
Dean Lee
f0389f7e2d 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>
2021-07-23 21:45:47 -07:00
Willem Melching
190409c938 nav: show settings without token (#21624)
* map settings always in sidebar

* show screenshot when no prime

* remove print

* repaint to fix star sizing

* checked in sconsscript

* match designs
2021-07-19 14:18:01 +02:00
Willem Melching
f9f43578d1 Nav: only open map once (#21650) 2021-07-19 12:23:01 +02:00
Willem Melching
0c3f25ff85 nav: update style url 2021-07-16 11:26:43 +02:00
Willem Melching
baa0e47e50 nav: force request retry 2021-07-14 15:46:18 +02:00
Willem Melching
a148bcb3ef nav: cleanup settings page (#21561) 2021-07-12 13:44:30 +02:00
Adeeb Shihadeh
86c255e3e8 nav: restore zoom and position on double click (#21551) 2021-07-11 00:32:11 -07:00
Adeeb Shihadeh
bec054116f nav: scroller for recents (#21549)
* nav: scroller for recents

* stretch

* one more stretch
2021-07-10 22:56:18 -07:00
Willem Melching
35a5aae334 nav: hide ETA on destination reached 2021-07-09 11:28:53 +02:00
Willem Melching
779d6479b4 nav: cleanup error messages 2021-07-09 11:16:51 +02: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
d101000852 nav: add source to route logging 2021-07-07 16:22:45 +02:00
Willem Melching
32d5239912 nav: improve logging (#21477)
* nav: add logging

* handle errors in route reply
2021-07-04 15:34:25 +02:00
Willem Melching
06acd76d6d 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
2021-07-02 15:19:33 +02:00
Willem Melching
240214afc0 nav: truncate favorite length 2021-06-30 16:14:12 +02:00
Willem Melching
2de4c09e62 nav: show star for favorites (#21434) 2021-06-29 15:16:16 +02:00
Willem Melching
f73dc9f19c nav: use mapChanged signal alongside isFullyLoaded() 2021-06-29 15:13:23 +02:00
Willem Melching
60cc07c62a nav: pull next location while onroad (#21421) 2021-06-29 11:08:37 +02:00
Willem Melching
9f98a3e44f 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
2021-06-25 16:26:02 +02:00