Commit Graph

546 Commits

Author SHA1 Message Date
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
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