Commit Graph

645 Commits

Author SHA1 Message Date
Dean Lee
e4de82f906 ui: remove variable world_objects_visible, use rcv_frame (#23264) 2021-12-17 21:37:29 -08:00
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
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
Shane Smiskol
c84310c94c seems to be flipped (#23213) 2021-12-14 12:17:02 -08:00
Dean Lee
084ef39489 C2: display ip address in network panel (#23215)
* display ipv4 address

* refactor to class

* only display ip address
2021-12-14 12:14:51 +01:00
Dean Lee
c5dbee4e58 UI: add timeout to close settings window while onroad (#22980)
* refactor updateWakefulness

* don't hide sidebar

* rename reset->reset_timeout

* move related variables and functions into class Device

* reset timeout in ctor

* set timeout to 10s if ignition is on

* cleanup

* remove unused QTimer *timer

* check getTimestamp

* keep socket reading in update_state

* keep filtering

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2021-12-14 11:22:16 +01:00
Dean Lee
d4b8cba0f6 move LayoutWidget,ClickableWidget to controls (#23207) 2021-12-14 11:00:01 +01:00
Adeeb Shihadeh
df5b374033 add small minimum time between taps to onboarding (#23212)
Co-authored-by: Comma Device <device@comma.ai>
2021-12-13 17:38:19 -08: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
Dean Lee
2335a20584 limit style scope (#23181) 2021-12-09 11:37:59 -08: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
6e25ae9798 DevicePanel: fix dangling reference to params (#23154) 2021-12-07 10:41:41 -08:00
Willem Melching
2e0c73fc0c Remove Raw Upload toggle (#23143)
* Remove Raw Upload toggle

* fix tests
2021-12-07 11:25:40 +01:00
Comma Device
20dc4df024 fix UI build on comma two 2021-12-06 14:34:20 -08: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
Willem Melching
790a64af90 nav: open map on new route without valid OpenGL context (#23140) 2021-12-06 13:50:42 +01:00
Dean Lee
8545901c0c UI: draw header gradient in OnroadHud (#23137) 2021-12-05 21:06:47 -08:00
Dean Lee
5ab6bff670 OnroadHud: update engageability and DM icons at 2Hz (#23134) 2021-12-05 12:54:35 -08:00
Dean Lee
ad09507e1b UI: move onroad hud to Qt (#23040)
* onroad hud

* improve boudingrect, same as nanvg

* QRect

* Update selfdrive/ui/paint.cc

* stacked with nvgWindow

* cleanup ui.h

* rename to road_view_layout

* no lambda

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-12-04 23:02:10 -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
b2bcacf590 ui: singleton networkAccessManager (#22994) 2021-11-29 14:49:53 +01: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
Dean Lee
5394fe1ae7 DevicePanel: split long constructor into multiple functions (#23043)
* begin refactor

* split long constructor to multiple functions

* one connection to signal

* merge master
2021-11-29 11:14:34 +01:00
Dean Lee
ac179e2c36 qt/settings: reuse params (#23041) 2021-11-26 14:39:25 +01:00
Dean Lee
723c8d6a7c qt/settings: use default parameter for params.get (#23042) 2021-11-26 14:39:04 +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
6964adec39 networking: remove unused #inculde<QMovie> (#23016) 2021-11-23 15:24:28 -08:00
Dean Lee
c1f617db46 UI: fix cameraview crash after going offroad in settings window (#23009) 2021-11-22 21:46:46 -08:00
Dean Lee
aa0cc260b9 wifiManager/get_response: pass response by const reference (#22997) 2021-11-20 20:19:43 -08:00
Dean Lee
b399b48f0a ui/settingswindow: set parent for nav_btns. (#22984) 2021-11-19 20:40:46 -08:00
Dean Lee
63779c385d ui: disable toggles while onroad (#22975)
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-11-18 21:45:40 -08:00
Cameron Clough
140c7f430c api: send User-Agent on network requests (#22965)
* api: set User-Agent on network requests

The format of the User-Agent header matches the format in `common/api/__init__.py`.

Closes #22954.

* Update selfdrive/ui/qt/util.cc

* fix parentheses

* refactor into function

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2021-11-18 15:53:21 +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
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
ddc35826f7 sidebar: dont update states when hidden (#22948) 2021-11-17 14:12:57 +01:00
Willem Melching
5648b22833 nav: render at 20fps instead of 10fps 2021-11-17 12:26:17 +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
0e35db7c05 UI: fix wrong background on controls unresponsive alert 2021-11-16 13:17:32 -08:00
Dean Lee
9062085043 ui: update params on the show event (#22927) 2021-11-16 12:13:16 -08:00
Willem Melching
9f423a93cd nav: fix receiving navRoute while map is loading (#22929) 2021-11-16 14:27:38 +01:00
Adeeb Shihadeh
2f90f04f8d UI: fix alert flicker when controlsState not updated (#22921) 2021-11-15 16:27:19 -08:00
Willem Melching
07ff724726 Move shutdown/reboot handling to manager (#22882)
* Move shutdown/reboot handling to manager

* more logging

* check enagaged

* Apply suggestions from code review

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-11-12 09:10:34 -08:00