Commit Graph

15398 Commits

Author SHA1 Message Date
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
Jason Wen 3a6491e23a MADS: allow transition from Paused to Enabled at all times (#910)
* MADS: silentBrakeHold should not exit control

* no longer

* allow transition from paused to enabled when long is allowed
2025-05-14 17:46:55 -04:00
Nayan 5c9ce2a042 ui: display actual fingerprint name with auto-fingerprint (#908)
* use platform directly

* Revert "use platform directly"

This reverts commit b71c315d30.

* update brand from platform package
2025-05-10 23:35:02 -04:00
Jason Wen 3a4c74b67d Revert "ui: display actual fingerprint name with auto-fingerprint" (#907)
Revert "ui: display actual fingerprint name with auto-fingerprint (#906)"

This reverts commit 921b51f56f.
2025-05-10 21:47:24 -04:00
Nayan 4ceb1ecd19 ui: fix description margins on AbstractControlSP_SELECTOR (#902)
fix margins for description on AbstractControlSP_SELECTOR

Co-authored-by: Jason Wen <haibin.wen3@gmail.com>
2025-05-10 19:10:15 -04:00
Nayan 921b51f56f ui: display actual fingerprint name with auto-fingerprint (#906)
use platform directly

Co-authored-by: Jason Wen <haibin.wen3@gmail.com>
2025-05-10 19:01:37 -04:00
Jason Wen 6c1edca806 MADS: use low velocity threshold for silent wrong gear checks (#901)
* MADS: use low velocity threshold for silent wrong gear checks

* higher
2025-05-10 18:51:37 -04:00
Jason Wen bf6123c4ad Reapply "Hyundai: custom longitudinal tuning" (#894)
* Reapply "Hyundai: custom longitudinal tuning" (#892)

This reverts commit 68c593db5f.

* fix panel behavior

* dynamic description

* try to merge and use the same scrollview

* fix for all to update

* dynamic update and fix description

* minimize changes for all brands

* init

* minimize changes for all brands

* more

* even less diff

* more

* even less diff

* more less

* wow srsly

* more less

* wow srsly
2025-05-10 12:58:08 -04:00
Jason Wen 8d06444bdd ui: consolidate panel updates at a single location (#904)
* init

* minimize changes for all brands

* more

* even less diff

* more less

* wow srsly
2025-05-10 12:46:02 -04:00
Jason Wen 08efc252ec ui: fix supported brand settings list (#905) 2025-05-10 12:34:58 -04:00
DevTekVE 6142a52de7 models: aligning naming on modeld_v2 with upstream naming (#903)
Refactor variable names for clarity in 20Hz model logic.

Renamed `full_features_20Hz` to `full_features_buffer` and `desire_20Hz` to `full_desire` for better readability and consistency. This improves code maintainability and aligns variable names with their intended purpose.
2025-05-10 09:46:54 +02:00