Commit Graph

86 Commits

Author SHA1 Message Date
Adeeb Shihadeh
cdb9993290 ui: add purple prime def
old-commit-hash: 0f0acc190b
2023-11-15 17:04:07 -08:00
Dean Lee
3196e129ca ui: make default_face_kpts_3d constexpr (#30239)
old-commit-hash: 383964cd5b
2023-10-14 09:14:20 -07:00
Cameron Clough
c7820cf1cc ui: hasPrime/primeChanged helper (#29590)
old-commit-hash: 05e91c074d
2023-08-24 12:47:22 +01:00
Dean Lee
c6db4c515c ui: use enum PrimeType for prime_type (#29491)
old-commit-hash: 99279b8eef
2023-08-24 12:26:45 +01:00
Dean Lee
97e9d55588 cpplint: build/include_what_you_use (#29556)
* include_what_you_use

* remove comments

* include <memory>

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 2d99521e75
2023-08-23 13:25:17 -07:00
Dean Lee
5cc9fbe23f ui: longer screen timeout for driver view (#27457)
* longer driverview timeout

* Update ui.cc

* reset timeout

* do cleanup

* Apply suggestions from code review

* Update selfdrive/ui/ui.cc

* reset to default timeout on hidden

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: f1568b960a
2023-08-16 22:22:39 -07:00
Dean Lee
b8110a90d2 ui: set max brightness when showing the QR code (#28907)
* set max brightness when showing the QR code

* set brightness in ui

* set in device
old-commit-hash: e958ce1c31
2023-07-14 12:22:35 -07:00
Shane Smiskol
222f7f6727 ui: singleton Device instance (#28908)
* singleton

* remove awake
old-commit-hash: b8dd4dcc28
2023-07-12 18:36:44 -07:00
Shane Smiskol
b9aa2c232f ui: fix timeout typo (#28905)
tim is out -> timeout
old-commit-hash: d68bd905fc
2023-07-12 13:09:42 -07:00
Shane Smiskol
37ee12de52 ui: show map with nav (#28867)
* accept touch events in map settings

* draft

* draft 2.0

* revert this stuff

* need this

* fix

* clean up debug prints

* fraft

* only show map on closeSettings if nav

* works!

* can't do it here

* I was going to connect signals from UIState to HomeWindow, then to OnroadWidget, but that seems like too much

* just need to keep track of it in onroad, seems like the cleanest option

* ideally we show the map where we set the scene variable, and that's in map.cc

* old variable

* comments

* less confusing

* app comment

* add back

* fix

* move to top

* remove this comment
old-commit-hash: 34a5e626d6
2023-07-11 14:49:19 -07:00
Dean Lee
b987242655 ui: fix alert disappear when no controlState is received in a frame. (#28811)
* always return alert

* don't get old alert
old-commit-hash: d9d5ce3634
2023-07-05 15:20:28 -07:00
Dean Lee
724ef9d7ef ui: more descriptive global names (#28813)
* rename global bdr_s to UI_BORDER_SIZE

* rename header_h to UI_HEADER_HEIGHT

* remove unused footer_h
old-commit-hash: 5991aea10a
2023-07-05 15:00:33 -07:00
Dean Lee
a001b46ce9 ui/device: remove method motionTrigger (#28754)
remove motionTrigger
old-commit-hash: 57e70278dc
2023-06-30 08:46:09 -07:00
Harald Schäfer
e7c96c1a95 Alerts: make standard alert more opaque (#28706)
More opaque standard alert
old-commit-hash: 124522e363
2023-06-26 09:33:24 -07:00
Adeeb Shihadeh
39d1e68030 UI: border is always engagement state (#27416)
* border is for engagement state

* round shading too

* alerts =/= status

* no debug print

* Full still full

* more cleanup

* more radius

* Update mui too

* normal black

* cleanup

---------

Co-authored-by: Bruce Wayne <harald.the.engineer@gmail.com>
old-commit-hash: 07a68ca032
2023-06-22 21:37:08 -07:00
Dean Lee
9858839db0 ui: refactor setPrimeType (#28143)
handle prime type change in new function UIState::setPrimeType
old-commit-hash: 8ca3be9788
2023-05-15 13:08:21 -07:00
Dean Lee
2936d72386 ui: auto detect available streams (#27470)
* auto detect available streams

* no switch if wide cam not available

* clear frames before getAvailableStreams

* warning

* clear at same time

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: d5375af2f5
2023-03-14 13:59:22 -07:00
Harald Schäfer
0ac73f2a81 MPC path in UI (#27380)
* 10s lat

* Full length MPC

* redfine N

* Leave controls the same for now

* Updates

* use long plan in lat plan

* interp plan

* simplergit add selfdrive/controls/plannerd.py selfdrive/controls/

* expand to 10s

* revert this

* fix linter

* vizualize

* fix long test

* typo

* cleanup

* compiles

* unused

* unused

* bump cereal

* bump cereal

* use model if no uiplanm

* update replay

* update ref commit

* bump cereal to master
old-commit-hash: eb8bdc0026
2023-02-17 19:58:30 -08:00
ZwX1616
8fd5f1b50d ui: dmoji (#27070)
* will draw

* gradient

* bg

* add sense of depth

* refactor

* cleanup

* fix endpoint

* clean up

* use array

* 1 matmul

* lives in modeldata

* standstill only

* remove bad pts

* do less math

* smooth

* kind

* fix d

* lineswidth

* fade in and out

* hide

* quick

* gray out

* fix joints

* offset

* rest icon

* clean up

* circle as state

* longlat

* new design

* gap and g

* scaledown, fix jts and unlock not standstill

* width

* different

* intermediate

* sand

* motion effect

* vis

* fix bg

* clean up

* t

* btn_size

* small speedup

* sligh

* clean up

* facelift

* match .2

* .4 is good

* size

* no ss

* rhd compat

* less filt

* more line

* engaged

* not white

* drop prop

* this is fine

* independent falg

* sg

* dont look like hitman

* cleanup

* little more

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 955c1dff45
2023-02-08 19:06:59 -08:00
Lee Jong Mun
a5f952c69b remove unused space (#26680)
old-commit-hash: 92296ce55d
2022-12-02 18:53:50 -08:00
Adeeb Shihadeh
aec5f32f3c publish experimental mode state (#26512)
* publish experimental mode state

* remove that
old-commit-hash: 9c96b21367
2022-11-15 17:18:13 -08:00
Adeeb Shihadeh
74979a7c76 experimental mode (#26416)
* experimental mode

* rename param

* red lights
old-commit-hash: 9a3f468051
2022-11-08 14:45:01 -08:00
Adeeb Shihadeh
273b1c5b5c UI: draw onroad objects on right frame (#26306)
* update before draw

* fix a lot of janky

* fix more flicker

* cleanup

* fix flicker when opening settings

* simplify
old-commit-hash: c171fe9f9a
2022-10-31 23:01:22 -07:00
HaraldSchafer
ed91648949 UI: fade into wide camera (#26203)
* UI: fade into wide camera

* handle routes with no wide calib

* more cleanup

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: dbc30c053c
2022-10-27 17:27:31 -07:00
Adeeb Shihadeh
6831f3499f UI: only show cell settings on non-prime connection (#25067)
* fix indentation

* add primeTypeChanged signal to uiState

* hide advanced networking toggles on prime type change

* switch between map settings on prime type change

* cleanup

* remove duplicate code, wait for signal

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
old-commit-hash: 06e283a750
2022-10-05 16:10:14 -07:00
Cameron Clough
595d8471db UI: remove unused tap detection constant (#25956)
old-commit-hash: bc7be114d8
2022-10-03 13:58:40 -07:00
Adeeb Shihadeh
bcd69adc33 UI: remove imu tap detection (#25924)
old-commit-hash: 391780551a
2022-09-29 11:02:27 -07:00
Dean Lee
8256220a51 ui: multilang date (#25741)
* multilang date

* update translations

* add language to uistate

* update translations

* use it here too

Co-authored-by: sshane <shane@smiskol.com>
old-commit-hash: 27e1ec8fd3
2022-09-13 03:02:13 -07:00
Cameron Clough
1d78524b9d e2e long yellow path (#25679)
* yellow brick road

* live toggling

* path color from acceleration

* more yellow
old-commit-hash: a8134f2265
2022-09-07 08:58:33 -07:00
Greg Hogan
5dd12e194b nav: toggle to show on left side of onroad ui (#25169)
* nav: show on left side of onroad ui

* add toggle

* capitalization

* update translations

* single params object

* skip unfinished translations test

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 93cd0285ac
2022-07-18 13:57:21 +02:00
Dean Lee
98046a880e ui: replace line_vertices_data with QPolygonF (#25001)
use QPolygonF

use push_front
old-commit-hash: 867a1cf35a
2022-06-30 10:57:47 +02:00
Willem Melching
c88c78a13b ui: use current calibration to center vanishing point (#24955)
* compute x and y offsets using calibration

* fix default calibration

* clamp to max values

* only use when valid

* not while calibrating

* less diff

* cleanup zoom
old-commit-hash: 915b4928ff
2022-06-27 16:03:26 +02:00
Willem Melching
7fce9f4fdf ui: disable controls unresponsive alert on PC
old-commit-hash: 2699bae778
2022-06-16 16:07:04 +02:00
HaraldSchafer
08ad733229 Remove laneless toggle (#24738)
* Remove laneless toggle

* Update refs
old-commit-hash: 7f16e19f79
2022-06-03 14:04:14 -07:00
Adeeb Shihadeh
f4675fc260 Merge common/ and selfdrive/common (#24556)
* Merge common/ and selfdrive/common

* fix that

* fix version

* fix unit tests
old-commit-hash: cb8885cffb
2022-05-18 14:11:57 -07:00
Adeeb Shihadeh
5a9644261f remove comma two support (#24248)
* remove comma two support

* cleanup release files

* little more

* more libs

* no more gralloc

* add snpe back
old-commit-hash: 5c48e7bc86
2022-04-18 17:55:23 -07:00
Shane Smiskol
5f4ac6cb96 ui: grey border and alert when pre-enabling (#24057)
* make border and alert grey when overriding

revert cereal

* no state machine changes

* typo
old-commit-hash: 8e34ddc70e
2022-03-28 20:03:52 -07:00
Adeeb Shihadeh
b695ffbfdb UI: fix power buttons disable logic (#23774)
old-commit-hash: 00d469dbc9
2022-02-15 16:18:09 -08:00
Willem Melching
5d55924fac ui: fix onroad transition with active nav (#23757)
old-commit-hash: e76ef93a83
2022-02-14 13:55:30 +01:00
Willem Melching
30a0b40b5d ui: configure tethering based on prime type (#23733)
* Store prime type in param

* set tethering metric based on prime type

* update existing connections

* returning zero is fine

* always set

* add callback on activate

* call systemctl

* match server enum

* add delay

* assume field is there

* snake case
old-commit-hash: 4e4cb07297
2022-02-09 20:27:58 +01:00
Dean Lee
fab73e6e9f remove trailing whitespaces (#23716)
old-commit-hash: 786152f0f1
2022-02-06 10:42:41 -08:00
Dean Lee
336d37e95c UI: run set_brightness in QtConcurrent (#23326)
* use QFuture

* update at 10 hz

* don't change frequency
old-commit-hash: cd9813ab6a
2022-01-04 14:03:27 +01:00
Dean Lee
2701743349 ui: emit offroadTransition in UIState::updateStatus (#23265)
old-commit-hash: 21ee6d25c7
2022-01-03 17:35:05 -08:00
Adeeb Shihadeh
487f8cdeaf UI: less harsh controls unresponsive when not engaged
old-commit-hash: 2d8578545f
2021-12-20 23:56:25 -08:00
Dean Lee
9321e1bb6c ui: remove variable world_objects_visible, use rcv_frame (#23264)
old-commit-hash: e4de82f906
2021-12-17 21:37:29 -08:00
Dean Lee
1fc1819c2b ui: singleton uistate (#22789)
* singleton uistate

* merge master

* merge master

* merge master

* connect uistate in sidebar

* move to device
old-commit-hash: 2483fc5d5d
2021-12-14 22:28:12 -08:00
Dean Lee
c031c1a8d4 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>
old-commit-hash: c5dbee4e58
2021-12-14 11:22:16 +01:00
Adeeb Shihadeh
2063ff2d71 UI: remove burn in prevention (#23173)
old-commit-hash: 755ec71c05
2021-12-08 13:58:06 -08:00
Jason Shuler
cabd6c6b95 ui.h: add missing optional header include (#23160)
old-commit-hash: af275af38f
2021-12-07 13:44:58 -08:00
Dean Lee
88ebf835bb 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
old-commit-hash: 20f571db3c
2021-12-06 14:02:39 -08:00