Commit Graph

171 Commits

Author SHA1 Message Date
Dean Lee
5810583d57 UI: always clear CameraView background (#23231)
* fix background

* gate that with Hardware::EON

* always call glclear
2021-12-15 11:13:50 -08:00
Adeeb Shihadeh
472177e2a8 Revert "Qt/SetingWindow: faster initialization and painting (#21764)"
This reverts commit f482354e4e.
2021-12-15 09:58:25 -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
Dean Lee
d4b8cba0f6 move LayoutWidget,ClickableWidget to controls (#23207) 2021-12-14 11:00:01 +01:00
Dean Lee
f482354e4e Qt/SetingWindow: faster initialization and painting (#21764)
* reduce init time from ~520ms to ~350ms

* faster init toggle

setfixedheight in ctor

delay init TogglesPanel,reduce init time to ~180ms

cleanup

* precise style, reduce to ~100ms

* revert 'faster toggle

* fix horizontal_line

* fix background

* cleanup
2021-12-13 15:57:04 +01:00
Willem Melching
f93d89b888 dmonitoring/DriverView: get crop_rect & transform by video size (#23169)
* dmonitoring/DriverView: get crop_rect & transform by video size (#23014)

* keep rounding the same

Co-authored-by: Dean Lee <deanlee3@gmail.com>
2021-12-09 16:20:50 +01:00
Willem Melching
b5fdf646ff Revert "dmonitoring/DriverView: get crop_rect & transform by video size (#23014)"
This reverts commit 1af715d6a2.
2021-12-08 19:13:38 +01:00
Dean Lee
1af715d6a2 dmonitoring/DriverView: get crop_rect & transform by video size (#23014) 2021-12-08 17:51:56 +01:00
Dean Lee
20f571db3c UI: move rest of NVG to Qt (#23133)
* move ui_draw_world to qt

* draw world if world_objects_visible is true

* cleanup

* cleanup includes

* continue

* cleanup

* cleanup

* enable  multisampling on all devices
2021-12-06 14:02:39 -08:00
Dean Lee
8c6242888c CameraView: use unique_ptr for CameraView::program (#23096) 2021-12-02 13:37:49 -08:00
Cosmo Borsky
faecf4e4c1 keyboard: replace backtick with apostrophe (#23104)
* Replace existing symbol with apostrophe

Without `'`, I cannot type my WiFi password... though it might be time
to rotate it.

* Replace extra bactic with apostrophe

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-12-02 01:23:59 -08:00
Dean Lee
00db14af64 cameraview: fix frameskip (#23022)
* fix frameskip

* sync upload->render

* cleanup

* comment

* rename to latest_texture_id
2021-11-29 11:35:34 +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
21ff97b8c9 UI: minor changes to make it translation friendly (#23032) 2021-11-25 22:30:07 -08:00
Dean Lee
c1f617db46 UI: fix cameraview crash after going offroad in settings window (#23009) 2021-11-22 21:46:46 -08:00
Willem Melching
372b0f10da Revert "cameraview: remove glflush, reduce C3 CPU usage (#22949)"
This reverts commit 33b1b94067.
2021-11-17 16:22:25 +01:00
Dean Lee
33b1b94067 cameraview: remove glflush, reduce C3 CPU usage (#22949)
* remove glflush

* revert cpu
2021-11-17 15:37:45 +01:00
Dean Lee
0dcb089254 ui: async uploading texture with PBO (#22843)
* async uploading texture using pbo

* use QOpenglBuffer

space

set usage pattern

share context

continue

* space
2021-11-17 12:01:50 +01:00
Adeeb Shihadeh
e528e2e3e2 allow update snoozing (#22876)
* allow update snoozing

* not immediately visible

* dismiss and close

* grey button
2021-11-11 15:32:25 -08:00
Willem Melching
6ace88a0f1 cache prime status in param (#22850) 2021-11-10 16:05:49 +01:00
Dean Lee
6e5fed63df UI: do vipc recv in thread (#22354)
* move vipc to thread

* use invokeMethod

* cleanup

* latest_frame = nullptr

* space

* safe quit

* running_-> exit_

* recv timeout 1000

* cleanup

* run in loop

* requestInterruption

* block queue on vipcConnected for thread safety

* cleanup

* remove unused signal updateFrame

* make signals public

* dont emit signal in update

* apply reviews

* cleanup

* little more cleanup

* fix

* use glTexSubImage2D

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-11-09 13:27:12 -08: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
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
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
Adeeb Shihadeh
7f3904ee8e UI: increase camera view update frequency 2021-10-22 21:11:57 -07:00
Adeeb Shihadeh
c4de1fef4f UI: don't block UI on vipc recv (#22644)
* UI: don't block UI on vipc recv

* use a timer

* move that
2021-10-22 14:16:14 -07:00
Dean Lee
5735d69d47 CameraView: fix possible crash on 'fit in widget' mode (#22594) 2021-10-18 11:02:08 +02:00
ZwX1616
8574e79fec wider FOV DM on comma three (#22286)
* c3 is straightforward

* c2 transform

* c3 preview

* alpha model

* Revert "alpha model": wrong quantization data

This reverts commit b50e5739735b30d960aca22bcf3cbe23b0121e13.

* yuv looks good

* a55b

* const int

* block top deadzone

* new box alpha curve

* update k

* fix debug

* rhd use same offset

* box shift for rhd

* 7e3e

* set new thresh

* update ref

* explain

* remove e2e

* same metric thresh

* process isocc

* model

* cancel extra policy

* update numbers

* new model

* update cereal

* up cereal

Co-authored-by: Comma Device <device@comma.ai>
2021-10-13 17:00:46 -07:00
Dean Lee
afaf235acd UI: fix stuck in visionIPC receive timeout (#22450) 2021-10-09 14:43:27 -07:00
Willem Melching
9c771b45fc ui: make OpenGL context current before connecting to VisionIPC 2021-10-04 10:37:31 +02:00
Adeeb Shihadeh
45409cb4fe UI: big pairing QR code (#22384) 2021-09-30 14:00:52 -07:00
Dean Lee
abffc8b2ad UI: new class ListWidget (#21273)
* ListWidget

* continue

* remove function horizontal_line

* cleanup

* default spacing 25

* fix networkpanel margin on EON

* solid expanding

* 0 width

* cleanup

* apply reviews

* remove function addLayout,make it looks like QLIstWidget

* rename addWidget to addItem

* rebase master

* rebase master

* merge master

* cleanup

* fixed title bar position

* no flash while folding

* cleanup

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-09-19 15:14:54 -07:00
Adeeb Shihadeh
86beb9a81a UI: fix getting stuck after vipc recv timeout 2021-09-15 20:31:24 -07:00
Dean Lee
a034926264 Qt/onroad: use CameraViewWidget (#21821)
* use CameraViewWidget

* no timer, updateFrame after frameSwapped

* use QOpenGLShaderProgram

* merge master

* remove that

* new function setStreamType

* continue

* remove showEvent

* cleanup

* cleanup

* little more

* fix black screen on startup

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-09-08 13:13:27 -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
Dean Lee
e284f515b9 c3 keyboard: fix button status not updated (#22127) 2021-09-06 12:24:31 -07:00
Dean Lee
5fea367fc9 C3: Fix keyboard buttons on the right getting stuck in pressed state (#22050)
* fix keyboard state stuck

* remove popup flag

* update in time
2021-09-03 22:24:37 -07:00
Dean Lee
1786416e3c ui: clickable ElidedLabel (#21773)
* ElidedButton

* rename to ClickableLabel

* move to ElidedLabel
2021-08-30 22:16:48 -07:00
Adeeb Shihadeh
86a73497de add fit to widget option to camera view (#22056)
* add fit to widget option to camera view

* add clicked signal

* cleanup

* use release for driverview

Co-authored-by: Comma Device <device@comma.ai>
2021-08-28 13:08:48 -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
Adeeb Shihadeh
a96f358966 Add C3 FCC regulatory info page (#21833)
* move uninstall to software

* fcc page

* only tici

* cleanup

* more cleanup
2021-08-02 20:02:07 -07:00
Dean Lee
073b96e5d1 qt/util: new function getDongleId (#21810)
* new function getDongleId

* return std::optional
2021-08-02 11:21:51 +02:00
Adeeb Shihadeh
0ffe920a86 UI: update toggles on show (#21812) 2021-07-30 16:21:42 -07:00
sshane
519e7cbe89 toggles: released -> clicked (#21786) 2021-07-29 22:37:06 -07:00
sshane
028c81d39f keyboard multitouch improvements (#21788) 2021-07-29 19:29:49 -07:00
sshane
4ed4956240 settings: button press states (#21771)
* settings button press states

* tune color

* states for panel labels and close btn
2021-07-29 14:44:21 -07:00
sshane
54f1afe403 ui: fix prime widget w/ no internet (#21767) 2021-07-28 18:45:49 -07:00
sshane
6fc999fc53 ui: prime widget design (#21755)
* new setup widget

* set fixed width and align right

more closely match

* text wrapping fixes

* prime widget draft

* rename

* remove username

* fix weights

* ad

* qr

* pressed color

* cleanup

* simplify

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-07-28 17:31:49 -07:00
sshane
28ab1bcaca ui: new drive stats design (#21765)
* new drive stats design

* match design better

* clean up
2021-07-28 16:28:10 -07:00