Commit Graph

1629 Commits

Author SHA1 Message Date
Dean Lee 363740a497 cpplint: add readability/braces filter (#29554) 2023-08-23 10:13:46 -07:00
Dean Lee 55c156dfb2 soundd: set volume on changes (#29389)
* set volume on change

* async set volumn

* Revert "async set volumn"

This reverts commit 7bc88c498353fff158b0de3d1923aa2c0f004a37.
2023-08-22 14:09:03 -07:00
Dean Lee 5765c1d978 ui/settings: Don't apply styles to more elements than needed. (#29463) 2023-08-22 14:00:01 -07:00
Adeeb Shihadeh 952d720b6e add cpplint (#26855)
* setup cpplint

* only start that

* check line length

* check these

* rm exceptions
2023-08-22 13:55:23 -07:00
Adeeb Shihadeh a9626f95b6 add openpilot prefix to imports (#29498)
* add openpilot prefix to imports

* more

* more

* fix docs

* fix linter

* bump submodules

* fix patched tests

* update dynamic imports

* debug

* Revert "debug"

This reverts commit db5e13b9911cc74438bee123bc3430da6c31b24b.

* fix pm test
2023-08-20 20:49:55 -07:00
Lee Jong Mun 1f056f3217 kor translation update (#29493) 2023-08-20 15:05:25 -07:00
Dean Lee 9ea2cd8d0b ui/map_instructions: center lanes (#29465)
* center lanes

* test

* similar spacing and no need for stretchj

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-08-19 01:23:42 -07:00
pencilpusher f2d22075eb ui/map: interactive counter fix (#29470)
* use interactive_counter instead of separate zoom and pan counters

* use interaction_counter instead of separate zoom and pan counters

* same styling

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-08-19 00:07:52 -07:00
Dean Lee efefcfdca5 ui/map: better rounding for distances (#29151)
* round distance

* use same format in ETA

* remove vanish

* restore translate

* use nearbyint

* update translations

* mark finished

* consistent style

* we don't include this anywhere in ui, needed?

* fix missing std

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-08-17 22:58:18 -07:00
Shane Smiskol d827cd6a83 map eta: use pair (#29460)
use pair
2023-08-17 22:42:12 -07:00
Shane Smiskol 6d2922b8e6 ui/map: slight turn lane types (#29446)
* add slight turns

* bump cereal

* revert

* hmm, i like this better

* whops

* fix

* bump
2023-08-17 20:51:52 -07:00
Dean Lee b8b1e17a21 ui/networking: do not skip the connected network (#29396)
* do not skip connected network

* simplify

* revert

* revert

* no implicit

* ifwt

* fix missing ssid

* makes more sense to only update security_type once (first vs. last)

* better comment

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-08-17 14:43:40 -07:00
Dean Lee 1887d9197a ui/networking: pass network by value (#29448) 2023-08-17 11:37:42 -07:00
Shane Smiskol fb94202014 Multilang: enable Thai (#29447)
enable thai in the ui
2023-08-17 03:16:31 -07:00
Dean Lee 202b2f2113 ui/map: hide icon if no maneuver type (#29084)
hide icon if no maneuver type
2023-08-17 02:05:19 -07:00
Dean Lee 3a277f1b81 ui/map: show map on destination set/change (#29327)
* show map on dest set/change

* check for rcv_frame

* clear current_nav_dest

* restore allow_open

* use requestShow

* cleanup

* one check

* revert behavior changes

* Update selfdrive/ui/qt/maps/map.cc

* more obvious

* Update selfdrive/ui/qt/maps/map.cc

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-08-17 01:32:22 -07:00
Shane Smiskol da38aed483 map: set destination marker visibility once (#29444)
set visibility once
2023-08-17 01:02:59 -07:00
Dean Lee f1568b960a 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>
2023-08-16 22:22:39 -07:00
Arda d38dc64db0 Multilang: add Turkish language (#25765)
* Multilang: add Turkish language

* update translation

* vanish

* move up

* missing %n

* format args

* pass this test now

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-08-16 21:45:03 -07:00
Shane Smiskol 103d39259f Multilang: check format arguments are consistent (#29441)
* format args

* global
2023-08-16 21:30:47 -07:00
Shane Smiskol 549a4e9a97 Multilang: more translation sanity checks (#29439)
* tests

* test finished translations

* fix new test failure
2023-08-16 21:10:25 -07:00
Dean Lee 613bbb7e6d ui/map: assign the return value to last_position (#29341)
assign the return value directly to last_position
2023-08-14 16:39:43 -07:00
Dean Lee 29f2389cce ui/networking: bolding the connected network (#29385) 2023-08-14 15:18:41 +01:00
Dean Lee 9071c8a4fc ui/map_instructions: set margin-top to UI_BORDER_SIZE (#29387) 2023-08-14 12:43:32 +01:00
Adeeb Shihadeh 0bacd98828 soundd: cleanup remnants from running while offroad (#29006)
cleanup
2023-08-13 22:17:54 -07:00
Dean Lee 01089cf4bf UI: make wifi network sorting more stable (#29376)
* stable sort

* fix typo,rename to strengthLevel
2023-08-13 21:12:23 -07:00
Dean Lee 878d3f4cfc ui/sidebar: break long line for readability (#29379) 2023-08-13 18:03:38 -07:00
Dean Lee 373171afd0 ui/networking: remove dynamic property and style sheet (#29377) 2023-08-13 14:48:06 -07:00
Dean Lee fd8a9c8520 ui/networking: remove call to clearLayout (#29037)
* build list inplace

* move clearLayout to cabana

* cleanup include

* polish style

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-08-13 11:57:40 -07:00
Korben 518ced49ce Full French UI Localization (#29260)
* Update languages.json

French added

* Create main_fr.ts

French lang file

* git ignore

* update french lang
2023-08-11 21:36:58 -07:00
Shane Smiskol cc747e2166 ui/map_instructions: round <500 distances (#29333)
round
2023-08-11 03:33:40 -07:00
Dean Lee 4a89928a9a ui/map: fix CSS error (#29332)
fix css error
2023-08-11 03:31:13 -07:00
Shane Smiskol 52675b2739 ui/map_instructions: clean up lane icon selection (#29330)
* draft

* revert

* remove extra directions

* more clean up

* add todo

* revert rename

* I assume this is moot, but preserve behavior

* spacing
2023-08-11 03:27:32 -07:00
Dean Lee 80356b34f1 ui/map: check NavDestination only if navInstruction is invalid (#29331)
* check NavDestination only if navInstruction is invalid

* Update selfdrive/ui/qt/maps/map.cc

Co-authored-by: Shane Smiskol <shane@smiskol.com>

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-08-11 03:26:08 -07:00
Dean Lee 15bb9dd096 ui/map: set WA_NoMousePropagation to prevent mouse event from propagating up (#29329)
set WA_NoMousePropagation
2023-08-11 02:45:54 -07:00
Jason Wen 22cf5421d6 ui onroad: utilize local variables for repeated capnp reader access (#29325) 2023-08-10 23:13:45 -07:00
Dean Lee cef693f309 ui/onroad: move duplicated code to drawIcon() (#29149)
* move duplicate code to function drawIcon

* fix center point
2023-08-10 23:08:46 -07:00
Justin Newberry 4a9afd7554 Ruff: comprehensions conventions (#29317)
ignore c408
2023-08-10 16:40:30 -07:00
eFini 8d7e909b53 map ui: Fixed ETA text alignment issue in CJK (#29311)
fixed ETA text alignment issue in CJK
2023-08-10 02:15:43 -07:00
Adeeb Shihadeh 44c76257a1 rm some old tests 2023-08-09 22:31:47 -07:00
eFini 5b4aa67864 Multilang: Chinese translations update (#29310)
* chinese translations

* Update selfdrive/ui/translations/main_zh-CHS.ts

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-08-09 20:40:39 -07:00
Justin Newberry cf64b27168 Linter: Fix >160 line length test (#29287)
* test

* fix line length

* fix line length

* fix file size

* revert poetry

* cleanup for PR
2023-08-08 17:13:35 -07:00
Cameron Clough 748238f87c ui/map: update mapbox style (#29186) 2023-08-08 20:18:49 +01:00
Shane Smiskol cffc14e4d8 map: fix exit lane direction when active (#29159)
* fix

* clean up

* comment
2023-08-05 04:02:18 -07:00
Kacper Rączy c640429406 aarch64: ubuntu build support (#29171)
* Add support for aarch64 pc linux

* Add new libyuv path to release files

* Add libyuv's x86_64 lib dir

* Move left-over platform specific dirs from files_common

* Remove libyuv/lib directory (duplicate)

* Fix mpc Sconscripts

* Remove acados lib path from mpc sources

* Fix typo

* Add watch3 exec on aarch64
2023-08-01 16:18:46 -07:00
AlexandreSato 3eaf3555af Multilang: update pt-BR translation (#29197) 2023-08-01 11:01:25 -07:00
Dean Lee da91555056 ui/OnroadWindow: do not update state when offroad (#29134)
do not updateState when offroad
2023-07-31 20:25:15 -07:00
Iamz 157568c0c1 Multilang: th translation update (#29183)
Update Thai translations
2023-07-31 13:39:01 -07:00
Shane Smiskol 6fe480b232 Experimental mode toggle description: missing spaces (#29167)
* Update settings.cc

* more missing spaces

* scons

* vanish

* fix that
2023-07-27 14:00:41 -07:00
AlexandreSato 13822a0ec0 Multilang: update pt-BR translations (#29152)
update pt-BR translation
2023-07-26 09:54:10 -07:00