Commit Graph

160 Commits

Author SHA1 Message Date
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
Adeeb Shihadeh d0a650a8ba better password character 2021-07-28 13:43:05 -07:00
Dean Lee 39c945316d multitouch keyboard (#21757) 2021-07-28 13:07:15 -07:00
sshane dd8eb23ea9 ui: password mask delay (#21737) 2021-07-26 22:55:12 -07:00
Adeeb Shihadeh deb170e0b2 my.comma.ai -> connect.comma.ai (#21702) 2021-07-26 13:53:49 -07:00
Dean Lee c24227c3ab HttpRequest: don't send request in ctor (#21665) 2021-07-25 15:36:04 -07:00
Dean Lee b3ee4d4a29 DriveStats: using dynamic properties to style QLabel (#21644)
* better stylesheet

* whitespace

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-07-23 23:07:23 -07:00
Adeeb Shihadeh 9215748080 UI: button released -> clicked (#21606) 2021-07-17 13:58:09 -07:00
sshane 0f93cb12ac keyboard: separate signals (#21629)
* separate signals

* clean up

clean up

clean up

* clean up

* Revert "clean up"

This reverts commit 38c1f18a56a946e97ee05f8e18b1797f060d011b.

* Revert "clean up"

This reverts commit 06430e29bfeaa3dd3a8d7f8911e0f0ba17d35d7b.

* Revert "separate signals"

This reverts commit 77ca8e3d17b34e84d8d1331b565b0b2ef6bc55d0.

* separate signals

* clean up

* caps fix
2021-07-16 17:27:43 -07:00
Adeeb Shihadeh c5bd6735d6 nice popup (#21630)
* nicer popup

* cleanup
2021-07-16 16:23:30 -07:00
Adeeb Shihadeh 62e63f0573 more setup (#21628)
* fix up kb

* blue continue

* dashcam

* clean up
2021-07-16 15:06:10 -07:00
Adeeb Shihadeh 3e19c73730 remove keyboard deadzone (#21627)
* remove keyboard deadzone

* add to height

* float
2021-07-16 13:54:30 -07:00