Commit Graph

943 Commits

Author SHA1 Message Date
Dean Lee c49d605320 UI: fix memory leak in MapSettings (#28759)
Co-authored-by: Cameron Clough <cameronjclough@gmail.com>

old-commit-hash: 93413c43df594a63b36c896c629daaef27dd9fe4
2023-07-01 09:45:05 +01:00
Dean Lee 38be68ff5e ui/MapSettings: remove white border around destinations (#28771)
old-commit-hash: 081cc2eb79ba917fe037b31d01f669c1a8b16ab9
2023-07-01 08:40:06 +01:00
Dean Lee 235235b2d9 modeldata.h: convert constants to uppercase (#28769)
old-commit-hash: 32c5e6aafb702a5a17ca7b43c9062ce9e4462d34
2023-07-01 08:26:21 +01:00
Adeeb Shihadeh 75d92ae89c UI: adjust opacity instead of visibility to indicate engageability (#28765)
old-commit-hash: 010ef17da552041a3b39f074ea98571e1211d9f7
2023-06-30 19:18:35 -07:00
Mitchell Goff 6a21c44d90 UI: Indicate when Nav on OP is enabled (#28665)
* Indicate whether nav is enabled in UI

* update border spacing on both enabled and navEnabled change

* update less

* more

* cleanup

* simplify

* fix

---------

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
old-commit-hash: a66135665c9256b4efa1c3ebac171b847dfdceaa
2023-06-30 19:00:36 -07:00
Dean Lee a8f8d0b512 ui/settings: allow driving personality without CarParams (#28753)
* allow driving personality without CarParams

* rename to hasLongitudinalControl

* Update selfdrive/ui/qt/util.cc

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 5493cb4289aea0d69e30408075a43044b895c8ec
2023-06-30 13:45:58 -07:00
Dean Lee 7ac669d510 ui/sidebar: Fix the inconsistent padding in different languages. (#28746)
cleanup
old-commit-hash: 7ac22a0d7abb51e604e23a3b8d9500328bafac18
2023-06-30 13:40:28 -07:00
Adeeb Shihadeh 82893982e5 Revert "ui: fix memory leak in MapSettings (#28701)"
This reverts commit 3ab739ea1374fc13297884b62065b0612dba7358.

old-commit-hash: 3e1ba3ff3522bb2eb8a8f41ecb1158314af6c3dc
2023-06-30 13:22:20 -07:00
Dean Lee 666467266d ui: fix memory leak in MapSettings (#28701)
old-commit-hash: 5a00b420923a1fc7563c68642dca9fbb7d7b7fa7
2023-06-29 13:37:19 -07:00
Dean Lee f7602512f7 ui: prevent constant clicking on experimental button (#27865)
Co-authored-by: Cameron Clough <cameronjclough@gmail.com>

old-commit-hash: c7f72698a6b1c3e7eb7d2928c52c480af1f3dbf6
2023-06-29 14:53:53 +01:00
Dean Lee e32111a7a7 ui: ignore tap to wake device (#28656)
revert to first version
old-commit-hash: 5df45dcef4a384ad059b1df385a119b66dcf4477
2023-06-28 18:01:31 -07:00
Shane Smiskol 04bc7566af ui: hide sidebar when map shows (#28490)
Co-authored-by: Cameron Clough <cameronjclough@gmail.com>

old-commit-hash: dcb769982f87e8128679fd76e181e6ccef2dd5f0
2023-06-28 16:26:09 +01:00
Harald Schäfer 659fc99be4 Nav: show gps as long as it's 100m accuracy (#28713)
* Nav: show gps as long as it's 100m accuracy

* Get norm

* get std
old-commit-hash: 85c4b1a400e9ab80536c0bf2ac8f1bacc4476c2c
2023-06-27 19:09:45 -07:00
Dean Lee 458190081c UI/AnnotatedCameraWidget: cleanup drawHud (#28167)
Co-authored-by: Cameron Clough <cameronjclough@gmail.com>

old-commit-hash: 070bdcdf89674e0086c93afbc9453cde42f1ba60
2023-06-26 14:17:19 +01:00
Harald Schäfer ff56008ecf Alerts: revert gradient removal (#28686)
revert gradient removal
old-commit-hash: dce060a7985b6aaf03d5ab1cc3d78c994ddc7700
2023-06-25 08:55:37 -07:00
Dean Lee e9782ae98f ui: scale training image to fit window (#28454)
old-commit-hash: 76ce71c6d67aaff44c6412506c47a387d8abf7e3
2023-06-24 21:10:29 -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: 07a68ca032e828e46a9a6a74d7461fde5c3fc69f
2023-06-22 21:37:08 -07:00
Dean Lee 34db65aad0 ui/map_settings: remove repaint (#28642)
old-commit-hash: e8db988f2a40716bca2cf1767ddb7b589274dfc4
2023-06-23 00:31:05 +01:00
Cameron Clough 7e697a0d3d update mapbox style (#28638)
updated map components and dataset
old-commit-hash: a2b7d2c86788be157c41edfc3e582c588fa32984
2023-06-22 22:10:42 +01:00
Cameron Clough b6e6f008f1 UI: improved nav destination entry (#28476)
old-commit-hash: bc5a8990241311e347455ea8d69a064bd0693266
2023-06-22 19:57:29 +01:00
Dean Lee 1b3ba1c7ee ui: multilang offroad alerts (#28512)
Co-authored-by: Shane Smiskol <shane@smiskol.com>
Co-authored-by: Cameron Clough <cameronjclough@gmail.com>

old-commit-hash: 2b800cf2e79048bbccb821135d1cf03ec7a580b0
2023-06-22 15:04:28 +01:00
Cameron Clough fadee2464d UI: fix DM icon margins (#28635)
old-commit-hash: bf8e815ababb4f9f0436737504f0f1d20e43c029
2023-06-22 11:58:38 +01:00
Cameron Clough 24f246c2d9 networking: add forget btn pressed state (#28618)
old-commit-hash: 8495510c290064b6784988eff860134cfa16207f
2023-06-21 14:42:18 +01:00
Harald Schäfer 8b0492c8fe Alpha long control no longer called experimental (#28437)
* Fix words

* vanish

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: da3003ee41eb5e80a78d7639ecfdf16536f0fab9
2023-06-14 21:51:55 -07:00
Cameron Clough 727b79b66f UI: consider border when setting map width (#28488)
old-commit-hash: 22ebd4fa8f7f9974daf096db6d3e11034149d6d9
2023-06-10 22:09:48 -07:00
Jason Wen f7824bffb0 offroad ui: remove irrelevant comment (#28485)
old-commit-hash: f0eef38dc0287baa0c8450290b90a948fa7bf01f
2023-06-10 13:01:16 -07:00
Cameron Clough e199a1a953 MapPanel cleanup (#28474)
old-commit-hash: f7f5537af74625e3a08352fef73eebffd4991a49
2023-06-09 17:08:57 -07:00
Dean Lee e5f294783f ui: disable longitudinal personality settings when using stock long (#28443)
* disable longitdinal personality settings

* disable title label

* Revert "disable title label"

This reverts commit ef315ac2770191f1309f774185266e0cd9fe54b0.

* gray checked button on disable
old-commit-hash: 9295aca8eaebaadbc7ec96e82ece55dcaa3b668e
2023-06-08 16:03:18 -07:00
Shane Smiskol 633cdf0d0a ButtonParamControl: minimum button width (#28442)
* min width

* param
old-commit-hash: a92cd659cef7c517b40e7fd1455a12bacb3184b9
2023-06-07 01:11:41 -07:00
Harald Schäfer edd8fc412b Driving personality setting: add description (#28422)
* Driving personality setting: add description

* Missing word
old-commit-hash: d6cfbd0097a3f4ebc4cd49858c8f14aff84a01dc
2023-06-06 11:07:31 -07:00
Dean Lee bfecfe3f8e ui: refactor ButtonParamControl (#28425)
* refactor ButtonParamControl

* add pressed style

* connect to buttonToggled

* typo
old-commit-hash: 7f41047178b5390581b9f18435939ba43a43a423
2023-06-06 01:18:17 -07:00
Harald Schäfer 36aa81cdc3 Driving Personality setting (also changes follow distance) (#24742)
* Skeleton

* Adjustable follow parameter

* fix rebase

* long planner

* typo

* Add ui toggle

* Fix icon

* Improve text

* Better toggle position

* Im a UX engineer now

* add param reader

* CHange jerk to have same crash test performance

* Try reading param

* Unused comment

* translate ui text

* std stoi

* Parametrized buttons

* Empty strings are ints

* Move to generic

* Update translations

* Fix translation diffs

* Release notes

* update refs

* tweaks

* Misc fixes

* No param is standard
old-commit-hash: 205c900742a18ca4662f4535a1a4008624c05995
2023-06-05 22:17:41 -07:00
Shane Smiskol baa6d32fc6 ui: wrap missing updater text (#28417)
* wrap more

* wrap more

* and that

* update
old-commit-hash: aa4bbcefd3d68ae670dd5c57b0dceb0e57931567
2023-06-05 17:27:34 -07:00
Cameron Clough adb8a80ff4 UI: connect to wifi prompt (#28273)
* OffroadHome: move experimental mode button to right column

* OffroadHome: replace DriveStats with PrimeAd when no prime

* SetupWidget: remove PrimeAd

* SetupWidget: tweaks to fit smaller space

* UI: add WiFiPromptWidget

* WiFiPrompt: update using network type

* add WiFiPromptWidget to offroad home

* reduce spacing to fit vertical space

* WiFiPromptWidget: open Wi-Fi settings

* no longer necessary

* cleanup

* shrink PrimeUser widget and increase Setup Wi-Fi font size

* correctly resize widget when stack index changes

* layout tweaks

* debug

* spacing

* slightly improved style

* helps -> help

* .
old-commit-hash: 4f815db141db8b0257158d6969e78dea1b727912
2023-06-02 23:24:38 -07:00
Harald Schäfer 4b308e0fc7 Toggles: Reorganize in descending importance for driving (#28364)
Reorganize toggles in descending importance for driving
old-commit-hash: e0c95f7ad9a693e04824d193901cd1e2fdb17e93
2023-06-01 21:39:30 -07:00
Cameron Clough bdb92e691c UI: remove comma points (#28303)
* UI: remove comma points

* remove param
old-commit-hash: e875bcfaeec9a4bfab2d8e4e4bb5b7ee978eb047
2023-05-30 18:18:47 -07:00
Shane Smiskol afe7825130 Revert "ui: smooth wide cam transition" (#28298)
Revert "ui: smooth wide cam transition (#28277)"

This reverts commit ee6df0ef025d95c495248e46d53de2842363058e.
old-commit-hash: 21f88f997d80430dac16513c9dafb358ce3494ae
2023-05-25 19:23:50 -07:00
Cameron Clough 7db6687227 UI: PrimeUserWidget cleanup (#28300)
* cleanup

* setMargin is obsolete

* more
old-commit-hash: 13cf6957384f0ce620c6f74f87f77d04e19800c3
2023-05-25 16:40:40 -07:00
Cameron Clough 36a72433c7 UI: update "Finish Setup" widget style (#28287)
* UI: update SetupWidget registration design

* SetupWidget: add icon

* Revert "SetupWidget: add icon"

This reverts commit 325d2d390496f287953beb1634b229ff4ff31717.
old-commit-hash: 387e865793a72011a6dfa096557987601c816809
2023-05-25 13:01:51 -07:00
Cameron Clough 397665d45c UI: add missing QPushButton pressed styles (#28289)
* UI: add missing QPushButton pressed styles

* keyboard is special
old-commit-hash: 488975f06ec6a282e023dbd5db9e265299458f4c
2023-05-24 22:44:10 -07:00
Dean Lee 7be85a4550 ui: update DM icon at every frame (#28226)
old-commit-hash: 634280ca5117a014cc7f2620e94ebc62c050d70e
2023-05-24 20:46:27 -07:00
Dean Lee cdd5958ab7 ui/MainWindow: use switch in eventFilter (#28276)
old-commit-hash: 2c44c8980c3893c01453049dd06a396e6f2358ad
2023-05-24 20:45:58 -07:00
Shane Smiskol 33ddd8eb44 ui: smooth wide cam transition (#28277)
* horribly messy

* bit simpler

* is this right?

* simpler and should work?

* used to be int/frames, but added easing so treat as float

* end slow (start fast)

* little faster

* clean up

* not needed

* try ease in/ease out and fix

* remove debugging print

* fix

* revert to previous curve

* based on speed

* not right

* fix

* fix

* this kinda works

* Revert zoom by speed

Revert "this kinda works"

This reverts commit 48aa30b945148b8eb79fbe33eb58e3fc3a6a7009.

Revert "fix"

This reverts commit 4ff2d33486231727d7cd68d366342c2273e3a315.

Revert "fix"

This reverts commit 15b22f8e8284eb017000856abb05b5e8973a6c0e.

Revert "not right"

This reverts commit 378b9965e14250c57ed39e1976de60d89054c2c8.

Revert "based on speed"

This reverts commit 1f7bfa5d73a2dee3740096da64eda24b33288b51.

Revert "Revert "not right""

This reverts commit 1beeb402534a755208d19771eb4a2afdc69b8739.

* better curve

* revert

* use constants and fixes

* up here too

* feels more intuitive to make zoom_transition=1 be zoomed in

* rm line

* fix

* cmt

* better handling

* better name

* zoom if ANY other stream is requested

* Update selfdrive/ui/qt/widgets/cameraview.cc
old-commit-hash: 26064196d0362d7719ce7b1ee835eb2193a3dc57
2023-05-24 17:28:33 -07:00
Cameron Clough 5560082d37 UI: cleanup OffroadHome layout (#28284)
old-commit-hash: d6592436481e448933e8124541a8d5654a3b3d34
2023-05-24 15:41:14 -07:00
Cameron Clough a02f688db2 UI: reduce margin around software version (#28283)
old-commit-hash: 94937e0694d600bf15c4180452acf1a2029bf81c
2023-05-24 15:00:17 -07:00
Dean Lee b6fe3eac41 ui/settings: fixed button overlap in sidebar. (#28220)
fix button overlap
old-commit-hash: 781a6fcc5fcdc8b73040e16c1994f655ee79593d
2023-05-17 20:16:39 -07:00
Dean Lee 8f2084089d ui/drawDriverState: don't draw circle bg twice (#28168)
do not draw circle bg twice
old-commit-hash: fe6ce429c5e05a918f8838665a49ab442a483dc6
2023-05-16 14:01:06 -07:00
Dean Lee 9858839db0 ui: refactor setPrimeType (#28143)
handle prime type change in new function UIState::setPrimeType
old-commit-hash: 8ca3be97880cfddb230f02924017d9a2edeb7a89
2023-05-15 13:08:21 -07:00
Harald Schäfer 5ddceb553d Calibrationd: make recalibrating alert (#28149)
* Initial

* fixes

* not an int anymore

* elif

* revert ref

* update ref

* fix alert text

* regen refs

* update ref

* add recalibration unit test

* set into recalibration state

* fix words

* recalib

* text

* Update selfdrive/controls/lib/events.py

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

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 598343aad18a7896c6b65ff6e19f9e27ba19cc10
2023-05-15 09:29:57 -07:00
Adeeb Shihadeh 472a1cf63b ui: catch silent EGL failure (#28169)
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 432f316e8df9fd614f784f0b5b3b445d14cc5f8e
2023-05-11 15:22:09 -07:00