Commit Graph

571 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 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
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 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
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
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
Shane Smiskol 67dc69d3db Fix stock ACC resume signal (#35691)
* use this

* missing

* clean up
2025-07-11 14:59:27 -07:00
Harald Schäfer 20fdb686ca latcontrol torque: remove option to feed back on localizer (#35659)
* Localizer is too laggy for control

* typo

* typo

* fix test

* fix imports

* Revert "fix imports"

This reverts commit 5074f8050170f974b451e00d9fdc752f09a47d57.

* fix improt

* import
2025-07-08 14:12:46 -07:00
infiniteCable2 ec394ed9ce Merge branch 'master-new' of https://github.com/sunnypilot/sunnypilot into master-new 2025-07-06 14:28:49 +02:00
infiniteCable b874463fdc Update controlsd.py 2025-07-06 14:26:25 +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
infiniteCable e0ae7367c4 Update controlsd.py 2025-07-05 15:28:15 +02:00
infiniteCable2 baefc09445 Merge branch 'master-new' of https://github.com/sunnypilot/sunnypilot into master-new 2025-06-25 17:01:49 +02:00
Tim Wilson 0cfdd6757b NNLC: Learned Lateral Lag for Torque Extension (#946)
* TorqueExtBase: use learned lag

lower non-zero limit for lag

restore original lag mod

* NNLC: use learned lat lag

* add test

* non-zero lag in test

* lower lag mod to 0.1s

* Update constant to reflect Twilsonco's recommendations.
2025-06-24 09:28:49 -07:00
infiniteCable d82945a1da Update controlsd.py 2025-06-09 11:05:04 +02:00
infiniteCable 737eeaa3b2 Update controlsd.py 2025-06-09 10:48:21 +02:00
infiniteCable 79f4b70dbd Update controlsd.py 2025-06-07 00:02:05 +02:00
infiniteCable 88d3007913 Update controlsd.py 2025-06-07 00:00:30 +02:00
infiniteCable 8c40813ddb Update controlsd.py 2025-05-28 16:37:14 +02:00
infiniteCable2 94f89fce31 Merge branch 'master-new' of https://github.com/sunnypilot/sunnypilot into master-new 2025-05-28 16:09:09 +02:00
Jason Wen b51043770b CarControlSP: live params (#943)
* car: initialize sunnypilot interface immediately

* init

* Revert "car: initialize sunnypilot interface immediately"

This reverts commit 2e0fc4d87eb312a3a74a61bb8cbc780e33efbfc7.

* show int

* show int

* work properly with cereal

* unused

* in its own module

* bump

* not yet

* not yet

* list comp and use structs directly

* allow default key if needed

* lint

* send it with None

* bump
2025-05-24 16:20:57 -04:00
infiniteCable2 600adb6dbb Merge branch 'master-new' of https://github.com/sunnypilot/sunnypilot into master-new 2025-05-18 12:36:31 +02:00
Discountchubbs 1e74000f79 Controls: Extension (#858)
* Add enhanced HyundaiCAN extension

Introduced HyundaiCanEXT for improved object parsing and control integration, leveraging new fields like lead distance and relative speed in CarControlSP.

Refactored controlsd to utilize a modular design with ControlsdExt for additional sunnypilot specific functionality.

* self.cc_sp

* Refactor CarControlSP handling for improved state updates

* refactor

* bool

* Refactor controlsd SP communication logic

Update `publish_sp` method to include `CC_SP` parameter and refine SP SubMaster to exclude `radarState`. Remove custom lead vehicle state processing as it is no longer needed.

* remove in this pr

* bump

* start cleanup

* inherit instead

* even more!

* lint

* type hint

* use the same objects for submaster and pubmaster

* more

---------

Co-authored-by: Jason Wen <haibin.wen3@gmail.com>
2025-05-15 23:13:40 -04:00
infiniteCable cf38f8632a Update controlsd.py 2025-04-29 11:03:52 +02:00
infiniteCable2 d6e780c681 Merge branch 'master-new' of https://github.com/sunnypilot/sunnypilot into master-new 2025-04-28 20:48:56 +02:00
rav4kumar cf9b45783d Merge remote-tracking branch 'comma/master' into sync-20250427 2025-04-28 14:06:18 -04:00
infiniteCable 18177aff08 Update controlsd.py 2025-04-26 11:52:28 +02:00
Jason Young 37839ea0c5 controls: publish current curvature in CarControl (#34679)
* controls: publish current curvature in CarControl

* clean up

* update refs

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2025-04-25 13:57:18 -07:00
infiniteCable c6028b152c Update controlsd.py 2025-04-22 19:19:57 +02:00
infiniteCable 4f244102b8 Update controlsd.py 2025-04-22 14:42:59 +02:00
infiniteCable2 1746ef7e2f Revert "Update controlsd.py"
This reverts commit f04149e48a.
2025-04-22 14:41:21 +02:00
infiniteCable2 c0f423c050 Revert "Update controlsd.py"
This reverts commit 040a9db719.
2025-04-22 14:40:52 +02:00
infiniteCable2 3d3ef52e28 Revert "Update controlsd.py"
This reverts commit 59e0e2b3cf.
2025-04-22 14:40:33 +02:00