Commit Graph

1699 Commits

Author SHA1 Message Date
Justin Newberry c4f322ce2d Linter: remove pylint (#29611)
remove pylint
old-commit-hash: 1ee6ed4b16
2023-08-24 16:30:54 -07:00
Shane Smiskol dcf9d9e3a7 ui/map: clip vehicle speed to min of 10 m/s (#29601)
* all the changes I want to make

* Revert "all the changes I want to make"

This reverts commit c18132b73eb9bba4d7871631d7cd4155eb7efcd0.

* add initialized

* clip to 10 m/s

* fix bug

* rm

* here?
old-commit-hash: b8fb260558
2023-08-24 15:09:30 -07:00
Adeeb Shihadeh 61cf541322 Minimal build (#29600)
* add build flag for minimum build

* add minimal build

* update

* fix pj

* bump opendbc

* update subaru
old-commit-hash: 4917e22615
2023-08-24 14:58:30 -07:00
Shane Smiskol 9a1f82a853 ui/map: initialize speed filter with current speed (#29605)
fix map starting from 0 zoom
old-commit-hash: b9d77afd7e
2023-08-24 14:53:47 -07:00
Dean Lee a1fe0701e9 ui: remove Q_PROPERTY from AnnotatedCameraWidget (#28745)
old-commit-hash: b234cb0223
2023-08-24 11:09:26 -07:00
Dean Lee de809632bf cpplint: add filter whitespace/comma (#29595)
old-commit-hash: 7bfd3dac81
2023-08-24 10:42:06 -07:00
Dean Lee c4ae679878 ui/map: delete map after unsubscribing from prime (#29136)
Co-authored-by: Cameron Clough <cameronjclough@gmail.com>

old-commit-hash: 792ad7d816
2023-08-24 16:51:53 +01:00
Dean Lee 0984736972 cpplint: add filter build/include_subdir (#29585)
old-commit-hash: 21da5a216f
2023-08-24 15:42:17 +01: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 f7efad93e4 ui/map_instructions: restore padding (#29548)
* restore padding

* fixes

* fix left and right margins

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 4ea7833060
2023-08-23 23:32:01 -07:00
Dean Lee 56b582a059 cpplint: add filter whitespace/forcolon (#29582)
whitespace/forcolon
old-commit-hash: ac93902983
2023-08-23 22:46:02 -07:00
pencilpusher cc4f6c5fbe ui/map: keep the car icon aligned to its bearing (#29482)
* rotate icon with current bearing

When user is rotating the map, the car icon should stay fixed on the cars bearing, not the map.

* spacing

* comment

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 472151b6a0
2023-08-23 17:33:58 -07:00
Dean Lee 5ac4f52c6f ui/PrimeUserWidget: cleanup layout (#29492)
cleanup layout

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 5fcb7e9038
2023-08-23 16:34:18 -07:00
Dean Lee 5f4b422305 cpplint: add filter whitespace/semicolon (#29568)
old-commit-hash: f203648de0
2023-08-23 15:00:30 -07:00
Dean Lee 72e6a332d1 sound.h: add #pragma once (#29567)
old-commit-hash: 2c20a2b5d7
2023-08-23 14:47:34 -07:00
Dean Lee db211ce617 cpplint: add filter whitespace/parens (#29565)
old-commit-hash: 5480d32bb5
2023-08-23 14:25:05 -07: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 004a097c95 cpplint: add readability/braces filter (#29554)
old-commit-hash: 363740a497
2023-08-23 10:13:46 -07:00
Dean Lee 4f7e9268e8 soundd: set volume on changes (#29389)
* set volume on change

* async set volumn

* Revert "async set volumn"

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

* only start that

* check line length

* check these

* rm exceptions
old-commit-hash: 952d720b6e
2023-08-22 13:55:23 -07:00
Adeeb Shihadeh 16ec56398c 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
old-commit-hash: a9626f95b6
2023-08-20 20:49:55 -07:00
Lee Jong Mun 64f89e259a kor translation update (#29493)
old-commit-hash: 1f056f3217
2023-08-20 15:05:25 -07:00
Dean Lee ff74c8c4cb ui/map_instructions: center lanes (#29465)
* center lanes

* test

* similar spacing and no need for stretchj

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 9ea2cd8d0b
2023-08-19 01:23:42 -07:00
pencilpusher fc14939f02 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>
old-commit-hash: f2d22075eb
2023-08-19 00:07:52 -07:00
Dean Lee 3078da290d 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>
old-commit-hash: efefcfdca5
2023-08-17 22:58:18 -07:00
Shane Smiskol 709850e304 map eta: use pair (#29460)
use pair
old-commit-hash: d827cd6a83
2023-08-17 22:42:12 -07:00
Shane Smiskol 593322dfa9 ui/map: slight turn lane types (#29446)
* add slight turns

* bump cereal

* revert

* hmm, i like this better

* whops

* fix

* bump
old-commit-hash: 6d2922b8e6
2023-08-17 20:51:52 -07:00
Dean Lee 023cd0492f 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>
old-commit-hash: b8b1e17a21
2023-08-17 14:43:40 -07:00
Dean Lee 4857b61f8f ui/networking: pass network by value (#29448)
old-commit-hash: 1887d9197a
2023-08-17 11:37:42 -07:00
Shane Smiskol 7a291211db Multilang: enable Thai (#29447)
enable thai in the ui
old-commit-hash: fb94202014
2023-08-17 03:16:31 -07:00
Dean Lee a50a9ef9b4 ui/map: hide icon if no maneuver type (#29084)
hide icon if no maneuver type
old-commit-hash: 202b2f2113
2023-08-17 02:05:19 -07:00
Dean Lee f667936f3a 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>
old-commit-hash: 3a277f1b81
2023-08-17 01:32:22 -07:00
Shane Smiskol 312d80c877 map: set destination marker visibility once (#29444)
set visibility once
old-commit-hash: da38aed483
2023-08-17 01:02:59 -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
Arda 0645f2c409 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>
old-commit-hash: d38dc64db0
2023-08-16 21:45:03 -07:00
Shane Smiskol 96c8511c37 Multilang: check format arguments are consistent (#29441)
* format args

* global
old-commit-hash: 103d39259f
2023-08-16 21:30:47 -07:00
Shane Smiskol 1097d3b53d Multilang: more translation sanity checks (#29439)
* tests

* test finished translations

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

* fix typo,rename to strengthLevel
old-commit-hash: 01089cf4bf
2023-08-13 21:12:23 -07:00
Dean Lee 431797307d ui/sidebar: break long line for readability (#29379)
old-commit-hash: 878d3f4cfc
2023-08-13 18:03:38 -07:00
Dean Lee ce5c95715c ui/networking: remove dynamic property and style sheet (#29377)
old-commit-hash: 373171afd0
2023-08-13 14:48:06 -07:00
Dean Lee 42dd6af842 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>
old-commit-hash: fd8a9c8520
2023-08-13 11:57:40 -07:00
Korben 1672c9fdbd Full French UI Localization (#29260)
* Update languages.json

French added

* Create main_fr.ts

French lang file

* git ignore

* update french lang
old-commit-hash: 518ced49ce
2023-08-11 21:36:58 -07:00
Shane Smiskol d33545a0b6 ui/map_instructions: round <500 distances (#29333)
round
old-commit-hash: cc747e2166
2023-08-11 03:33:40 -07:00
Dean Lee b065f5c9a2 ui/map: fix CSS error (#29332)
fix css error
old-commit-hash: 4a89928a9a
2023-08-11 03:31:13 -07:00