Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hyundai CAN-FD: Panda safety config assignments cleanup #29733

Merged
merged 16 commits into from
Dec 14, 2023

Conversation

sunnyhaibin
Copy link
Contributor

@sunnyhaibin sunnyhaibin commented Aug 31, 2023

  • Consolidate safety mode assignments for CAN and CAN-FD platforms
  • Unify HDA2-related flag and safety config assignments
  • Consolidate camera SCC safety config assignments

Prerequisite of

@sunnyhaibin sunnyhaibin changed the title Hyundai CAN-FD: Interface small cleanup Hyundai CAN-FD: Panda safety config assignments cleanup Aug 31, 2023
@sunnyhaibin sunnyhaibin marked this pull request as ready for review August 31, 2023 15:57
@github-actions github-actions bot added car vehicle-specific hyundai labels Nov 16, 2023
@adeebshihadeh adeebshihadeh merged commit 8009b11 into commaai:master Dec 14, 2023
22 checks passed
Comment on lines +309 to +310
if ret.flags & HyundaiFlags.CANFD_CAMERA_SCC or candidate in CAMERA_SCC_CAR:
ret.safetyConfigs[-1].safetyParam |= Panda.FLAG_HYUNDAI_CAMERA_SCC
Copy link
Contributor

@sshane sshane Dec 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should only have one source of truth for this, why two? Combining the CAN and CAN FD logic here is slightly confusing, and there's no reason why it's different for both

We just make it common for CAN and CAN FD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
car vehicle-specific hyundai
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants