Commit Graph

10166 Commits

Author SHA1 Message Date
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 24ab9dd721 Update radard.py 2025-04-20 10:38:06 +02:00
infiniteCable 192d8563dd Update radard.py rework 2025-04-20 10:36:50 +02:00
infiniteCable2 51f4895e54 Merge branch 'master-new' of https://github.com/sunnypilot/sunnypilot into master-new 2025-04-19 22:39:52 +02:00
infiniteCable ce1a47b3e8 Update radard.py rework 2025-04-19 21:37:01 +02:00
infiniteCable 9322f80ea9 Update radard.py rework 2025-04-19 21:26:36 +02:00
Kumar 1bf752fc79 bugfix: Auto lane change - Add mode to disable lane changes (#826)
* off is off

* sugg

* line

* Update sunnypilot/selfdrive/controls/lib/tests/test_auto_lane_change.py

---------

Co-authored-by: Jason Wen <haibin.wen3@gmail.com>
Co-authored-by: Discountchubbs <159560811+Discountchubbs@users.noreply.github.com>
Co-authored-by: DevTekVE <devtekve@gmail.com>
2025-04-19 21:15:28 +02:00
infiniteCable 681067d852 Update disturbance_controller.py cleanup 2025-04-19 19:44:35 +02:00
infiniteCable2 02b4acb999 Merge branch 'master-new' of https://github.com/sunnypilot/sunnypilot into master-new 2025-04-19 19:42:07 +02:00
infiniteCable b83b1f871a Update disturbance_controller.py 2025-04-19 19:37:24 +02:00
Tim Wilson bcdb546638 NNLC: decreased low-speed factor (#822)
* NNLC: decreased low-speed factor

* np.float to float

* format

* add tests for sanity check

---------

Co-authored-by: Discountchubbs <159560811+Discountchubbs@users.noreply.github.com>
Co-authored-by: Jason Wen <haibin.wen3@gmail.com>
2025-04-19 11:47:47 -04:00
infiniteCable ed174aa82c Update disturbance_controller.py 2025-04-19 16:41:00 +02:00
infiniteCable f01357d025 Update radard.py revert 2025-04-19 15:29:25 +02:00
infiniteCable a8c2c72643 Update disturbance_controller.py 2025-04-19 14:53:15 +02:00
infiniteCable ba98193090 Update disturbance_controller.py reimplement old working state and a little bit of ff style disturbance correction by lat accel 2025-04-19 13:53:29 +02:00
infiniteCable 6e2ff68f91 Update disturbance_controller.py 2025-04-19 13:28:57 +02:00
infiniteCable 838145be17 Update disturbance_controller.py 2025-04-19 12:59:08 +02:00
infiniteCable 77942ad71a Update disturbance_controller.py 2025-04-18 22:18:01 +02:00
infiniteCable 827a505e49 Update disturbance_controller.py 2025-04-18 20:12:56 +02:00
infiniteCable ebaabcfc25 Update disturbance_controller.py 2025-04-18 19:40:57 +02:00
infiniteCable e868baf92f Update disturbance_controller.py cleanup 2025-04-18 19:39:10 +02:00
infiniteCable 1cad142b38 Update radard.py 2025-04-18 14:00:32 +02:00
infiniteCable 14c3da2673 Update radard.py optimization 2025-04-18 11:26:25 +02:00
infiniteCable 5f6bc072be Update cruise.py 2025-04-18 10:21:49 +02:00
infiniteCable2 b2b0adb273 Merge branch 'master-new' of https://github.com/sunnypilot/sunnypilot into master-new 2025-04-18 10:15:42 +02:00
infiniteCable 56e72c4c98 Update disturbance_controller.py optimization 2025-04-18 08:55:37 +02:00
Jason Wen 86a390780e DM: Enforce monitoring of MADS state in driver monitoring (#831)
* DM: Enforce monitoring of MADS state in driver monitoring

Added `selfdriveStateSP.mads.enabled` to track MADS engagement. This ensures monitoring logic accounts for MADS alongside the existing selfdrive state checks, improving feature integration and event handling.

* how

* okay, only when active
2025-04-17 13:31:43 -04:00
Jason Wen bdcc9d579f Revert "DM: Enforce monitoring of MADS state in driver monitoring" (#830)
Revert "DM: Enforce monitoring of MADS state in driver monitoring (#818)"

This reverts commit 3615b1a203.
2025-04-17 13:03:07 -04:00
infiniteCable2 95d7b87441 Merge branch 'master-new' of https://github.com/sunnypilot/sunnypilot into master-new 2025-04-17 18:31:19 +02:00
infiniteCable e683e47c8f Update disturbance_controller.py perf: 3dof only 2025-04-17 11:59:57 +02:00
infiniteCable 936acfc17a Update dmonitoringmodeld.py do not run DM twice for now 2025-04-17 09:41:37 +02:00
Nayan a867dea681 UI: Bugfix Max Time Offroad (#820)
bugfixes

Co-authored-by: Discountchubbs <159560811+Discountchubbs@users.noreply.github.com>
2025-04-15 18:12:08 +02:00
infiniteCable2 971aff368b Merge branch 'master-new' of https://github.com/sunnypilot/sunnypilot into master-new 2025-04-15 18:02:29 +02:00
Jason Wen 3615b1a203 DM: Enforce monitoring of MADS state in driver monitoring (#818)
* DM: Enforce monitoring of MADS state in driver monitoring

Added `selfdriveStateSP.mads.enabled` to track MADS engagement. This ensures monitoring logic accounts for MADS alongside the existing selfdrive state checks, improving feature integration and event handling.

* how
2025-04-14 14:50:21 -04:00
infiniteCable2 eaa985f49e Merge branch 'master-new' of https://github.com/sunnypilot/sunnypilot into master-new 2025-04-13 20:51:07 +02:00
Jason Wen 43eefed514 Hyundai longitudinal: Parse lead info for camera-based SCC platforms (#809)
* Hyundai longitudinal: Parse lead info for camera-based SCC platforms

* fix

* update

* bump

* update tests

* lol why is this here

* bump

---------

Co-authored-by: DevTekVE <devtekve@gmail.com>
Co-authored-by: Discountchubbs <159560811+Discountchubbs@users.noreply.github.com>
2025-04-12 12:22:42 -04:00
Nayan f1d703e6e4 Device: Customizable Max Time Offroad (#796)
* Max Time Offroad

* Refactor & Fix param

* Error Handling

* rename SP variable

* Update selfdrive/ui/sunnypilot/qt/widgets/controls.h

Co-authored-by: DevTekVE <devtekve@gmail.com>

* Update selfdrive/ui/sunnypilot/qt/widgets/controls.h

Co-authored-by: DevTekVE <devtekve@gmail.com>

* Update selfdrive/ui/sunnypilot/qt/widgets/controls.h

Co-authored-by: DevTekVE <devtekve@gmail.com>

* Update selfdrive/ui/sunnypilot/qt/widgets/controls.h

Co-authored-by: DevTekVE <devtekve@gmail.com>

* Update selfdrive/ui/sunnypilot/qt/widgets/controls.cc

Co-authored-by: DevTekVE <devtekve@gmail.com>

* Update selfdrive/ui/sunnypilot/qt/offroad/settings/lateral/max_time_offroad.h

Co-authored-by: DevTekVE <devtekve@gmail.com>

* Update selfdrive/ui/sunnypilot/qt/offroad/settings/lateral/max_time_offroad.cc

Co-authored-by: DevTekVE <devtekve@gmail.com>

* UI layout changes for better alignment

selector is not big enough -> make it bigger ;)

OptionControlSP now includes a QMap argument to allow actual values to be set in param directly

* Rebase & resolve reviews

* change default to be closer to OP default

* me dumb

* MaxTimeOffroad: Add support for 30h limit and improve label formatting

* power_monitoring: Refactor MaxTimeOffroad parameter handling for clarity

* test: Add unit tests for MaxTimeOffroad parameter handling

* power_monitoring: Update MaxTimeOffroad handling to use seconds and improve shutdown logic

* power_monitoring: Improve exception handling and remove redundant shutdown check for MaxTimeOffroad

---------

Co-authored-by: DevTekVE <devtekve@gmail.com>
Co-authored-by: Jason Wen <haibin.wen3@gmail.com>
2025-04-12 16:33:17 +02:00
infiniteCable a6e236a3f9 Update disturbance_controller.py 2025-04-12 09:04:26 +02:00
infiniteCable 18ce02da9c Update settings.cc 2025-04-11 23:37:48 +02:00
infiniteCable 0f9270547c Update controlsd.py 2025-04-11 23:33:23 +02:00
Nayan 92707e8912 UI: Device & Sunnylink Panels - Standardize push button size & alignment (#806)
* layout adjustments

* sunnylink_panel

---------

Co-authored-by: Jason Wen <haibin.wen3@gmail.com>
2025-04-11 22:21:49 +02:00
Jason Wen 6a00ac9cd0 Radard: vision-based yRel for Hyundai single-lead systems (#805)
Introduced processing for custom yRel values using HyundaiFlagsSP when the enhanced SCC flag is enabled. Updated `radard` to handle `CarParamsSP` and make necessary adjustments for Hyundai vehicles with specific SCC configurations.
2025-04-11 14:28:59 -04:00
infiniteCable 000b47c6c8 Update settings.cc 2025-04-11 20:11:36 +02:00
infiniteCable a08060ea26 Update settings.cc 2025-04-11 19:38:52 +02:00
infiniteCable 0d51d6c475 Update controlsd.py 2025-04-11 19:36:22 +02:00
infiniteCable c4a23447da Update disturbance_controller.py 2025-04-10 23:00:58 +02:00
Nayan 0a2fd7bd61 UI: Update AbstractControlSP_SELECTOR and OptionControlSP (#800)
* controls

* Adjust label width dynamically based on layout type.

Updated the label's fixed width to be conditional on the layout type, improving adaptability for different inline layouts. Additionally, corrected indentation in the width calculation loop for consistency.

* Refactor OptionControlSP to improve parameter value handling and encapsulate logic in dedicated methods

* Refactor getParamValue to return an integer and ensure value is updated correctly in button click handler

* Trying to unify a bit the logic. still WIP

* Reducing a bit the change footprint

* Refactor spacing item handling to prevent duplicate insertion and improve layout management

---------

Co-authored-by: DevTekVE <devtekve@gmail.com>
2025-04-10 15:20:41 -04:00