8000 Tesla: fix disengagement without stalk by lukasloetkolben · Pull Request #2182 · commaai/opendbc · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Tesla: fix disengagement without stalk #2182

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lukasloetkolben
Copy link
Contributor
@lukasloetkolben lukasloetkolben commented May 4, 2025

On Tesla models without a cruise control 8000 stalk, the steering wheel scroll wheel is used to engage and disengage.
Unlike the stalk, pressing the scroll wheel button doesn't change the DI_state. This meant that pressing the scroll wheel button currently does not disengage openpilot, whenever openpilot's longitudinal control is enabled

When the scroll wheel button is pressed to cancel ACC, DAS_accState becomes 13.
We have to listen to DAS_accState sent by the autopilot computer and add it to the cancel condition, to ensure that openpilot correctly disengages on a scroll wheel button press.

The screenshot shows several button presses, but the DI_State does not change.
Bildschirmfoto 2025-05-04 um 12 39 51

route: f15cb91e37913f92/00000002--ee7e5b52c1

We need to make sure that ACC_CANCEL_GENERIC_SILENT (state 13) is not sent by the autopilot computer in other scenarios where we don't want to disengage.

@github-actions github-actions bot added car related to opendbc/car/ tesla labels May 4, 2025
@sshane
Copy link
Contributor
sshane commented May 5, 2025

FSD always sets this value to 13 BTW even while engaged (not sure how that works), so we need to check that it doesn't ever set it to 13 for other reasons as you suspected.

@sshane
Copy link
Contributor
sshane commented May 5, 2025

This is very confusing, can you get a stock route with Autopilot so we can compare with angle control being active? I don't understand when it's enabled vs. disabled here since it never falls nvm I see now

image

@lukasloetkolben
Copy link
Contributor Author

This is a stock route with Autopilot: f15cb91e37913f92/00000006--3fc2538b96

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

Successfully merging this pull request may close these issues.

2 participants
0