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

Tesla mads fixes #32

Open
wants to merge 4 commits into
base: SP-165-tesla-port
Choose a base branch
from

Conversation

carleeno
Copy link

@carleeno carleeno commented Aug 6, 2024

Required for sunnypilot/sunnypilot#392

This is a prereq to sending a direct ACC cancel command via das_control even when using stock TACC, eliminating the need to inject fake right-stalk presses to cancel (which causes annoying alerts due to race conditions with the real stalk signal)

This pass-through is necessary to allow sending only an ACC cancel command even when not normally passing long control messages.

Additionally this changes the MADS enablement to activeTouchPoints == 3 (3-finger tap), as overloading the stalk with acc and mads was too confusing and buggy.

Safety considerations:

  • This ensures we do not send a conflicting message when Tesla's AEB is active
  • When acc_state is set to 13, acceleration and speed values are ignored, as 13 is the acc_cancel value

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

Successfully merging this pull request may close these issues.

1 participant