Commit Graph

1366 Commits

Author SHA1 Message Date
infiniteCable2 5d057a1f03 Revert "pass yaw directly"
This reverts commit 8812fde77c.
2025-09-07 17:31:06 +02:00
infiniteCable2 894ef0c5c5 Merge branch 'curv_corr' of https://github.com/infiniteCable2/openpilot into curv_corr 2025-09-07 17:22:44 +02:00
infiniteCable2 8812fde77c pass yaw directly 2025-09-07 17:22:27 +02:00
infiniteCable d17ba5a562 Update controlsd.py 2025-09-07 16:32:17 +02:00
infiniteCable2 659963931b prepare neccessary variables for curv correction in vw car controller 2025-09-07 15:12:14 +02:00
infiniteCable2 42dfca1a5c Create latcontrol_curvature_pid_backup.py leave this here 2025-09-04 17:58:51 +02:00
infiniteCable2 5afb5e281b Merge branch 'master' of https://github.com/infiniteCable2/openpilot into corr_car_contr_no_roll 2025-09-03 19:09:57 +02:00
infiniteCable2 0634987776 Merge branch 'master' of https://github.com/sunnypilot/sunnypilot 2025-09-03 18:55:16 +02:00
infiniteCable2 1d6ad46b02 Revert "remove curvature controller"
This reverts commit 085ebe148a.
2025-09-03 18:49:51 +02:00
infiniteCable2 085ebe148a remove curvature controller 2025-09-03 17:25:55 +02: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
infiniteCable2 f57abba6b5 Update latcontrol_curvature.py 2025-09-02 20:06:08 +02:00
infiniteCable2 c4009b0f90 Update latcontrol_curvature.py 2025-09-02 20:04:29 +02:00
infiniteCable2 33ee0a5368 Update controlsd.py 2025-09-02 19:19:54 +02:00
infiniteCable2 4350bd0e98 curv controller only for logging and saturation 2025-09-02 18:32:45 +02:00
infiniteCable2 48df71ab73 Merge branch 'master' of https://github.com/sunnypilot/sunnypilot 2025-08-30 16:10:43 +02:00
Jason Wen ba1da60c25 NNLC: compute error in torque space (#1185)
* NNLC: compute error in torque space

* bump

* sp happy too

* bump

* lint

* update path

* oops

* test entire loop

* bump

* test gm

* bump

* bump
2025-08-29 22:39:25 +02:00
infiniteCable2 bc80a81b45 Merge branch 'master' of https://github.com/sunnypilot/sunnypilot 2025-08-25 17:02:35 +02: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
Shane Smiskol ab44c9a4ff Torque controller: refactor calculations to be in accel space (#35790)
* clean up

* little confusing but works

* clean up

* fix

* pid outputs torque again, fix windup above max torque

* clean up

* fix

* fix

* typo

* fix conflicts

* fix PID

* cleanups

* seems correct

* updte

* inverse

* whitespace

* move

* small cleanup

* more cleanup

* update ref

---------

Co-authored-by: Bruce Wayne <harald.the.engineer@gmail.com>
2025-08-15 11:39:56 -07:00
infiniteCable2 b41664cfce adapt to upstream 2025-08-15 18:07:24 +02:00
eFini 4536719353 longitudinal_planner: Convert self.mode to a local variable in update() (#35999)
Make 'mode' variable local
2025-08-15 09:02:38 -07:00
infiniteCable2 78a89f3fad Merge branch 'master' of https://github.com/sunnypilot/sunnypilot 2025-08-15 17:41:24 +02: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
infiniteCable2 08dfbe5c24 Update longcontrol.py revert special starting state logic 2025-08-12 17:54:01 +02:00
Harald Schäfer 455a6a586a Misc PID refactors (#35844)
* Misc PID refactors

* dead

* finish rename

* unused import

* whitespace

* typo

* fix fan controller

* pid_log

* whitespace

* integral clipping in pid

* update ref

* cleaner

* rm print

* update ref

* revert fan changes

* forgot this
2025-08-11 14:25:29 -07:00
infiniteCable2 329e032545 Merge branch 'master' of https://github.com/sunnypilot/sunnypilot 2025-08-11 16:27:42 +02: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
Mitchell Goff 7413982f0d Lower ALLOW_THROTTLE_THRESHOLD (#35928)
* Lower ALLOW_THROTTLE_THRESHOLD

* Bumped process_replay refs
2025-08-05 17:35:54 -07:00
infiniteCable2 ba371576d2 Merge branch 'master' of https://github.com/sunnypilot/sunnypilot into master-new 2025-08-03 17:54:46 +02: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
Shane Smiskol 07909906d4 controlsd: speed up number checking (#35890)
Update controlsd.py
2025-08-02 00:08: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
Adeeb Shihadeh 4d01b7bec8 Fix up radarFault handling (#35880)
* fixup radarFault handling

* catch all

---------

Co-authored-by: Comma Device <device@comma.ai>
2025-08-01 16:27:26 -07:00
DevTekVE 1966845fc9 refactor: move lateral methods from init to lateral.py (#35856)
* 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

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2025-08-01 15:17:37 -07:00
infiniteCable2 acfe1ac1c0 Update longcontrol.py 2025-08-01 18:07:30 +02:00
infiniteCable2 7159090fc6 Update longcontrol.py use brake hold mechanics for start accel 2025-08-01 17:31:02 +02:00
infiniteCable2 1cc9b4c770 Update latcontrol_curvature.py 2025-07-31 19:24:11 +02:00
infiniteCable2 55b25baaa1 Update latcontrol_curvature.py 2025-07-31 19:22:22 +02:00
infiniteCable d77114447e Update latcontrol_curvature.py 2025-07-27 14:26:28 +02:00
infiniteCable b0a5a55733 Update latcontrol_curvature.py 2025-07-27 14:24:56 +02:00
infiniteCable ad47652aa8 Update latcontrol_curvature.py 2025-07-26 21:28:33 +02:00
infiniteCable ce37fc84b5 Update latcontrol_curvature.py 2025-07-25 13:34:29 +02:00
infiniteCable a68e5ff6d8 Update latcontrol_curvature.py 2025-07-24 17:45:39 +02:00
infiniteCable 4c1c7809d5 Update latcontrol_curvature.py 2025-07-24 17:22:52 +02:00
infiniteCable 654caaef3c Update latcontrol_curvature.py 2025-07-24 17:15:56 +02:00
infiniteCable 8608aa6d04 Update latcontrol_curvature.py 2025-07-24 17:13:28 +02:00