Jason Wen
d398f9951e
Merge branch 'upstream/openpilot/master' into sync-20260401
...
# Conflicts:
# .github/workflows/auto_pr_review.yaml
# .github/workflows/repo-maintenance.yaml
# README.md
# SConstruct
# docs/CARS.md
# opendbc_repo
# panda
# selfdrive/car/card.py
# selfdrive/controls/controlsd.py
# selfdrive/selfdrived/selfdrived.py
# selfdrive/test/process_replay/migration.py
# selfdrive/ui/translations/app_fr.po
Platform List: sync with latest
Sync: `commaai/panda:master` → `sunnypilot/panda:master`
2026-04-02 21:14:23 -04:00
Kacper Rączy
7fae59167e
paramsd/torqued: use the correct livePose timestamp ( #37704 )
...
* Use the correct filter time in torqued/paramsd
* Fix
* Check if lp valid
* Update tests fake data with new required fields
2026-03-21 02:10:59 +00:00
Kacper Rączy
d5e75dd0af
locationd: publish filter time ( #37697 )
...
* Include filter time in the message
* Move the line up
* Use nantonum
2026-03-20 22:29:58 +00:00
Kacper Rączy
1c14375796
locationd: cam odo delay compensation ( #37543 )
...
* Delay compensation for camera odomtry
* Frame skip definition
* CAM_ODO_POSE_DELAY const
* Remove import
* Use timestampEof
* CAM_ODO_STD_MULT
* locationd processing_time=0.01
* Update angular velocity Q
* Try 075
* Acc obs std 0.75
* Adjust Cam odo std mults
* More tweaking
* Smoothing in lld tests
* Comment
* Remove import
* Revert gyro bias P update
* Tweak to 0.75
2026-03-20 02:35:10 +00:00
Jason Wen
d5b25e14fd
Merge branch 'upstream/openpilot/master' into sync-20260317
...
# Conflicts:
# .github/workflows/auto_pr_review.yaml
# .gitignore
# opendbc_repo
# panda
# selfdrive/ui/mici/layouts/home.py
# selfdrive/ui/mici/layouts/onboarding.py
# selfdrive/ui/mici/layouts/settings/device.py
# selfdrive/ui/tests/diff/replay.py
# selfdrive/ui/translations/app_fr.po
# system/ui/mici_setup.py
Sync: `commaai/opendbc:master` → `sunnypilot/opendbc:master`
Sync: `commaai/panda:master` → `sunnypilot/panda:master`
2026-03-17 23:02:10 -04:00
Adeeb Shihadeh
e42ee228c2
gitignore cleanups ( #37615 )
...
* gitignore cleanups
* lil more
* one more
2026-03-08 18:31:11 -07:00
Kacper Rączy
4cc68f57cf
lagd: change lag candidate threshold range ( #37581 )
...
* Use extended_roi_ncc instead of roi_ncc
* It doesnt make sense to use non-positive lags in thresholding
2026-03-07 04:17:26 +00:00
Kacper Rączy
5e2a5b5355
lagd: smooth lat accel + min lat accel range ( #37424 )
...
* Smooth
* Min lat accel range
* Make the moving average masked
* Bring back the range
* Update test
* Smooth desired signal too
* Diff
* Gaussian
* Fix fmt
* Remove newline
2026-03-07 03:00:15 +00:00
Jason Wen
d3e26cf695
Merge branch 'upstream/openpilot/master' into sync-20260227
...
# Conflicts:
# .github/workflows/release.yaml
# .github/workflows/setup/action.yaml
# .github/workflows/tests.yaml
# panda
Sync: `commaai/opendbc:master` → `sunnypilot/opendbc:master`
Sync: `commaai/panda:master` → `sunnypilot/panda:master`
2026-02-27 17:05:28 -05:00
Jason Wen
59a16b9cdc
Merge branch 'upstream/openpilot/master' into sync-20260225
...
# Conflicts:
# .github/workflows/auto_pr_review.yaml
# .github/workflows/badges.yaml
# .github/workflows/mici_raylib_ui_preview.yaml
# .github/workflows/prebuilt.yaml
# .github/workflows/raylib_ui_preview.yaml
# .github/workflows/release.yaml
# .github/workflows/repo-maintenance.yaml
# .github/workflows/tests.yaml
# .gitignore
# Dockerfile.openpilot_base
# SConstruct
# docs/CARS.md
# opendbc_repo
# panda
# release/build_release.sh
# selfdrive/modeld/SConscript
# selfdrive/modeld/modeld.py
# selfdrive/pandad/panda_safety.cc
# selfdrive/pandad/pandad.cc
# selfdrive/pandad/pandad.py
# selfdrive/test/process_replay/process_replay.py
# selfdrive/ui/layouts/onboarding.py
# selfdrive/ui/mici/layouts/home.py
# selfdrive/ui/tests/diff/replay.py
# selfdrive/ui/tests/test_ui/raylib_screenshots.py
# tools/mac_setup.sh
# uv.lock
2026-02-27 16:12:57 -05:00
Kacper Rączy
6d559c4219
lagd: min_lag ( #37402 )
...
* Add min_lag
* Split line
* Clip lag
* Test should run with 3 lag frames too
* Update selfdrive/locationd/lagd.py
2026-02-27 03:47:07 +00:00
Adeeb Shihadeh
07163f793b
pytest timeout doesn't even work ( #37281 )
2026-02-20 14:48:27 -08:00
Jason Wen
53327edb50
Merge branch 'upstream/openpilot/master' into sync-20260111
...
# Conflicts:
# common/api.py
# docs/CARS.md
# opendbc_repo
# panda
# scripts/lint/lint.sh
# selfdrive/car/car_specific.py
# selfdrive/car/card.py
# selfdrive/test/process_replay/ref_commit
# system/hardware/hardwared.py
# tinygrad_repo
2026-01-20 07:29:25 -05:00
commaci-public
a46ff01cab
[bot] Update Python packages ( #36966 )
...
* Update Python packages
* ty fixes
---------
Co-authored-by: Vehicle Researcher <user@comma.ai >
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
2026-01-19 11:39:21 -08:00
Jason Young
ea64c4c0ae
VW: Enable torqued ( #36983 )
2026-01-04 21:35:13 -05:00
Adeeb Shihadeh
ea01a53711
switch from mypy to ty ( #36961 )
2025-12-28 10:42:49 -08:00
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
Suyog Shinde
2d91aa5abc
locationd: fix velocity calibration using wrong pose field ( #36844 )
2025-12-11 19:24:32 -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
Jason Wen
de64b99740
Torque Lateral Control: customized settings ( #1314 )
...
* init
* use internal frame
* exit early if toggle not enabled
* ui init
* ui: replace `static_cast<int>` with `std::nearbyint` for precise rounding
* revert
* update title
* handle live relaxed
* fix
* tweak ui
* toggle behaviors
* lint
* Update torqued_ext.py
* always update
* make sure it's updated properly with offroad states
* fix
* make sure to initialize
---------
Co-authored-by: nayan <nayan8teen@gmail.com >
2025-10-05 23:41:31 -04:00
Kacper Rączy
889ce4c4fb
torqued: add DEBUG flag ( #36161 )
...
Add a debug flag to torqued
2025-09-15 21:04:33 +00:00
Jason Wen
97c2d7e655
Merge branch 'upstream/openpilot/master' into sync-20250809
...
# Conflicts:
# common/params_keys.h
# opendbc_repo
# panda
# selfdrive/car/cruise.py
# selfdrive/controls/controlsd.py
# selfdrive/selfdrived/selfdrived.py
# selfdrive/test/process_replay/process_replay.py
# selfdrive/ui/qt/setup/setup.cc
# tinygrad_repo
2025-08-10 02:05:05 -04:00
Jason Wen
1bc12f1e21
Reapply "LagdToggle: refactor and only instantiate once" ( #1137 ) ( #1138 )
...
* Reapply "`LagdToggle`: refactor and only instantiate once" (#1137 )
This reverts commit b4f19d4860 .
* infinite woo gone
* use them hz
2025-08-09 22:50:29 -04:00
Jason Wen
b4f19d4860
Revert "LagdToggle: refactor and only instantiate once" ( #1137 )
...
Revert "`LagdToggle`: refactor and only instantiate once (#1130 )"
This reverts commit 6ae668e987 .
2025-08-09 20:06:10 -04:00
Jason Wen
6ae668e987
LagdToggle: refactor and only instantiate once (#1130 )
...
* wrap the params
* just 1 class and use a single param for now
* refactor
* fix
* cache itself
* no longer
* rename
* type hint
* in helpers instead
* lint
* all
* init as 0 to pass ci
* init as 0 to pass ci
* return_default
* fix init
* add LAT_SMOOTH_SECONDS directly in modeld, temp remove dynamic desc, red difffffffff
2025-08-09 16:51:31 -04:00
Jason Young
839a773345
enable lateral accel factor learning for Honda ( #35936 )
...
enable torqued for Honda
2025-08-06 16:11:07 -04:00
DevTekVE
9dc98b36be
refactor: cleanup gravity constant handling ( #35866 )
...
* refactor: move lateral methods from init to lateral.py (#2594 )
* Extracting lateral methods to lateral.py
* cleaning
* more cleaning
* more cleaning
* Making sure it remains where it should
* Leave rate_limit where it belongs
* Moving things to `car/controls/`
* Moving rate limit to get a taste of the changes
* clean
* copy verbatim
* clean up
* more
* now we can format
---------
Co-authored-by: Shane Smiskol <shane@smiskol.com >
* No need to change order of import
* refactor: consolidate ACCELERATION_DUE_TO_GRAVITY import path
* bump opendbc
* update refs
* don't import from opendbc
---------
Co-authored-by: Shane Smiskol <shane@smiskol.com >
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
2025-08-02 11:20:18 -07:00
Jason Wen
d6474aa0a9
Merge branch 'upstream/openpilot/master' into sync-20250731
...
# Conflicts:
# .github/workflows/selfdrive_tests.yaml
# common/params.h
# common/params_keys.h
# common/params_pyx.pyx
# docs/CARS.md
# opendbc_repo
# panda
# selfdrive/car/tests/test_models.py
# selfdrive/pandad/pandad.cc
# selfdrive/pandad/pandad.h
# selfdrive/selfdrived/selfdrived.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_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
# system/athena/athenad.py
# system/athena/manage_athenad.py
# system/manager/manager.py
# system/sentry.py
# uv.lock
Sync: `commaai/opendbc:master` into `sunnypilot/opendbc:master`
Sync: `commaai/panda:master` into `sunnypilot/panda:master`
2025-08-02 00:21:14 -04: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
Simon Kuang
b4ae64358e
Update vehicle model reference to 2023 edition of Guiggiani's book ( #35805 )
...
Update car_kf.py
2025-07-25 12:57:13 -07:00
Jason Wen
beaec753ab
Merge branch 'upstream/openpilot/master' into sync-20250710
...
# Conflicts:
# .github/workflows/selfdrive_tests.yaml
# README.md
# common/params_keys.h
# opendbc_repo
# panda
# selfdrive/controls/lib/longitudinal_planner.py
# selfdrive/controls/lib/tests/test_latcontrol.py
# selfdrive/ui/soundd.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_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
# tinygrad_repo
2025-07-19 00:28:43 -04:00
Kacper Rączy
44c8cc4cb0
Revert "lagd: disable in release ( #35426 )" and "lagd calib: hide on release ( #35523 )" ( #35633 )
...
* Revert "lagd: disable in release (#35426 )"
This reverts commit 6f6adc10a8 .
* Revert "lagd calib: hide on release (#35523 )"
This reverts commit e345f25ce4 .
* Fix conflict
2025-07-07 10:18:31 +02:00
James Vecellio-Grant
d0bd8cc4a3
liveDelay: Add live delay toggle to vehicles using torqued ( #1001 )
...
* Add live delay toggle to torqued.py and twilsonco NNLC
* Set this in init
* Clean up
* Live delay toggle refactor
* ModeldLagd -> LagdToggle
* This is for lagd_toggle.py
* Add to NNLC
* Lagd toggle:
Display current values on UI
* Add break
* LagdToggleDelay
Live edit software_delay when livedelay is toggled `off`
* Always show description
* Add description as to why values don't update offroad
---------
Co-authored-by: Kumar <36933347+rav4kumar@users.noreply.github.com >
2025-07-05 14:42:36 -07:00
Harald Schäfer
d1893ee3eb
OS camera calibration ( #35603 )
...
* wider narrow
* typo
* whiteapace
2025-06-25 22:08:56 -07:00
Shane Smiskol
bfa3f3cccb
Add calPerc progress tracking for torque calibration ( #35512 )
...
* Add calPerc field and torque progress
* Fix torqued test style and CarParams usage
* test: remove unused numpy import
* move here
* trying all combinations to see what's most linear
* clean up with best method
* no no
* epic
* clean up
* last min not needed
* doesn't hurt
* list comp
2025-06-10 00:22:13 -07:00
Shane Smiskol
75b6ec68c6
Add lagd calibration percentage ( #35511 )
...
* lagd: publish calibration percentage
* Refine lagd calibration progress
* stash
* cleanup (match calibrationd calculation logic)
* no no no
* nor
* two lines
2025-06-09 22:10:47 -07:00
Shane Smiskol
6f6adc10a8
lagd: disable in release ( #35426 )
...
* disable in release
* pass
* one liner
* Update selfdrive/locationd/lagd.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* test
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-06-02 21:29:05 -07:00
Shane Smiskol
8695134b08
Faster lagd test ( #35430 )
...
* disable in release
* pass
* one liner
* saves 1s so far
* clean up
* fix
* Revert "one liner"
This reverts commit 5f419b5692565fc7ddc2abe9a40112fdc47ffe9e.
Revert "pass"
This reverts commit 47d260e76a9cb1310b95ea1ff83ab7f8808be96d.
Revert "disable in release"
This reverts commit 1782718b61891d87cbb9daa1c4c65314f505cee4.
* clean up
* there's more
* no mocker!
2025-06-02 21:14:53 -07:00
Shane Smiskol
1a84b05bde
lagd: make method static
2025-06-02 20:53:11 -07:00
Kacper Rączy
97ad175243
Reapply "Enable online lag learning ( #34968 )" ( #35327 )
...
* Revert "Revert "Enable online lag learning (#34968 )" (#35322 )"
This reverts commit 9c40c48729 .
* Update ref commit
* Update ref
* Update ref commit
2025-05-24 02:31:17 +00:00
Kacper Rączy
312658756d
lagd: handle ambiguous cases ( #35257 )
...
* Mechanism to handle ambiguous estimates
* Use it
* Fix static
* Fix
* Comment
* Comment v2
* Use quantile instead
* Fix
* Make it better
* Make it confidence
* Make it a constant
* min_confidence as arg
* Make the test signal more like the real one
* Relax sample requirements
* Use constant
* Reduce confidence
2025-05-23 01:33:55 +00:00
Kacper Rączy
9c40c48729
Revert "Enable online lag learning ( #34968 )" ( #35322 )
...
* Revert "Enable online lag learning (#34968 )"
* Update ref commit
2025-05-22 01:55:19 +00:00
Kacper Rączy
f242b1e88a
lagd: remove saved param if mismatch ( #35217 )
...
Remove LiveDelay on mismatch
2025-05-14 03:18:14 +00:00
Kacper Rączy
cbec1886e7
paramsd: remove saved param if mismatch ( #35215 )
...
remove LiveParametersV2
2025-05-14 02:26:28 +00:00
Kacper Rączy
45b273328d
Enable online lag learning ( #34968 )
...
* Use in modeld
* Use in torqued
* Do not use default value in torqued
* Add liveDelay in process replay
* update ref
---------
Co-authored-by: Bruce Wayne <harald.the.engineer@gmail.com >
2025-05-01 11:42:49 -07:00
Kacper Rączy
15326c2d30
lagd: check for validity of the estimate when restoring state ( #35034 )
...
Do not restore if invalid
2025-04-18 01:37:48 +00:00
Kacper Rączy
06a9483a24
lagd: estimate std ( #35009 )
...
* Std
* Fix static
* Refactor
* Assert std zero
2025-04-17 23:49:30 +00:00
Kacper Rączy
60da5dd39a
lagd: check sensors valid ( #35027 )
...
* Check if sensors valid
* Fix test
* Fix static
* Constants
* time buffer for pose valid
* Fix static
2025-04-17 09:35:30 +02:00
Kacper Rączy
f237649a7a
Reapply "Online lateral lag learning" ( #34975 )
...
* Online lateral lag learning (#34974 )
This reverts commit b4cc9e68d1 .
* pad to the best size for fft
* Fix static analysis
* Add typing
* Fix typing
* MAX_LAG
* Calculate cross correlation regardless if the points are valid
* Back to lagd
* Add lagd to process_config
* Lagd in test onroad
* Move lag estimator for lagd
* Remove duplicate entry from test_onroad
* Update process replay
* pre-fill the data
* Update cpu usage
* 25sec window
* Change the meaning of lateralDelayEstimate
* No newline
* Fix typing
* Prefill
* Update ref commit
* Add a unit test
* Fix static issues
* Time limit
* Or timeout
* Use mocker
* Update estimate every time
* empty test
* DT const
* enable RIVIAN again
* Update ref commit
* Update that again
* Improve the tests
* Fix static
* Add masking test
* Increase timeout
* Add liveDelay to selfdrived
* Add liveDelay to selfdrived in process_replay
* Fix block_avg restore after num_blocks
* regen most
* Update bolt
* Update ref commit
* Change the key name
* Add assert
* True weighted average
2025-04-09 22:31:07 +00:00
Kacper Rączy
fc65a8ea8f
paramsd: cache backwards compatibility ( #34991 )
...
* LiveParametersV2 key
* Param key
* Fix tests
* Remove old params if error
* Update exception message
* Update the test
* Add test for corrupted byte format in v1
* Rename params_reader => params
2025-04-08 02:23:11 +00:00