James Vecellio-Grant
b32c6dafee
modeld: add laneline helper for plan indices calculation ( #1240 )
...
* modeld: add laneline_helper for plan X indices calculation
* spacing
* keep type hints
* openpilot
* sunnypilot/models/helpers
add modeld helpers to helpers
* Send it from each fill message
---------
Co-authored-by: Jason Wen <haibin.wen3@gmail.com >
2025-09-14 21:45:22 -04:00
Jason Wen
ec8f036850
Merge branch 'upstream/openpilot/master' into sync-20250908
...
# Conflicts:
# .github/workflows/selfdrive_tests.yaml
# README.md
# docs/CARS.md
# opendbc_repo
# panda
# selfdrive/car/tests/test_car_interfaces.py
# selfdrive/modeld/modeld.py
# 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/hardware/hardwared.py
# system/updated/updated.py
# tinygrad_repo
# uv.lock
2025-09-13 15:23:36 -04:00
Harald Schäfer
f0f04d4b5b
Firehose model ( #36087 )
...
816ce390-c41a-42fa-a5df-f393cbe2dcc4/400
2025-09-04 18:51:29 -07:00
James Vecellio-Grant
9447aa0e3d
modeld: turn desires ( #1182 )
...
* Add modelDataV2SP and lane turn logic implementation
Note: still need to hook up to other modeld's create unit test, fix stuff, and do the UI for it
* add unit tests for lane turn logic
* Add lane turn desire controls to models panel
* use `events_sp` instead of `events`
* integrate modelDataV2SP messaging to the other modeld controllers
* move this to that
* use min for general population here, on custom branches, change this to max :)
* Update events.py
Co-authored-by: royjr <royjr96@gmail.com >
* Update events.py
Co-authored-by: royjr <royjr96@gmail.com >
* refactor lane turn value control into one method
* Update selfdrive/ui/sunnypilot/qt/offroad/settings/models_panel.cc
* add integration tests for lane turn desire
* 10 updates is possibly more representative of real life
* real objects ofc
* desc: add toggle description for clarity
---------
Co-authored-by: royjr <royjr96@gmail.com >
2025-09-03 05:49:12 -07:00
ZwX1616
a2c5fca787
modeld input queues class ( #36072 )
...
* move from xx
* no get_single
* stupid name
* thats fine
* desire_pulse
* 1less
* desire->desire_pulse
* simplify
* reduce copies
* more less
2025-08-27 17:54:53 -07:00
ZwX1616
f8ff156869
modeld: desire->desire_pulse ( #36076 )
...
consistent naming
2025-08-27 13:48:23 -07:00
Jason Wen
798e9071d8
Merge branch 'upstream/openpilot/master' into sync-20250823
...
# Conflicts:
# .github/workflows/release.yaml
# README.md
# RELEASES.md
# common/params_keys.h
# docs/CARS.md
# opendbc_repo
# panda
# release/build_stripped.sh
# selfdrive/controls/lib/longitudinal_planner.py
# selfdrive/modeld/modeld.py
# selfdrive/ui/feedback/feedbackd.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/version.py
# uv.lock
2025-08-24 14:52:21 -04:00
YassineYousfi
d097a0c201
model parser: fix lead mhp out shape ( #36024 )
...
* model parser: fix lead mhp out shape
* fix for real
2025-08-19 11:35:22 -07:00
YassineYousfi
3d24225cc1
model parser: use check missing for mhp checks ( #36023 )
...
* model parser: use check missing for mhp checks
* lint + support re
* lint...
* no walrus
* just remove
* forgot this
2025-08-19 10:19:00 -07:00
YassineYousfi
51314fa9fe
Revert "model parser: use check missing for mhp checks" ( #36022 )
...
Revert "model parser: use check missing for mhp checks (#36020 )"
This reverts commit 803b54ebdb .
2025-08-19 10:09:59 -07:00
YassineYousfi
803b54ebdb
model parser: use check missing for mhp checks ( #36020 )
...
* model parser: use check missing for mhp checks
* lint + support re
* lint...
* no walrus
* just remove
2025-08-19 10:09:09 -07:00
Harald Schäfer
ceb557058c
Steam Powered model ( #36000 )
...
* f3e67f3e-6079-48cf-92a4-dee5eebd1d73/360
* f3e67f3e-6079-48cf-92a4-dee5eebd1d73/400
* No more action head: a8f96b93-bde2-4e28-a732-4df21ebba968/400
2025-08-17 10:18:30 -07:00
Jason Wen
6c4c0c00b4
Merge branch 'upstream/openpilot/master' into sync-20250812
...
# Conflicts:
# opendbc_repo
# selfdrive/controls/controlsd.py
# selfdrive/controls/lib/latcontrol_angle.py
# selfdrive/controls/lib/latcontrol_pid.py
# selfdrive/controls/lib/latcontrol_torque.py
2025-08-12 23:11:18 -04:00
YassineYousfi
8deb1bf285
Down To Ride model 🏎️ ( #35982 )
...
* e9237324-4b92-48f5-acaa-ebdf7fe46339/400
* ff4c292c-8e5a-44c0-9b75-e79c60152da2/400
* 1496451e-897b-4a1b-a284-37d244bfddb3/400
* Revert "Revert TR again (#35179 )"
This reverts commit e9cea3ae5c .
* try stopping closer
* 5e4cb3d3-b9cc-45c7-a476-38083e75029c/400
* 2164d501-7d2c-467d-b132-be4f85db4164/60
* Revert "2164d501-7d2c-467d-b132-be4f85db4164/60"
This reverts commit 1f4b98ed7d63971507dff94e5ac20223ee15e067.
* 9a836aee-dec6-4f26-8d7e-6db4bb9c8176
* no replace ln
* Revert "no replace ln"
This reverts commit fb5173ced84bb8a07a4e06a5bec43d115404973b.
* opset_version 17
* rebase
* 5f255b73-2e54-46bc-8f80-82c5838165a3/400
* a423dec7-7dcc-4523-aaae-a4012d56b9b5/400
---------
Co-authored-by: Bruce Wayne <harald.the.engineer@gmail.com >
2025-08-12 19:01:56 -07:00
Harald Schäfer
cd087a561e
Simple plan ( #35980 )
...
* squash
* double
* proper merge
* better organization
2025-08-11 17:42:03 -07:00
YassineYousfi
c78b302b93
Space Lab 3 🛰️ 🛰️ 🛰️ ( #35905 )
...
* c147a591-1f86-4ea4-b2b7-391eff1178b5/400
* 6d6639ee-643e-4f72-bd1c-dda546383854/400
2025-08-11 14:07:01 -07: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 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
Harald Schäfer
5c252ded72
Space Lab 2 ( #35816 )
...
* d2971977-a56f-44a2-b368-434af987b731/400
* f35eaf21-ef51-413d-9857-398bcdabb7da
2025-07-26 21:21:33 -07:00
Harald Schäfer
35ed6bc3a9
Tinygrad DEV=DEVICE ( #35814 )
...
* Reapply "Tinygrad DEV=DEVICE (#35809 )"
This reverts commit 5e07636d54 .
* bump tg
2025-07-26 21:21:25 -07:00
Bruce Wayne
5e07636d54
Revert "Tinygrad DEV=DEVICE ( #35809 )"
...
This reverts commit 47f23828d2 .
2025-07-25 12:54:11 -07:00
Harald Schäfer
47f23828d2
Tinygrad DEV=DEVICE ( #35809 )
...
* bump tg
* step one cleanup
* cleanup
* typo
* cleaner
* cleaner
* Revert "cleaner"
This reverts commit 9c1abd0dc06b4564e61dd32b0e93375badbc9ca5.
* usbgpu
* bit cleaner
* cleaner sconscript
2025-07-25 11:53:08 -07:00
YassineYousfi
938981dce9
Space Lab Model 🛰️ ( #35804 )
...
* 95c34be5-4fa1-4875-8b1d-fb7162140f10/400
* 660235c5-1647-40c4-8493-880de8f662d0/400
2025-07-25 11:38:07 -07:00
Jimmy
7e0d3c22f4
modeld: skip redundant cast, reshape, and flatten ( #35735 )
...
* skip redundant cast, reshape, and flatten
* accidentally deleted a newline lol
2025-07-22 16:35:19 -07:00
James Vecellio-Grant
1b570ef418
sunnypilot modeld: Refactor Modeld to Allow Dynamic Plan and Lead ( #1030 )
...
* Introduce zero inputs for Lead, and plan to conform with new SP model introduced Monday, July 7, 2025
* Clean this up
* We can revert this after dev-c3-new testing and ready to merge.
* This needs to be apart of the conditional else fail
* Add full conditional
* Update longitudinal_planner.py
* Mypy from myphone!
* red diff
* Make generation a property for clarity
* Even clearer!
* Affix to generation, while allowing older models to use this IF param is set.
* seems a bit repetitive yea?
* dynamic
* Make most outputs dynamic
* Rm toggle from refactor
* refactor(modeld): simplify MHP output parsing logic
- Introduced `_parse_mhp_output` helper to remove redundancy and streamline `parse_dynamic_outputs`.
- Ensures improved code maintainability and clarity.
* refactor(longitudinal_planner): streamline generation handling logic
- Simplified `generation` assignment with inline conditional for better readability.
- Adjusted `mlsim` logic to default to model simulation when `generation` is unset.
* for ease of syncs from now on
* fix
---------
Co-authored-by: DevTekVE <devtekve@gmail.com >
2025-07-19 16:22:02 +02: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
Harald Schäfer
cbba571845
LeTR14h ( #35746 )
...
f497b976-1ad4-4ef9-a6b8-172c68df12ea/400
2025-07-17 22:00:12 -07:00
YassineYousfi
aac09d1d92
LeTR14 🇫🇷 ( #35730 )
...
* 9e9f8657-4e39-43d4-b36d-2d90ab18f6e9
* fix parsing
2025-07-16 19:52:39 -07:00
Harald Schäfer
052ada6a07
Revert "TR15 ( #35673 )" ( #35727 )
...
This reverts commit 0aaefdee37 .
2025-07-14 10:24:07 -07:00
Harald Schäfer
0aaefdee37
TR15 ( #35673 )
...
* 35d665f7-f4fb-4bc0-ac72-e6e85cd7fff5/400
* 3baefdb6-55f1-417b-b73d-19ba041eb574/400
2025-07-13 17:27:33 -07:00
Shane Smiskol
6f1a1b3213
Revert "modeld: autodetect tinygrad backend" ( #35701 )
...
Revert "modeld: autodetect tinygrad backend (#35405 )"
This reverts commit ce92fd1a0f .
2025-07-12 00:52:18 -07:00
Andrei Radulescu
ce92fd1a0f
modeld: autodetect tinygrad backend ( #35405 )
...
* modeld: autodetect tinygrad backend
* modeld: autodetect tinygrad CUDA backend
* Revert "modeld: autodetect tinygrad CUDA backend"
This reverts commit 0e9755fb3c5c2021de27f4d230bd0a162883bc37.
* comment why llvm@19
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
* backend from jit
* fix static analysis
* simplify
* compile flags log
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
2025-07-11 19:48:35 -07: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
Adeeb Shihadeh
a8ec08e5bb
modeld: remove redundant process config ( #35639 )
2025-07-05 13:52:57 -07:00
Harald Schäfer
64fd3f9860
Tomb Raider 14 ( #35620 )
...
* f7db6a09-43c5-4db9-b856-7fe1a1c231eb/400
* bd99d079-9afb-4af5-9f31-236d5c9ff15f/400
* aggressive tr: 7707a4ca-7d5e-47a2-8760-93b5004695cd/400
* bd99d079-9afb-4af5-9f31-236d5c9ff15f/400
* ae82d7a8-b74d-43b5-ab6d-d72e6040dab3/400
* revert stop distance
* comments
2025-07-02 21:50:55 -07:00
eFini
c3c5992f88
modeld: avoid using USB GPU on a AMD laptop ( #35602 )
...
modeld: avoid using usb GPU if 'USBGPU' is not in os.environ
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
2025-06-29 14:37:51 -07:00
Kacper Rączy
0218ae82ed
Fix openpilot-prebuilt image build ( #35607 )
...
Fix tinygrad shell exec
2025-06-27 02:51:20 +00:00
YassineYousfi
01b3f70c01
Vegetarian Filet o Fish model 🐟 ( #35379 )
...
* 7fcb3c70-391e-4bd6-b17d-a011b2845d06/700
* 0fc8b4da-7a24-4469-9428-ae7dcffc3c67/700
* fix
* c16e9412-c448-4589-9ff6-5362be0e9bc3/700
* b2714021-a7bc-41d6-8e1c-bfd20e59cc75/700
2025-06-25 11:18:28 -07:00
YassineYousfi
c1e0b87059
liquid crystal model 💧 ❄️ ( #35591 )
...
986745e3-b382-41a7-b15a-2cdcb664d072/700
2025-06-23 13:06:15 -07:00
YassineYousfi
ccd55d3663
kerrygold model 🧈 ( #35499 )
...
* b92dd772-6ae6-4329-880d-7e1cc60dd9da/700
* 6a8a3da8-c264-4f91-b0a6-d04722cccfce/700
* 967279c1-7d3c-4463-9d35-58e0311a5f57/700
* flake
2025-06-18 09:21:05 -07:00
ZwX1616
ba2d2677c1
modeld: no hardcoded frame names ( #35476 )
...
* from model
* juggle
2025-06-06 13:05:54 -07:00
YassineYousfi
618645f1d7
Revert "Vegan Filet o Fish model " ( #35376 )
...
Revert "Vegan Filet o Fish model (#35240 )"
This reverts commit b4d6b52edd .
2025-05-28 20:45:53 -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
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
YassineYousfi
b4d6b52edd
Vegan Filet o Fish model ( #35240 )
...
e30305e9-5fb8-48bd-a278-f714e880aef1/700
2025-05-21 11:48:49 -07:00
Adeeb Shihadeh
350a235303
modeld: more USB GPU fixes ( #35306 )
...
* fixups
* builds
2025-05-20 19:41:58 -07:00
Adeeb Shihadeh
e47d105b97
revert extra GPU power draw to prep for release
2025-05-20 14:28:30 -07:00
Andrei Radulescu
f630cac06f
modeld: replace CLANG=1 with CPU=1 ( #35270 )
...
Replace CLANG=1 with CPU=1
---
For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/andiradulescu/openpilot?shareId=XXXX-XXXX-XXXX-XXXX ).
2025-05-18 05:57:45 -07:00