Commit Graph

15408 Commits

Author SHA1 Message Date
Jason Wen 532b671bfb get them out 2025-05-19 15:34:58 -04:00
Jason Wen 44fe1b8128 get them out 2025-05-19 15:25:09 -04:00
Jason Wen 3153292786 Merge remote-tracking branch 'sunnypilot/sunnypilot/master-new' into mads-rivian
# Conflicts:
#	selfdrive/ui/sunnypilot/qt/offroad/settings/lateral/mads_settings.h
#	sunnypilot/mads/helpers.py
2025-05-19 14:28:26 -04:00
Jason Wen ddfb7420ca MADS: prerequisite for partial platform support (#938)
* MADS: prerequisite for partial platform support

* ui: support specific button enabled selections for `ButtonParamControlSP`

Replaced setDisabledSelectedButton with setEnableSelectedButtons for improved flexibility. The new implementation allows enabling multiple buttons based on a given list and maintains clarity in handling button states. This enhances functionality and aligns with better code practices.

* don't think we need to

* update
2025-05-19 14:25:26 -04:00
Jason Wen a6eba52791 ui: Add utility function to check if a brand is in a list (#939)
* ui: Add utility function to check if a brand is in a list

Introduces `isBrandInList` to simplify checking if a given brand exists within a list of strings. This improves code clarity and avoids repetitive implementations for the same logic.

* Revert "ui: Add utility function to check if a brand is in a list"

This reverts commit 26cde3a73e.

* ui: Add utility function to check if a brand is in a list
2025-05-19 13:08:53 -04:00
Jason Wen bc17541a13 Revert "not here"
This reverts commit 53271b9428.
2025-05-19 12:57:46 -04:00
Jason Wen 53271b9428 not here 2025-05-19 12:55:38 -04:00
Jason Wen c4d202c6bb ui: support selected button enabled for ButtonParamControlSP (#937)
ui: support specific button enabled selections for `ButtonParamControlSP`

Replaced setDisabledSelectedButton with setEnableSelectedButtons for improved flexibility. The new implementation allows enabling multiple buttons based on a given list and maintains clarity in handling button states. This enhances functionality and aligns with better code practices.
2025-05-19 11:49:44 -04:00
Jason Wen 5667a9d994 just rivian 2025-05-19 10:52:47 -04:00
Jason Wen 9bfacdd95d one place for limited platforms 2025-05-19 07:17:24 -04:00
Jason Wen db9d44f353 dynamic description for mads toggle 2025-05-19 06:56:31 -04:00
Jason Wen 607c11e86d some dynamic checks 2025-05-19 06:41:52 -04:00
Jason Wen 0bd603c2f8 bring them back 2025-05-19 01:33:12 -04:00
Jason Wen 19f2897a77 test only 2025-05-19 01:27:18 -04:00
Jason Wen a6e2e1d7b3 Merge remote-tracking branch 'sunnypilot/sunnypilot/master-new' into mads-tesla
# Conflicts:
#	opendbc_repo
#	selfdrive/ui/sunnypilot/qt/offroad/settings/lateral/mads_settings.cc
#	selfdrive/ui/sunnypilot/qt/offroad/settings/lateral/mads_settings.h
#	sunnypilot/mads/helpers.py
#	sunnypilot/mads/mads.py
2025-05-19 01:26:56 -04:00
Jason Wen ebe56410d3 MADS: Steering Mode on Brake Pedal Press (#924)
* MADS: Steering Mode on Brake Pedal Press

* bump

* bump

* descriptions

* bump

* bump

* no tesla or rivian yet

* codecov v5

* Revert "codecov v5"

This reverts commit a347e3fb27.

* cleanup

* refactor description

* sync name

* fix

* make sure we don't allow if brake was already being pressed

* fix

* diff

* fix description

* in another PR
2025-05-19 01:25:11 -04:00
Jason Wen d9e5bc52b4 try this 2025-05-19 00:36:22 -04:00
Jason Wen aa313c5fd0 this ain't right 2025-05-18 23:14:40 -04:00
Jason Wen 147811784d extra 2025-05-18 22:11:46 -04:00
Jason Wen 185af83afa allow LKAS tx at all times with MADS 2025-05-18 22:04:50 -04:00
Jason Wen 37881837b3 proper ui! 2025-05-18 12:06:05 -04:00
Jason Wen f31f5f9683 no longer needed 2025-05-18 12:05:53 -04:00
Jason Wen 82832a0cd9 Merge remote-tracking branch 'sunnypilot/sunnypilot/mads-disengage-on-brake' into mads-tesla
# Conflicts:
#	opendbc_repo
#	selfdrive/ui/sunnypilot/qt/offroad/settings/lateral/mads_settings.cc
#	selfdrive/ui/sunnypilot/qt/offroad/settings/lateral/mads_settings.h
#	sunnypilot/mads/helpers.py
#	sunnypilot/mads/mads.py
2025-05-18 11:15:18 -04:00
Jason Wen a0dfa931bb Merge remote-tracking branch 'sunnypilot/sunnypilot/master-new' into mads-disengage-on-brake 2025-05-18 10:14:42 -04:00
Jason Wen a93e788401 Reapply "MADS: wrongCarMode alert only with selfdrive enable (#931)" (#933)
* Revert "MADS: `wrongCarMode` alert only with selfdrive enable (#931)"

This reverts commit 6d516a7704.

* Reapply "MADS: `wrongCarMode` alert only with selfdrive enable (#931)"

This reverts commit c9487597e4.

* Reapply "MADS: `wrongCarMode` alert only with selfdrive enable (#931)"

This reverts commit c9487597e4.
2025-05-18 10:14:03 -04:00
Jason Wen b14e9e58a1 make sure we don't allow if brake was already being pressed 2025-05-18 10:13:56 -04:00
Jason Wen 0a65882776 fix 2025-05-18 10:08:20 -04:00
Jason Wen 3aa9ddd3c7 Revert "MADS: wrongCarMode alert only with selfdrive enable (#931)" (#932)
This reverts commit 6d516a7704.
2025-05-18 10:02:50 -04:00
Jason Wen ff3b0d821f sync name 2025-05-18 01:52:14 -04:00
Jason Wen 29d984e42f refactor description 2025-05-18 01:49:00 -04:00
Jason Wen 72a462e82d cleanup 2025-05-18 01:48:19 -04:00
Jason Wen 8df8012f46 Merge remote-tracking branch 'sunnypilot/sunnypilot/master-new' into mads-disengage-on-brake 2025-05-18 00:19:36 -04:00
Jason Wen 6d516a7704 MADS: wrongCarMode alert only with selfdrive enable (#931)
* MADS: Refactor Unified Engagement Mode

* init

* bring back pedal pressed event while trying to engage long

* MADS: prep for refactor

* no longer

* this is cleaner?

* in another pr

* Revert "in another pr"

This reverts commit 31aec8a7aa.

* less

* rename

* type hint
2025-05-18 00:18:41 -04:00
Jason Wen 4dbabf4e24 MADS: retain pedalPressed alert only (#928)
* MADS: Refactor Unified Engagement Mode

* init

* bring back pedal pressed event while trying to engage long

* MADS: prep for refactor

* no longer

* this is cleaner?

* in another pr
2025-05-17 23:34:55 -04:00
Jason Wen 80679b74e6 MADS: prep for refactor (#930)
* MADS: prep for refactor

* no longer
2025-05-17 23:07:05 -04:00
Discountchubbs b92d717f2f Hyundai: add more FW versions to enable radar tracks debug script (#804)
* fw version for my car, and added scc radar module firmware to enable radar points

* bump points

* bump

---------

Co-authored-by: DevTekVE <devtekve@gmail.com>
Co-authored-by: Jason Wen <haibin.wen3@gmail.com>
2025-05-17 12:33:18 -04:00
Jason Wen 26d4ab589f Revert "codecov v5"
This reverts commit a347e3fb27.
2025-05-17 11:31:04 -04:00
Jason Wen a347e3fb27 codecov v5 2025-05-17 11:22:06 -04:00
Jason Wen e519604bf1 Merge remote-tracking branch 'sunnypilot/sunnypilot/master-new' into mads-disengage-on-brake
# Conflicts:
#	sunnypilot/mads/mads.py
2025-05-17 11:16:04 -04:00
Jason Wen 7565dd2545 MADS: Refactor Unified Engagement Mode (#927) 2025-05-17 10:34:38 -04:00
Jason Wen 52dc4141c5 MADS: evaluate brakePressed and regenBraking for Pause Lateral mode (#926)
* simplify

* MADS: evaluate brakePressed and regenBraking for Pause Lateral mode

* nah
2025-05-17 10:09:50 -04:00
Jason Wen 89b4ac76ab no tesla or rivian yet 2025-05-16 15:46:21 -04:00
Jason Wen f3f6626dc8 bump 2025-05-16 15:36:57 -04:00
Jason Wen 5a80c8947f bump 2025-05-16 15:26:43 -04:00
Jason Wen 8242e0f8e1 descriptions 2025-05-16 14:53:30 -04:00
Jason Wen 19be7afde5 bump 2025-05-16 13:28:50 -04:00
Jason Wen f06e86a137 bump 2025-05-16 12:21:44 -04:00
Jason Wen 60cf205559 MADS: Steering Mode on Brake Pedal Press 2025-05-16 11:41:50 -04: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
Jason Wen ea3e674da0 Merge remote-tracking branch 'sunnypilot/sunnypilot/master-new' into mads-tesla
# Conflicts:
#	opendbc_repo
#	sunnypilot/mads/mads.py
2025-05-15 14:19:22 -04:00