Dean Lee
d47d8808d1
ui/map: update destination on param change ( #28957 )
...
* update destination on param change
* use ParamWatcher
* remove include
2023-07-16 13:48:33 -07:00
Dean Lee
b4f7e76531
ui/util: add a helper class ParamWatcher ( #28978 )
...
* new class ParamWatcher
* Update selfdrive/ui/qt/util.cc
* Update selfdrive/ui/qt/util.h
* Update selfdrive/ui/qt/util.cc
* Update selfdrive/ui/qt/util.cc
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
2023-07-16 13:17:16 -07:00
Dean Lee
53934c7fee
ui/map: fix wrong remaining time ( #28960 )
2023-07-15 13:28:21 +01:00
Dean Lee
187696977e
ui/MapSettings: store destinations to load on widget init ( #28950 )
...
Co-authored-by: Cameron Clough <cameronjclough@gmail.com >
2023-07-15 11:37:41 +01:00
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
Dean Lee
ccfca97dfc
ui/map: cache navigation images at startup ( #28783 )
...
Co-authored-by: Cameron Clough <cameronjclough@gmail.com >
2023-07-14 20:18:49 +01:00
Shane Smiskol
f973d605b2
experimental mode: gate navigate on openpilot ( #28883 )
...
* first draft copy, needs updates
* gate behind exp mode
* can be one line
* this is no longer true
* toggle isn't just e2e long now, rename
* don't enable/disable
* kinda works!
* remove old giant qstring
* comment clean up
* similar breakpoint
* more clean up
* fixup onroad
* preserve planner behavior, and we don't need to look at confirmed param if we're onroad
* update translations
* vanish translations
* use scene for op long
* lowercase!
* updated copy
* need to check longitudinal here now too
* clean up!
* here is better
* used
* no nav emoji
* don't check param if not valid
* revert this
revert this
* ed
2023-07-14 05:26:59 -07:00
Shane Smiskol
936bfcd7ba
ui: use stencil buffer to draw polygons ( #28902 )
...
* Update ui.cc
* add a bunch of debugging stuff i don't want to lose
* Revert "add a bunch of debugging stuff i don't want to lose"
This reverts commit 2de6ab5b68bc528e913db68f7fe576b6ebe89a9b.
* enable stencil buffer
* lower ui CPU usage
* Revert "lower ui CPU usage"
This reverts commit 650241c0d89c1476de3995f1dc3f87f671dd1dd7.
2023-07-13 20:38:49 -07:00
Dean Lee
c3fe3c8162
ui/MapSettings: sort location JsonArray inplace ( #28886 )
2023-07-13 10:59:46 +01:00
Shane Smiskol
daf80eaef5
map panel: show map on interactive timeout ( #28904 )
...
Co-authored-by: Cameron Clough <cameronjclough@gmail.com >
2023-07-13 10:35:57 +01:00
Dean Lee
ae4a375dd6
ui/map: handle & display error in MapWindow ( #28854 )
2023-07-13 10:26:58 +01: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
c158537df6
ui: reset nav status on offroad transition ( #28897 )
...
* need to do this
* actually better to clear it on offroad transition, then onroad transition will be fine
2023-07-11 19:04:41 -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
Cameron Clough
6643616c47
nav: hide settings on map request visible ( #28884 )
2023-07-11 21:40:33 +01:00
Lee Jong Mun
92b5f0b5e5
Multilang: kor translation update ( #28885 )
...
kor translation update
2023-07-11 13:06:11 -07:00
Cameron Clough
4d61d680b2
UI: preserve recent destinations sort order ( #28881 )
2023-07-11 12:39:06 +01:00
Dean Lee
8149c07fac
ui/map: singleton navigation requests ( #28862 )
2023-07-11 11:42:10 +01:00
Dean Lee
d34138e275
ui: capnp best practices ( #28877 )
2023-07-11 10:26:57 +01:00
Dean Lee
4544b40b70
ui/map: don't clear eta when map is hidden ( #28878 )
2023-07-11 10:23:45 +01:00
Shane Smiskol
305ab3cb3e
ui: don't hide sidebar twice ( #28868 )
...
* draft
* draft 2
* comment and clean up
* delete
* better name
* even better?
2023-07-11 00:58:28 -07:00
Shane Smiskol
28df811f42
ui: remove unused MapPanel function ( #28874 )
...
forgot about this
2023-07-11 00:46:59 -07:00
Shane Smiskol
71e001ee57
map settings: accept touch events ( #28865 )
...
* accept touch events in map settings
* use override
* revert this
* remove debug stuff
* add comments
* not the main purpose
2023-07-11 00:21:25 -07:00
AlexandreSato
a812096464
Multilang: update pt-BR translations on prime ad ( #28866 )
...
update pt-BR translations on prime ad
2023-07-10 14:49:27 -07:00
mitchellgoffpc
1690cf4af6
Revert "UI: Indicate when Nav on OP is enabled ( #28665 )"
...
This reverts commit a66135665c .
2023-07-10 13:52:55 -07:00
Dean Lee
289fd32699
ui: cleanup setMainWindow ( #28768 )
...
* cleanup
* revert that
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
2023-07-09 16:46:50 -07:00
Dean Lee
e1ea1d58e4
ui/map: reuse the Qlabels and remove call to clearLayout ( #28788 )
...
* dont clearlayout
* replace show with setVisible
* remove signals&connections, call updateDistance in updateInstructions
* refactor updateDistance to getDistance
2023-07-09 21:27:24 +01:00
Dean Lee
7a42e51c90
ui/map: use overlay widget to simplify code and improve rendering performance ( #28800 )
...
* move widgets into overlay
* adjust margin
* add spacing
2023-07-09 16:03:51 +01:00
Dean Lee
060490bdf1
ui/map: draw ETA with rich formatted text ( #28780 )
...
* draw ETA with rich formatted text
* no rounded at the bottom corners
* add Params param to member
* fix font typo
* restore opendbc
* set antialiasing
* fix time format
2023-07-09 11:54:29 +01:00
Dean Lee
bde531d0bc
ui/ExperimentalButton: Initialize engageable to false ( #28846 )
2023-07-07 18:46:41 -07:00
Adeeb Shihadeh
99f9d21e4b
ui: add nav to prime features ( #28842 )
2023-07-07 15:07:37 -07:00
Dean Lee
219590885f
ui: remove function configFont. use struct InterFont ( #28773 )
2023-07-06 12:17:56 +02:00
Jason Young
e816c81a5a
nav ui: restore speed-adaptive map zoom level ( #28796 )
...
Revert "map: fix repeated call to m_map->setZoom (#25784 )"
This reverts commit f0665911b2 .
2023-07-05 15:45:32 -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
2d37c219e7
ui: cleanup controls ( #28809 )
...
* cleanup controls
* restore LayoutWidget
2023-07-05 10:50:14 -07:00
Dean Lee
0bbe9bf46a
ui/wifiManager: remove obsolete methods without definition. ( #28802 )
2023-07-04 11:34:00 -07:00
AlexandreSato
6495a18cc9
Multilang: update pt-BR translation ( #28774 )
...
update pt-BR translations
2023-07-01 18:45:01 -07:00
Dean Lee
93413c43df
UI: fix memory leak in MapSettings ( #28759 )
...
Co-authored-by: Cameron Clough <cameronjclough@gmail.com >
2023-07-01 09:45:05 +01:00
Dean Lee
081cc2eb79
ui/MapSettings: remove white border around destinations ( #28771 )
2023-07-01 08:40:06 +01:00
Dean Lee
32c5e6aafb
modeldata.h: convert constants to uppercase ( #28769 )
2023-07-01 08:26:21 +01:00
Adeeb Shihadeh
010ef17da5
UI: adjust opacity instead of visibility to indicate engageability ( #28765 )
2023-06-30 19:18:35 -07:00
Mitchell Goff
a66135665c
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 >
2023-06-30 19:00:36 -07:00
Dean Lee
5493cb4289
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 >
2023-06-30 13:45:58 -07:00
Dean Lee
7ac22a0d7a
ui/sidebar: Fix the inconsistent padding in different languages. ( #28746 )
...
cleanup
2023-06-30 13:40:28 -07:00
Adeeb Shihadeh
3e1ba3ff35
Revert "ui: fix memory leak in MapSettings ( #28701 )"
...
This reverts commit 5a00b42092 .
2023-06-30 13:22:20 -07:00
Dean Lee
57e70278dc
ui/device: remove method motionTrigger ( #28754 )
...
remove motionTrigger
2023-06-30 08:46:09 -07:00
Dean Lee
5a00b42092
ui: fix memory leak in MapSettings ( #28701 )
2023-06-29 13:37:19 -07:00
Dean Lee
c7f72698a6
ui: prevent constant clicking on experimental button ( #27865 )
...
Co-authored-by: Cameron Clough <cameronjclough@gmail.com >
2023-06-29 14:53:53 +01:00