Jason Wen
03c8494dbc
Merge branch 'upstream/openpilot/master' into sync-20251213
...
# Conflicts:
# README.md
# common/api.py
# docs/CARS.md
# opendbc_repo
# panda
# selfdrive/ui/mici/layouts/offroad_alerts.py
# system/ui/README.md
# system/version.py
2025-12-13 01:50:42 -05:00
Maxime Desroches
dc654b439a
Revert "Fix raylib ui spamming API calls ( #36700 )" ( #36744 )
...
This reverts commit 26261387f8 .
2025-12-01 20:48:04 -08:00
Adeeb Shihadeh
7521fd11e2
common: rename atomic_write_in_dir -> atomic_write ( #36733 )
...
rename
2025-11-30 15:08:32 -08:00
Shane Smiskol
26261387f8
Fix raylib ui spamming API calls ( #36700 )
...
* intern
* start
* move
* common caching
* use constant for slep
* works
* add gating back
* clean up
* more
* match cache logic
* hate this circular
* not needed since sync
* no need for lock?
* even qt had something like _load_initial_state for tests, keep
* clean up
* clean up
* clean up
* loading json as string works, else it will fail to parse json, catch that and log, and next api call will overwrite
* move over firehose
* clean up
* fix test
* no
* flip
* more
* match qt
* consistent
* clean up
* cmt
* fix test!
2025-11-27 01:37:16 -08:00
Jason Wen
08e85808c5
Merge branch 'upstream/openpilot/master' into sync-20251114
...
# Conflicts:
# .github/workflows/ci_weekly_run.yaml
# .github/workflows/raylib_ui_preview.yaml
# .github/workflows/tests.yaml
# .gitmodules
# README.md
# SConstruct
# common/api.py
# common/params_keys.h
# docs/CARS.md
# msgq_repo
# opendbc_repo
# panda
# selfdrive/car/tests/test_car_interfaces.py
# selfdrive/controls/controlsd.py
# selfdrive/controls/lib/latcontrol.py
# selfdrive/controls/lib/latcontrol_angle.py
# selfdrive/controls/lib/latcontrol_pid.py
# selfdrive/controls/lib/latcontrol_torque.py
# selfdrive/controls/tests/test_latcontrol.py
# selfdrive/monitoring/helpers.py
# selfdrive/ui/SConscript
# selfdrive/ui/main.cc
# selfdrive/ui/qt/body.h
# selfdrive/ui/qt/home.cc
# selfdrive/ui/qt/home.h
# selfdrive/ui/qt/network/networking.cc
# selfdrive/ui/qt/network/networking.h
# selfdrive/ui/qt/network/wifi_manager.cc
# selfdrive/ui/qt/offroad/developer_panel.cc
# selfdrive/ui/qt/offroad/developer_panel.h
# selfdrive/ui/qt/offroad/experimental_mode.cc
# selfdrive/ui/qt/offroad/firehose.cc
# selfdrive/ui/qt/offroad/firehose.h
# selfdrive/ui/qt/offroad/onboarding.cc
# selfdrive/ui/qt/offroad/onboarding.h
# selfdrive/ui/qt/offroad/settings.cc
# selfdrive/ui/qt/offroad/settings.h
# selfdrive/ui/qt/offroad/software_settings.cc
# selfdrive/ui/qt/onroad/alerts.cc
# selfdrive/ui/qt/onroad/annotated_camera.h
# selfdrive/ui/qt/onroad/buttons.cc
# selfdrive/ui/qt/onroad/buttons.h
# selfdrive/ui/qt/onroad/driver_monitoring.cc
# selfdrive/ui/qt/onroad/hud.cc
# selfdrive/ui/qt/onroad/hud.h
# selfdrive/ui/qt/onroad/model.cc
# selfdrive/ui/qt/onroad/model.h
# selfdrive/ui/qt/onroad/onroad_home.cc
# selfdrive/ui/qt/onroad/onroad_home.h
# selfdrive/ui/qt/request_repeater.h
# selfdrive/ui/qt/sidebar.cc
# selfdrive/ui/qt/sidebar.h
# selfdrive/ui/qt/util.cc
# selfdrive/ui/qt/widgets/cameraview.h
# selfdrive/ui/qt/widgets/controls.cc
# selfdrive/ui/qt/widgets/controls.h
# selfdrive/ui/qt/widgets/input.cc
# selfdrive/ui/qt/widgets/input.h
# selfdrive/ui/qt/widgets/prime.cc
# selfdrive/ui/qt/widgets/prime.h
# selfdrive/ui/qt/widgets/ssh_keys.h
# selfdrive/ui/qt/widgets/toggle.h
# selfdrive/ui/qt/widgets/wifi.cc
# selfdrive/ui/qt/widgets/wifi.h
# selfdrive/ui/qt/window.cc
# selfdrive/ui/qt/window.h
# selfdrive/ui/tests/cycle_offroad_alerts.py
# selfdrive/ui/tests/test_ui/run.py
# selfdrive/ui/translations/main_ar.ts
# selfdrive/ui/translations/main_de.ts
# selfdrive/ui/translations/main_es.ts
# selfdrive/ui/translations/main_fr.ts
# selfdrive/ui/translations/main_ja.ts
# selfdrive/ui/translations/main_ko.ts
# selfdrive/ui/translations/main_nl.ts
# selfdrive/ui/translations/main_pl.ts
# selfdrive/ui/translations/main_pt-BR.ts
# selfdrive/ui/translations/main_th.ts
# selfdrive/ui/translations/main_tr.ts
# selfdrive/ui/translations/main_zh-CHS.ts
# selfdrive/ui/translations/main_zh-CHT.ts
# selfdrive/ui/ui.cc
# selfdrive/ui/ui.h
# system/manager/build.py
# system/version.py
2025-11-16 02:50:28 -05:00
Adeeb Shihadeh
954b567b9b
merge a bunch of misc stuff into common.utils ( #36463 )
...
just utils
2025-10-24 20:45:56 -07:00
Jason Wen
f57de1c5b2
version: a new beginning ( #1411 )
...
* version: a new beginning
* changelog
* singular
* show ours
* actual
* readjust
* updated
* more
* official spelling
* more
* sync
* fix
* send it
* push
* we never had this lol
* syncs
2025-10-21 17:12:57 -04:00
Jason Wen
f5991caf6f
params: update AthenadPid to use integer type ( #35871 )
...
* params: update `AthenadPid` to use integer type
* fix type
2025-08-01 09:29:25 -07:00
Maxime Desroches
e7b80b78cc
params: auto type cast on put ( #35810 )
...
* start
* fix
* fix
* more
* more
* more
* fix
* fix
* []
* f
* f
* fix
* lint
* back
* fix
* yep
* better msg
* fix
* fix
* fix
* fix
* more
* more
2025-07-25 19:20:49 -07:00
Maxime Desroches
bddeca6998
Reapply "params: unique default value ( #35798 )" ( #35806 )
...
* Reapply "params: unique default value (#35798 )"
This reverts commit 267acfb73b .
* more
* more
* test for this
* better name;
2025-07-24 17:58:16 -07:00
Maxime Desroches
267acfb73b
Revert "params: unique default value ( #35798 )"
...
This reverts commit abd657edfa .
2025-07-24 14:58:46 -07:00
Maxime Desroches
abd657edfa
params: unique default value ( #35798 )
...
* default
* None vs ""
* athena
* more
* more
* this
* better
* better
* now
* name
* better
2025-07-23 21:17:21 -07:00
Maxime Desroches
bc5336d805
params: auto decode based on type ( #35794 )
...
* type
* test
* more
* might as well use this
* one more
* live
* athena
* b
* also
* more
* now
* ah
* pigeon
2025-07-22 21:58:06 -07:00
Maxime Desroches
58d3038241
auto type cast for Params ( #35786 )
...
* first
* fix
* fix
* this
* real
* time
* time
* more
* more
* fix
* subclass
* fix
* fix
* test
* fix
* ruff
* revert
* default
* json
* more
* test
* test
* d
* better
* better
* test
* one
* test
* space
2025-07-22 19:30:47 -07:00
William Bonilla
c5b75168e9
Fix test_update_returns_state to flatten Kalman output ( #35083 )
...
fix(tests): flatten Kalman filter output in test_update_returns_state
2025-04-28 13:30:16 -07:00
Sammohana
8eebce75ac
Getting rid of openpilot.common.numpy_fast ( #34368 )
...
* Got rid openpilot.common.numpy_fast
* fixed some data type erros
* importing numpy instead of importing specific functions
* fixing some numpy importing mistakes
* Update selfdrive/car/cruise.py
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
2025-01-14 14:52:56 -08:00
Adeeb Shihadeh
fc469e5f80
Revert "Remove setproctitle ( #32716 )" ( #33195 )
...
* Revert "Remove `setproctitle` (#32716 )"
This reverts commit 9020d1931f4cd72f8162e4402278bdf76e3746f2.
* uv lock
* old name
old-commit-hash: 29b58d4f2f
2024-08-05 16:42:22 -07:00
Adeeb Shihadeh
9cfdd6200d
Remove setproctitle ( #32716 )
...
* Custom setproctitle (#32667 )
* add custom setproctitle
* add test
* Update poetry.lock
* fix lint
* support only Linux
* test only Linux
* final lint
* Update test_setproctitle.py
* Update setproctitle.py
* convert to threadnames
* delete proctitles
* Check str len and use PR_GET_NAME
* fix poetry.lock
* lint fix
* Update common/threadname.py
---------
Co-authored-by: reddyn12 <nikhilr.ssm@gmail.com >
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
* revert that for now
* use last 15
* fix
* use name
* update those
* and modeld
* rm
---------
Co-authored-by: schlimeszn <138847413+schlimeszn@users.noreply.github.com >
Co-authored-by: reddyn12 <nikhilr.ssm@gmail.com >
Co-authored-by: Comma Device <device@comma.ai >
old-commit-hash: 83ac80c6c8
2024-06-11 21:57:32 -07:00
Adeeb Shihadeh
e920e57530
Revert "Custom setproctitle ( #32667 )"
...
This reverts commit 1f45e163559baa2a6127d5a5e8deb7067e32f813.
old-commit-hash: 5b51f03967
2024-06-10 19:55:41 -07:00
schlimeszn
afea57ae2a
Custom setproctitle ( #32667 )
...
* add custom setproctitle
* add test
* Update poetry.lock
* fix lint
* support only Linux
* test only Linux
* final lint
* Update test_setproctitle.py
* Update setproctitle.py
* convert to threadnames
* delete proctitles
* Check str len and use PR_GET_NAME
* fix poetry.lock
* lint fix
* Update common/threadname.py
---------
Co-authored-by: reddyn12 <nikhilr.ssm@gmail.com >
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
old-commit-hash: 3365ed5eff
2024-06-10 18:59:01 -07:00
Adeeb Shihadeh
92ad30cbd6
Replace markdown-it-py with small function in common/ ( #32664 )
...
* Replace markdown-it-py with small function in common/
* simple test
* unused
* lock
* linting fixes
old-commit-hash: 5265d13fe0
2024-06-08 15:39:26 -07:00
cl0cks4fe
639a634f7c
Unittest to pytest ( #32366 )
...
* add pytest-asyncio
* switch common
* switch selfdrive
* switch system
* switch tools
* small fixes
* fix setUp and valgrind pytest
* switch to setup
* fix random
* switch mock
* switch test_lateral_limits
* revert test_ui
* fix poetry.lock
* add unittest to banned-api
* add inline ignores to remaining unittest imports
* revert test_models
* revert check_can_parser_performance
* one more skip
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
old-commit-hash: dd9d5d4528
2024-05-17 11:01:44 -07:00
Adeeb Shihadeh
12d2d861f2
Revert "Switch from json11 to nlohmann/json ( #31093 )"
...
This reverts commit 8fa1e8aa53defca264272a66531d639b3d569418.
old-commit-hash: 88757c12b3
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: ee036482b8
2024-01-22 22:35:47 -08:00
Adeeb Shihadeh
5e9dc2c415
cleanup tests that are now useless ( #31098 )
...
* disable that onoe
* e2e tests catch this
* rm more useless checks
old-commit-hash: 78e20cff39
2024-01-21 14:49:57 -08:00
Adeeb Shihadeh
63b374bd89
Cython KF1D to Python ( #30773 )
...
* Cython KF1D to Python
* cleanup
* set x
* less nesting
* fix release
* Revert "fix release"
This reverts commit 97e5d0f80405660efb861c7b9df7fbfd5dda5dd9.
old-commit-hash: 1421551297
2023-12-16 23:45:28 -08:00
Adeeb Shihadeh
0bbffc86c0
common/file_helpers: remove xx stuff ( #30772 )
...
* remove xx stuff
* cleanup
old-commit-hash: 1346704426
2023-12-16 22:19:50 -08:00
Dean Lee
1d7d7b89b2
common/params: support nonblocking write ( #29808 )
...
* Safe and efficient asynchronous writing parameters
* call putNonBlocking in locationd
* remove space
* ->AsyncWriter
* remove semicolon
* use member function
* asyc write multiple times
* add test case for AsyncWriter
* merge master
* add missing include
* public
* cleanup
* create once
* cleanup
* update that
* explicit waiting
* improve test case
* pass prefix to asywriter
* move to params
* assert(queue.empty())
* add comment
* add todo
* test_power_monitoring: remove patch
* rm laikad.py
* fix import
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
old-commit-hash: 3c4c4d1f7f
2023-12-13 20:36:01 -08:00
Dean Lee
9351c70889
test_util.cc: do not compare file contents in REQUIRE ( #29861 )
...
old-commit-hash: 95ae87659d
2023-09-09 08:47:52 -07:00
Adeeb Shihadeh
268337f32b
fix RateKeeper test
...
old-commit-hash: f197decbc9
2023-09-07 16:47:33 -07:00
Justin Newberry
c7029ea15a
System: cleanup paths to use a common class ( #29816 )
...
* use OP prefix for logmessage
* cleanup paths too
* cleanup the paths too
* add hw.py to release
* fix those issues
* fix unittests
* fix unittests
* fix unittests
* do swaglog_ipc properly across all the files
* fix that
* fix swaglog in c++
* review suggestions
old-commit-hash: bfe990b112
2023-09-07 11:32:47 -07:00
Adeeb Shihadeh
0010c9a986
Revert "params: safe and efficient async writing parameters ( #25912 )"
...
This reverts commit 780669c33fea1b2a14a0bd6e2eac82c9b8893aa5.
old-commit-hash: ec479322d3
2023-09-06 13:44:20 -07:00
Dean Lee
08e70aecb2
params: safe and efficient async writing parameters ( #25912 )
...
* Safe and efficient asynchronous writing parameters
* call putNonBlocking in locationd
* remove space
* ->AsyncWriter
* remove semicolon
* use member function
* asyc write multiple times
* add test case for AsyncWriter
* merge master
* add missing include
* public
* cleanup
* create once
* cleanup
* update that
* explicit waiting
* improve test case
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
old-commit-hash: 0d797f4e8b
2023-09-06 08:50:28 -07:00
Adeeb Shihadeh
53e0f5eb49
pytest: use a clean environment for all tests ( #29788 )
...
* pytest: use a clean environment for all tests
* rm that
* fix pj
* put build back
* fix params
* fix that
* handle no key
* that was removed
---------
Co-authored-by: Justin Newberry <justin@comma.ai >
old-commit-hash: 7b6afbc162
2023-09-05 18:52:40 -07:00
Dean Lee
00f900e8c4
common/tests: combine multiple test binaries into one ( #29623 )
...
old-commit-hash: 2709cd6538
2023-08-25 10:35:39 -07:00
Dean Lee
0984736972
cpplint: add filter build/include_subdir ( #29585 )
...
old-commit-hash: 21da5a216f
2023-08-24 15:42:17 +01:00
Dean Lee
97631ec362
common: C++ RateKeeper ( #29374 )
...
* c++ RateKeeper
* add to files_common
* use util::random_int
* improve monotor_time
* remove ~ratekeeper
old-commit-hash: 3eef63af9b
2023-08-20 21:27:02 -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
Dean Lee
3ff040d52c
params: cleanup old params that aren't defined ( #28017 )
...
* delete files that are not defined in the keys
* assert after create file
* remove util::remove_files_in_dir
* cleanup
* fix up test
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
old-commit-hash: 10a1b8b7b1
2023-05-04 11:21:41 -07:00
Dean Lee
389558776e
params: remove all files if call clearAll with the ParamKeyType.ALL key. ( #26000 )
...
* remove all files in dir
* fix test case name
old-commit-hash: 8dbb25e683
2022-10-07 11:28:09 -07:00
Dean Lee
dc0ad229cd
Params: add new method to get all keys ( #25779 )
...
* allKeys
* cleanup and test
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
old-commit-hash: 85b433760a
2022-09-15 15:43:27 -07:00
Adeeb Shihadeh
35ff65121e
pre-commit: add codespell ( #25571 )
...
old-commit-hash: 6590fb2b93
2022-08-30 11:20:55 -07:00
Adeeb Shihadeh
d9c279aea9
params: make python and c++ API match ( #25573 )
...
* params: make python and c++ API match
* few more
old-commit-hash: 90a4565eb2
2022-08-26 20:46:19 -07:00
ZwX1616
d500a25ab5
params: add put_bool_nonblocking ( #25292 )
...
* add bool flag
* cleanup
Co-authored-by: Willem Melching <willem.melching@gmail.com >
old-commit-hash: 1f087bceb4
2022-07-28 13:17:11 -07:00
Adeeb Shihadeh
9a45a3b99b
Move selfdrive/hardware/ to system/ ( #24725 )
...
* move hardware to system/
* fix mypy
old-commit-hash: 1139fe507b
2022-06-11 16:38:24 -07:00
Willem Melching
753045c73d
less TICI when not needed ( #24698 )
...
* less TICI when not needed
* fix process replay
* move reading voltages into hw abstraction layer
* Update selfdrive/hardware/tici/hardware.h
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
* Update selfdrive/hardware/hw.h
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
* Update selfdrive/hardware/base.h
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
* rename init function
* Update selfdrive/athena/athenad.py
Co-authored-by: Robbe Derks <robbe.derks@gmail.com >
* Update selfdrive/boardd/boardd.cc
* Apply suggestions from code review
* Update selfdrive/thermald/thermald.py
* update ref
* fix alert width if all cameras are bad
* add ecam to test_loggerd
* bump cereal
* bump cereal
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
Co-authored-by: Robbe Derks <robbe.derks@gmail.com >
old-commit-hash: f49a9c9fd2
2022-06-02 15:20:51 +02:00
Adeeb Shihadeh
f4675fc260
Merge common/ and selfdrive/common ( #24556 )
...
* Merge common/ and selfdrive/common
* fix that
* fix version
* fix unit tests
old-commit-hash: cb8885cffb
2022-05-18 14:11:57 -07:00
Adeeb Shihadeh
fb1c3b0d5d
common: replace custom xattr implementation with os module's ( #24448 )
...
* use os module's xattr function
* fix that
* handle in helper
old-commit-hash: 81dacbedca
2022-05-15 17:13:50 -07:00
Adeeb Shihadeh
d33afc2cac
remove custom markdown rendering ( #24538 )
...
* remove custom markdown rendering
* remove from release
old-commit-hash: 222c7cd60d
2022-05-14 22:18:13 -07:00
Willem Melching
6346a84060
thermald: remove panda disconnect logic ( #23526 )
...
* thermald: remove panda disconnect logic
* keep that
old-commit-hash: ed23177898
2022-01-14 14:13:18 +01:00