Commit Graph

536 Commits

Author SHA1 Message Date
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
infiniteCable e6dd664918 Update controlsd.py 2025-04-21 14:34:30 +02:00
infiniteCable 59e0e2b3cf Update controlsd.py 2025-04-21 12:08:34 +02:00
infiniteCable 040a9db719 Update controlsd.py 2025-04-21 11:45:16 +02:00
infiniteCable f04149e48a Update controlsd.py 2025-04-21 11:42:03 +02:00
infiniteCable 5d09f4e249 Update controlsd.py 2025-04-20 18:40:31 +02:00
infiniteCable 3e3af143e9 Update controlsd.py 2025-04-20 14:03:08 +02:00
infiniteCable 67b0d5bb84 Update controlsd.py 2025-04-20 11:45:48 +02:00
infiniteCable 68dfa74ff6 Update controlsd.py 2025-04-20 11:37:36 +02:00
infiniteCable fad7e2910f Update controlsd.py 2025-04-20 11:21:39 +02:00
infiniteCable 3e03647ff5 Update controlsd.py debugging pruposes 3dof 2025-04-20 11:14:27 +02:00
infiniteCable 0f9270547c Update controlsd.py 2025-04-11 23:33:23 +02:00
infiniteCable 0d51d6c475 Update controlsd.py 2025-04-11 19:36:22 +02:00
infiniteCable2 1152450921 Update controlsd.py 2025-04-10 19:59:54 +02:00
infiniteCable2 a4f07b065f Revert "Update controlsd.py"
This reverts commit a756987ca1.
2025-04-10 19:58:57 +02:00
infiniteCable a756987ca1 Update controlsd.py 2025-04-08 21:00:55 +02:00
infiniteCable 9805282780 Update controlsd.py 2025-04-08 20:16:23 +02:00
infiniteCable e6baa56786 Update controlsd.py 2025-04-07 21:22:28 +02:00
infiniteCable f16af32459 Update controlsd.py 2025-04-07 21:21:36 +02:00
infiniteCable 2c1b29b63a Update controlsd.py 2025-04-07 19:50:47 +02:00
infiniteCable 03c5f895a0 Update controlsd.py disturbance correction without passing through/affecting whole desired curvature 2025-04-07 18:51:14 +02:00
infiniteCable2 602f7286ca Update controlsd.py 2025-04-07 17:05:21 +02:00
infiniteCable2 5f2eef4a6a Update controlsd.py 2025-04-06 19:02:27 +02:00
infiniteCable2 298b2f677c Update controlsd.py 2025-04-06 18:11:50 +02:00
infiniteCable2 45f74f695a Update controlsd.py 2025-04-06 18:03:30 +02:00
infiniteCable2 52030b5f76 Update controlsd.py 2025-04-06 17:57:45 +02:00
infiniteCable2 8c77ceb2b8 Update controlsd.py 2025-04-06 17:14:58 +02:00
infiniteCable2 d926dbd88d Update controlsd.py 2025-04-06 16:59:17 +02:00
infiniteCable2 fcb392a22c Update controlsd.py 2025-04-06 16:51:10 +02:00
infiniteCable2 8789ddb995 Update controlsd.py 2025-04-06 16:39:15 +02:00
infiniteCable 9a0b4fd155 Update controlsd.py 2025-04-06 14:48:29 +02:00
Jason Wen 9dba62e686 Merge branch 'upstream/openpilot/master' into sync-20250403
# Conflicts:
#	.github/workflows/auto_pr_review.yaml
#	.github/workflows/selfdrive_tests.yaml
#	.github/workflows/ui_preview.yaml
#	msgq_repo
#	opendbc_repo
#	panda
#	selfdrive/controls/controlsd.py
2025-04-03 21:53:04 -04:00
Shane Smiskol a2859090d8 controls: reset desired curvature while disabled (#34943)
* reset curvature while disabled

* comment

* duplicate line

* fix possible iso violation because it was unlimited while disengaged

* rename so you can't accidentally use

* update refs
2025-03-26 22:41:26 -07:00
Adeeb Shihadeh ea4554526e Keep steering active at standstill (#34918)
* Keep steering active at standstill

* bump opendbc

* bump opendbc

* update refs
2025-03-25 14:00:24 -07:00
Jason Wen d21e351003 Controls: Lateral Accel Torque Control Extension (#690)
* init

* more init

* keep it alive

* fixes

* more fixes

* more fix

* new submodule for nn data

* bump submodule

* update path to submodule

* spacing???

* update submodule path

* update submodule path

* bump

* dump

* bump

* introduce params

* Add Neural Network Lateral Control toggle to developer panel

This introduces a new toggle for enabling Neural Network Lateral Control (NNLC), providing detailed descriptions of its functionality and compatibility. It includes UI integration, car compatibility checks, and feedback links for unsupported vehicles.

* decouple even more

* static

* codespell

* remove debug

* in structs

* fix import

* convert to capnp

* fixes

* debug

* only initialize if NNLC is enabled or allow to enable

* oops

* fix initialization

* only allow engage if nnlc is off

* fix toggle param

* fix tests

* lint

* fix more test

* capnp test

* try this out

* validate if it's not None

* make it 33 to match

* align

* share the same friction input calculation

* return stock values if not enabled

* unused

* split base and child

* space

* rename

* NeuralNetworkFeedForwardModel

* less

* just use file name

* try this

* more explicit

* rename

* move it

* child class for additional controllers

* rename

* time to split out custom lateral acceleration

* move around

* space

* fix

* TODO-SP

* TODO-SP

* split nnlc and custom lat accel

* more

* not yet

* comment

* fix

---------

Co-authored-by: DevTekVE <devtekve@gmail.com>
2025-03-20 16:01:08 -04:00
DevTekVE f0abacbc59 Merge branch 'refs/heads/master-at-17032025' into sync-17032025
# Conflicts:
#	opendbc_repo
#	selfdrive/car/card.py
#	selfdrive/car/tests/test_car_interfaces.py
#	selfdrive/car/tests/test_models.py
#	selfdrive/controls/controlsd.py
#	selfdrive/controls/lib/tests/test_latcontrol.py
#	selfdrive/pandad/panda.h
#	system/manager/process_config.py
Sync: `commaai/opendbc:master` into `sunnypilot/opendbc:master-new`
2025-03-18 01:05:34 -04:00