Commit Graph

1818 Commits

Author SHA1 Message Date
thenhnn 77d6d1a8f1 PlatformConfig: automatically get platform_str from the enum name (#31868)
* get platform_str from the enum name

* fix tests

* add migration table

* remove impossible todo

* Add link to PR in MIGRATION table

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

* Remove useless brand name comments and rename RAM_1500 to RAM_1500_5TH_GEN

* rename RAM_HD to RAM_HD_5TH_GEN

* rename references to RAM_HD and RAM_1500

* change "mock" to "MOCK" and rename torque data of Nissan Leaf 2018 IC

* remove MOCK from fingerprints.py

* change hard-coded car model in test_can_fingerprint.py/test_timing

* migration

* update ref

* space

* prius

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: justin newberry <justin@comma.ai>
Co-authored-by: Justin Newberry <jnewberry0502@gmail.com>
old-commit-hash: 489528dcae3888311f92075ba9e0f68626725121
2024-03-19 11:16:02 -07:00
Alexandre Nobuharu Sato 65f6267dc8 Multilang: update pt-BR translation (#31861)
* update pt-BR translation

* this come from darkness??
old-commit-hash: a3f2c7bf3ea008394156aab16cc226cdf36af8d5
2024-03-13 22:40:20 -07:00
Lee Jong Mun 63987a26d2 Multilang: kor translation update (#31864)
old-commit-hash: 5d4e324ddf105f45a84f24849b3e2baafd22a84b
2024-03-13 22:39:42 -07:00
Shane Smiskol ebfc450fac longitudinal personality: change via steering wheel distance button (#31792)
* start at param

* start by sending personality

* change to personality

* POC: button changes personality

* what's wrong with this?

* fix

* not really possible but fuzzy test catches this

* there's always a typo

* dang, we're dropping messages

* clean up

* no comment

* bump

* rename

* not all cars yet

* works but at what cost

* clean up

* inside settings

* write param so we save the distance button changes

* setChecked activates buttonToggled and already writes param!

* don't need this, we update from longitudinalPlan on changes

* some clean up

* more

* ui

* allow some time for ui to receive and write param

* plannerd: only track changes in case no ui

* Revert "plannerd: only track changes in case no ui"

This reverts commit 2b081aa6ceb92c67a621b74592b2292756d29871.

* write in plannerd as well, I assume this is atomic?

* don't write when setting checked (only user clicks)

* better nane

* more

* Update selfdrive/controls/lib/longitudinal_planner.py

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>

* doesn't write param now

* ParamWatcher is nice

* no debug

* Update translations

* fix

* odd drain sock proc replay behavior

* vanish

* Revert "odd drain sock proc replay behavior"

This reverts commit 29b70b39413e1852bb512155af6b6a94a5bd9454.

* add GM

* only if OP long

* move personality to controlsState, since eventually it won't be exclusive to long planner

more

bump

* diff without translations

* fix

* put nonblocking

* CS should start at up to date personality always (no ui flicker)

* update toggle on cereal message change

* fix

* fix that

* ubmp

* mypy doesn't know this is an int :(

* update translations

* fix the tests

---------

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
old-commit-hash: 3d63c7093afec7ba24f447a44f02f7bea1f7282b
2024-03-13 01:05:02 -07:00
Adeeb Shihadeh dd371305a0 Reapply "ui: brighten cameraview (#29744)" (#31846)
This reverts commit e7f7189d2dc339f76d92762c1b9b2fa720ed87e4.
old-commit-hash: c155749b29cacdd86d2fad90506dc2e276f99e04
2024-03-12 14:27:12 -07:00
Adeeb Shihadeh da31ce154a refactor camera transformations (#31818)
* refactor camera transormations

* update users

* more stuff

* more fix

* swap

* tici

* lil shorter
old-commit-hash: e3589e4b5cc783001c95b52cce066647b4ae0c6c
2024-03-10 16:56:50 -07:00
Mauricio Alvarez Leon 790c336218 Add autoconnect support for hidden WiFi networks (#31789)
* add autoconnect to WifiManager::connect

* set wifi/hidden to true

* typo

* add condition to only set connection[wireless][hidden] to true when connecting to a hidden network

* default false value for is_hidden
old-commit-hash: 1b6178a77d723fc4b96c5010f0d37164f98ecd27
2024-03-10 10:11:41 -07:00
Shane Smiskol 2c33c76170 ButtonParamControl: use buttonClicked (#31817)
old-commit-hash: d651bc802b540089acb4c3b9d5d984fb8b554487
2024-03-10 00:12:18 -08:00
Adeeb Shihadeh 6a2ddc9df2 fix status -> state typo
old-commit-hash: 1fe61569f720a30db58379b451452b84239c2e37
2024-03-09 23:31:50 -08:00
Justin Newberry 2cdb550d12 updated -> move to selfdrive/updated/updated (#31696)
* move updated

* for release
old-commit-hash: be2b48183f81c09f7bc5d1e77d880ce40abacb20
2024-03-04 14:33:52 -08:00
Adeeb Shihadeh c4904800eb simple pyqt ui
old-commit-hash: 9c3f0450bb277a02effdeccbe6e89986ed5678b9
2024-02-29 21:46:35 -08:00
eFini 1aeceb60d6 CHS/CHT translation update (#31642)
update ZH translations
old-commit-hash: 8e82bce17ae10b5df8c87ee77135ac556c4c1aac
2024-02-29 02:47:32 -08:00
Alexandre Nobuharu Sato ae2cfa285a Multilang: update pt-BR translations (#31634)
update pt-BR translations
old-commit-hash: 3ae151635d829ce432c13d72b0b075ced892f704
2024-02-28 19:33:37 -08:00
Adeeb Shihadeh 62bbd08492 setup: add openpilot button (#31628)
* setup: add openpilot button

* rename
old-commit-hash: 6cf7599bcd1a0218bb359f72c3d17e15c53bae93
2024-02-28 15:54:21 -08:00
Cameron Clough a09300385b mypy: use implicit-optional (#31590)
* mypy: set implicit-optional = true

* find and replace '| None = None' -> '= None' in function args
old-commit-hash: 80da3aee147867e46f566b63a96f4fe199e0628d
2024-02-25 13:29:18 -08:00
Cameron Clough 9bd90112d0 use pyupgrade to update to new typing syntax (#31580)
* add pyupgrade hook

* run pyupgrade (pre-commit run -a)

* ruff --fix

* Revert "add pyupgrade hook"

This reverts commit 56ec18bb6b8602a0b612f3803d96cdad14b52066.

* revert changes to third_party/

* manual type fixes

* explicit Optional wrapping capnp objects
old-commit-hash: 995250ae4967943ee33a3699a1d89a7a770d95e9
2024-02-24 16:41:23 -08:00
Adeeb Shihadeh 22e8a76cd9 fix spinner asset paths (#31524)
old-commit-hash: 27c56722ccf6fefc3d90d09f30b15bdf053f2bea
2024-02-20 18:01:28 -08:00
Adeeb Shihadeh 97b823efe6 Make ui independent of launch path (#31517)
* Make ui independent of launch path

* comment
old-commit-hash: 5d4dc1dc2ffa5c4066dc33b818e4a2f0497b7043
2024-02-19 22:34:24 -08:00
Adeeb Shihadeh b4c03185d4 bump cereal (#31392)
* bump cereal

* update those

* update refs

* bump cereal

* bump

* bump cereal

* bump

* fix

* bump

* typo:
old-commit-hash: daceb171bde5aef4ea483e8054456187772afe92
2024-02-09 21:44:23 -08:00
Adeeb Shihadeh ba78f80850 bring this back
old-commit-hash: 714e02d0bdb15104a393d5ad8944c75be0f6f82b
2024-02-09 12:46:06 -08:00
James e0c1cb2f61 Re-use existing params declaration in onboarding (#31363)
Re-use existing params declarations in onboarding
old-commit-hash: d265f5a6ab5fba13289ce6decea5d7c07be4d27e
2024-02-07 17:44:57 -08:00
James 0a57f061ec Fix whitespace (#31361)
old-commit-hash: 75b72c2c4b520d414b4de960441b9c5b61dbb0cc
2024-02-07 17:27:16 -08:00
Hoang Bui 4c05358aad map: Transfer to MapLibre (#31185)
* change codebase

* compile

* add mapboxprovider

* works with map_renderer in c

* remove maplibre temp

* maplibre works

* cleanup build.sh

* x86 stuff

* add lib

* update release files

* don't need that

* tici build

* tici build

* add tici lib

* update refs

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 08037594e27292ca755a211628f4141469347f82
2024-02-01 13:37:22 -08:00
Justin Newberry 05204fbde3 Create message mocking tools (#31249)
* add mocking tools

* fix map renderer

* use for power draw

* fix those

* whitespace

* rename to services

* fix the rate

* remove
old-commit-hash: 086c509fde806bb03f89765800d9667f4de6a372
2024-01-31 18:47:49 -08:00
ugtthis eeaef9b353 UI/sidebar_layout: Removed redundant piece of margin code (#31106)
old-commit-hash: 14e83ac9cc0f08126bca4553e403dcfa6fc3bb1e
2024-01-26 13:16:54 -08:00
Justin Newberry d9a324dc92 CI: generate test_ui report (#31151)
* add test

* simpler

* simpler

* false

* move these here

* faster

* map takes logner to render
old-commit-hash: faf99ba711cb12e33e0e1b6034ec146b65f7a854
2024-01-25 16:49:38 -08:00
Alexandre Nobuharu Sato ecaa3d08d2 Multilang: Update pt-BR translations (#31167)
* add instructions to my fork

* add paypall.png to gitignore

* Revert "add instructions to my fork"

This reverts commit a6a6f93533add212e321e8472a78a8a69bf932f4.

* translate

* revert this

* why?

---------

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: f21ccfbf790b9591043494d1612c5c6e0207f935
2024-01-25 15:55:58 -08:00
Adeeb Shihadeh 83039032ac update translations
old-commit-hash: 4ecaa6da4595b2c82d4d17358717536e6f28e0da
2024-01-25 13:44:26 -08:00
Adeeb Shihadeh 533206be2f update factory reset
old-commit-hash: 80ea4db7bb19c7758aae6dda1997b5bf5b27dc9b
2024-01-25 13:34:09 -08:00
Justin Newberry 89e0ad2902 test_ui: add onroad state (#31148)
add onroad
old-commit-hash: 3676ae4da3dc4fbc2ea6aa84369a5f460662f6e4
2024-01-24 16:51:06 -08:00
Justin Newberry d3ead5e4ff test_ui: create test ui screenshots and html report (#31147)
* test ui

* report + common

* in ci

* fix

* dont enable in ci yet
old-commit-hash: e2ec5be6eec73f6455727313ba2b9c5bb01cce8c
2024-01-24 13:54:31 -08:00
Adeeb Shihadeh 12d2d861f2 Revert "Switch from json11 to nlohmann/json (#31093)"
This reverts commit 8fa1e8aa53defca264272a66531d639b3d569418.

old-commit-hash: 88757c12b3371a1ba5b3ebabc9e85faad0a19d56
2024-01-22 22:41:59 -08:00
mtribiere cb3a834067 Switch from json11 to nlohmann/json (#31093)
* Initial commit

* fix release/file_common

* Update common/swaglog.cc

* Swtiched serialize cc

* move to lfs

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: ee036482b8152f0e7650895c6f4bac5d4f00e00f
2024-01-22 22:35:47 -08:00
Adeeb Shihadeh 972650f0eb remove dashcam branch (#31081)
* remove dashcam branch

* fix

* more cleanup

* remove param

* one more
old-commit-hash: 7cd9568423a2e78187d16018b70a78f56c02027d
2024-01-19 14:05:03 -08:00
Andrei Radulescu 1498eaf7c6 Support for newer versions of Qt (#31072)
* Dynamic QtGui version

* Fixed use of undeclared identifier 'va_start'

* Fix for Qt deprecations

* Fix for dynamic QtGui version

* Update selfdrive/ui/SConscript

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 28028aef174ddce0f1c8317f7fe2bc055db0b295
2024-01-19 13:28:29 -08:00
ugtthis 294656275d UI/close_btn: Removed unused border code (#31073)
old-commit-hash: a6695e4489f8aaeccd246dba8aa5107393cf6565
2024-01-19 10:38:11 -08:00
Korben 158445c2d8 Update French language (#30992)
Update main_fr.ts

validation of new elements
old-commit-hash: 2f744f5df464c1980da218e1dac9141ee56fa7df
2024-01-13 13:03:23 -08:00
Lee Jong Mun deffb8de48 kor translation update (#30990)
old-commit-hash: f55d04c17212cb90ccb82ae1b96105e2e3971a48
2024-01-12 20:44:03 -08:00
Alexandre Nobuharu Sato 4b903c3c88 Multilang: Update pt-BR translation (#30987)
* add instructions to my fork

* Revert "add instructions to my fork"

This reverts commit 46fbee3ebe7ecbb211d855e63b2d4c8919c31b63.

* test llm

* Revert "test llm"

This reverts commit fc531f0a1ba81b3444a34a1be8d02a51a060ec7a.

* update pt-BR translation
old-commit-hash: 4178f7c1e16d9b97fb0f1859310bc8a1581def68
2024-01-12 18:25:41 -08:00
royjr 244396e23c networking: add hidden network option (#30808)
* init

* once

* match

* fix

* maybe

* maybe

* Revert "maybe"

This reverts commit 8386a0a381d5cfe94d7bbf0187d5e311d4b4e9c3.

* Revert "maybe"

This reverts commit 3abf7b19836e5f353fbb94c9bee52b185bd3fc17.

* Revert "fix"

This reverts commit 09e0146f4deeac07b9c26e916a75b70c7dcff1f1.

* Revert "match"

This reverts commit 39a90c6cf88f310623d5e9058152d025ee7213ea.

* fix not at bottom

* padding

* match

* Update networking.cc

* min chars

* translations

* shouldn't need

* need!

* just in case

* Revert "just in case"

This reverts commit a3c1e090682e30400ba9c20b04407b9e5677ad7a.

* finish translations

* not secret

* optional

* allow open networks

* fix

* try

* working

* add divider

* update translations

* fix

* better name

* translate hidden network

* auto

* v2

* remove v1

* fix

* fix translations
old-commit-hash: 96c91c486e9b39c11632691fe5761975d9aa53b6
2024-01-11 19:42:20 -08:00
Shane Smiskol f9db24d9d4 pre-commit: speed up translation step (#30966)
* formatting

fix

* fix missing class attr warning

* add translation_files option, remove pluralonly, type hint

* updates

* update
old-commit-hash: bef6d7f0bb1f985fa959627d674210c46870d914
2024-01-11 00:39:15 -08:00
ugtthis 312e786542 UI/MapETA: Increased contrast of widget texts for better readability (#30952)
old-commit-hash: db3ef3e1d87859c20251be641304dd6be6febce2
2024-01-09 20:32:23 -08:00
Shane Smiskol fc23ab6c8d Fix string indentation (#30943)
* fix bad spacing

* more

* these aren't important
old-commit-hash: d689a4e6537b6b48e0ad9948ac919065317258c1
2024-01-08 15:36:43 -08:00
Adeeb Shihadeh 7243b9b68e Revert "UI: single-threaded CameraView (#30397)"
This reverts commit 69dcd240fcf3bac7a6bddb1647219b710d255554.

old-commit-hash: 073fc89ad49461c01ea474125a89a505543d093d
2024-01-07 14:54:39 -08:00
Shane Smiskol b53b4c67b5 Auto translate: fix prompt & formatting (#30922)
fixes
old-commit-hash: 084871ed5bea42326bff40c35d6c02a55b3fdb13
2024-01-05 23:44:54 -08:00
Meir fc941b87a3 Auto translate with OpenAI (#30899)
* auto translate with OpenAI

* change model

* fix mypy typing errors

* update

* fix lint errors

* check api key after args parser

* fix input args

* use languages.json

* just print

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 2378f311d2955ed0983fc0b7f2b93b938a3256fa
2024-01-05 22:28:56 -08:00
Dean Lee 2f8e66dbb8 UI: single-threaded CameraView (#30397)
* single-threaded CameraView

* updateFrame

* inherit from CameraWidget

* clear frame on offroadTransition

* check frame_id

* optional

* unique_ptr

* CameraView

* cleanup

* cleanup

* log skipping frame

* fix driverview

* disconnectVipc

* debug inconsistent frame

* skip frame if uiPlan is outdate

* cleanup

* set connected = false

* support camerad reboot&seeking in replay

* cleanup

* qDebug

* use deque

* cleanup

---------

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 17ac1d3c7b3b481826d51eb82aaf9dbcc3f3bd81
2024-01-03 13:14:29 -08:00
royjr f82d7f453f multilang: parameterize unit tests (#30842)
* init

* fix indents

* remove import

* safer

* TemporaryDirectory

* much cleaner

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 9d7f618bc5352e3c4a179925b5fd9f024a286fd3
2024-01-01 14:54:16 -08:00
royjr b2112b81af multilang: bad language translation check (#30783)
* compare bad against list

* use web

* Update test_translations.py

* uncomment

* override

* wrap

* AssertionError

* better

* detent

* selfish

* check numerusforms

* already checked

* use name

* not again

* combined

* sets

* assume available

* fix assume

* check regardless of other tests

* assert not print

* raise for status

* better

* done

* useless

* happy ruff

* better set

* quiet

* clean

* obvious

* clearer

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

* IGNORED_WORDS

* assert match

* direct assert

* show bad word

* fix numerous empty string checks

* fix IGNORED_WORDS

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: fd88990006d8d5d07f4cc79af64ae51999d1159c
2023-12-31 10:58:15 -08:00
royjr 1761c1837d setup: Enhance URL Handling to Support Partial Inputs (#30681)
* easy urls

* better
old-commit-hash: 4df85062c52fbbbdc4e461e317b6cb01a6d76ec1
2023-12-26 19:08:57 -08:00