Skip to content

cruise: preserve Hyundai set speed across MAIN - #38768

Open
NSK-syam wants to merge 1 commit into
commaai:masterfrom
NSK-syam:hyundai-stock-button-logic
Open

cruise: preserve Hyundai set speed across MAIN#38768
NSK-syam wants to merge 1 commit into
commaai:masterfrom
NSK-syam:hyundai-stock-button-logic

Conversation

@NSK-syam

@NSK-syam NSK-syam commented Sep 4, 2026

Copy link
Copy Markdown

Fixes #30950.

Depends on commaai/opendbc#3719.

When MAIN makes cruise unavailable on a non-PCM Hyundai, preserve the initialized openpilot set speed. This matches the stock behavior implemented in the dependent opendbc PR, where MAIN gates availability without erasing the remembered speed.

The existing reset behavior is unchanged for PCM cruise and every non-Hyundai brand.

Tests

  • 6 focused VCruiseHelper tests passed, including the Hyundai MAIN regression test
  • ruff passed on both changed Python files

@github-actions github-actions Bot added the car vehicle-specific label Sep 4, 2026
@github-actions

github-actions Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Process replay diff report

Replays driving segments through this PR and compares the behavior to master.
Please review any changes carefully to ensure they are expected.

✅ 0 changed, 66 passed, 0 errors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

car vehicle-specific

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Match stock Hyundai button logic

1 participant