Commit Graph

80 Commits

Author SHA1 Message Date
Dean Lee
e958ce1c31 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
2023-07-14 12:22:35 -07:00
Shane Smiskol
b8dd4dcc28 ui: singleton Device instance (#28908)
* singleton

* remove awake
2023-07-12 18:36:44 -07:00
Shane Smiskol
d68bd905fc ui: fix timeout typo (#28905)
tim is out -> timeout
2023-07-12 13:09:42 -07:00
Shane Smiskol
34a5e626d6 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
2023-07-11 14:49:19 -07:00
Dean Lee
d9d5ce3634 ui: fix alert disappear when no controlState is received in a frame. (#28811)
* always return alert

* don't get old alert
2023-07-05 15:20:28 -07:00
Dean Lee
5991aea10a 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
2023-07-05 15:00:33 -07:00
Dean Lee
57e70278dc ui/device: remove method motionTrigger (#28754)
remove motionTrigger
2023-06-30 08:46:09 -07:00
Harald Schäfer
124522e363 Alerts: make standard alert more opaque (#28706)
More opaque standard alert
2023-06-26 09:33:24 -07:00
Adeeb Shihadeh
07a68ca032 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>
2023-06-22 21:37:08 -07:00
Dean Lee
8ca3be9788 ui: refactor setPrimeType (#28143)
handle prime type change in new function UIState::setPrimeType
2023-05-15 13:08:21 -07:00
Dean Lee
d5375af2f5 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>
2023-03-14 13:59:22 -07:00
Harald Schäfer
eb8bdc0026 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
2023-02-17 19:58:30 -08:00
ZwX1616
955c1dff45 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>
2023-02-08 19:06:59 -08:00
Lee Jong Mun
92296ce55d remove unused space (#26680) 2022-12-02 18:53:50 -08:00
Adeeb Shihadeh
9c96b21367 publish experimental mode state (#26512)
* publish experimental mode state

* remove that
2022-11-15 17:18:13 -08:00
Adeeb Shihadeh
9a3f468051 experimental mode (#26416)
* experimental mode

* rename param

* red lights
2022-11-08 14:45:01 -08:00
Adeeb Shihadeh
c171fe9f9a 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
2022-10-31 23:01:22 -07:00
HaraldSchafer
dbc30c053c 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>
2022-10-27 17:27:31 -07:00
Adeeb Shihadeh
06e283a750 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>
2022-10-05 16:10:14 -07:00
Cameron Clough
bc7be114d8 UI: remove unused tap detection constant (#25956) 2022-10-03 13:58:40 -07:00
Adeeb Shihadeh
391780551a UI: remove imu tap detection (#25924) 2022-09-29 11:02:27 -07:00
Dean Lee
27e1ec8fd3 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>
2022-09-13 03:02:13 -07:00
Cameron Clough
a8134f2265 e2e long yellow path (#25679)
* yellow brick road

* live toggling

* path color from acceleration

* more yellow
2022-09-07 08:58:33 -07:00
Greg Hogan
93cd0285ac 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>
2022-07-18 13:57:21 +02:00
Dean Lee
867a1cf35a ui: replace line_vertices_data with QPolygonF (#25001)
use QPolygonF

use push_front
2022-06-30 10:57:47 +02:00
Willem Melching
915b4928ff 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
2022-06-27 16:03:26 +02:00
Willem Melching
2699bae778 ui: disable controls unresponsive alert on PC 2022-06-16 16:07:04 +02:00
HaraldSchafer
7f16e19f79 Remove laneless toggle (#24738)
* Remove laneless toggle

* Update refs
2022-06-03 14:04:14 -07:00
Adeeb Shihadeh
cb8885cffb Merge common/ and selfdrive/common (#24556)
* Merge common/ and selfdrive/common

* fix that

* fix version

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

* cleanup release files

* little more

* more libs

* no more gralloc

* add snpe back
2022-04-18 17:55:23 -07:00
Shane Smiskol
8e34ddc70e ui: grey border and alert when pre-enabling (#24057)
* make border and alert grey when overriding

revert cereal

* no state machine changes

* typo
2022-03-28 20:03:52 -07:00
Adeeb Shihadeh
00d469dbc9 UI: fix power buttons disable logic (#23774) 2022-02-15 16:18:09 -08:00
Willem Melching
e76ef93a83 ui: fix onroad transition with active nav (#23757) 2022-02-14 13:55:30 +01:00
Willem Melching
4e4cb07297 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
2022-02-09 20:27:58 +01:00
Dean Lee
786152f0f1 remove trailing whitespaces (#23716) 2022-02-06 10:42:41 -08:00
Dean Lee
cd9813ab6a UI: run set_brightness in QtConcurrent (#23326)
* use QFuture

* update at 10 hz

* don't change frequency
2022-01-04 14:03:27 +01:00
Dean Lee
21ee6d25c7 ui: emit offroadTransition in UIState::updateStatus (#23265) 2022-01-03 17:35:05 -08:00
Adeeb Shihadeh
2d8578545f UI: less harsh controls unresponsive when not engaged 2021-12-20 23:56:25 -08:00
Dean Lee
e4de82f906 ui: remove variable world_objects_visible, use rcv_frame (#23264) 2021-12-17 21:37:29 -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
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
Adeeb Shihadeh
755ec71c05 UI: remove burn in prevention (#23173) 2021-12-08 13:58:06 -08:00
Jason Shuler
af275af38f ui.h: add missing optional header include (#23160) 2021-12-07 13:44:58 -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
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
Adeeb Shihadeh
e679d05d9e New sounds (#22652)
* new engage/disengage + amp config

* first family

* cleanup audible alerts

* tici isn't special

* fix up debug cycle alerts

* these were better

* extend range

* use distracted sound

* log scaling

* getting closer

* slightly louder

* prompt

* update tests

* update refs

* fix c2 test

* resolve todo

* adjust tolerance

* revert for now

* should work

Co-authored-by: Comma Device <device@comma.ai>
2021-11-30 19:47:33 -08:00
Dean Lee
e376a621ba ui/device: change last_brightness from float to int (#23029) 2021-11-26 14:59:23 +01:00
Dean Lee
7ce9ff1b04 ui/device: fix uninitialized variable awake (#22983) 2021-11-19 20:40:29 -08:00
Adeeb Shihadeh
f2a81309e1 Revert "Revert "Fix build failures in Ubuntu 21.10 (#22952)""
This reverts commit 5e2570dc75.
2021-11-17 13:46:38 -08:00