8000 Tesla: fix convenience blinker by sshane · Pull Request #2057 · commaai/opendbc · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Tesla: fix convenience blinker #2057

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

Merged
merged 1 commit into from
Mar 27, 2025
Merged

Conversation

sshane
Copy link
Contributor
@sshane sshane commented Mar 27, 2025

The existing signal would only describe the stalk position if the auto-cancel blinker option was disabled, in effect it would be a single frame. This now captures all states properly

@sshane sshane requested a review from Copilot March 27, 2025 08:34
Copy link
Contributor
@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes the convenience blinker behavior for Tesla models by updating the conditions that determine if the left and right blinkers are active.

  • Updated left blinker condition to capture multiple blinking states
  • Updated right blinker condition to capture multiple blinking states
Comments suppressed due to low confidence (2)

opendbc/car/tesla/carstate.py:74

  • [nitpick] Consider defining constants or an enumeration for the blinking state values (1 and 2) to improve readability and maintainability.
ret.leftBlinker = cp_party.vl["UI_warning"]["leftBlinkerBlinking"] in (1, 2)

opendbc/car/tesla/carstate.py:75

  • [nitpick] Consider defining constants or an enumeration for the blinking state values (1 and 2) to improve the code clarity for right blinker logic.
ret.rightBlinker = cp_party.vl["UI_warning"]["rightBlinkerBlinking"] in (1, 2)

@github-actions github-actions bot added car related to opendbc/car/ tesla labels Mar 27, 2025
@sshane sshane merged commit 2ed580d into master Mar 27, 2025
8 checks passed
@sshane sshane deleted the tesla-fix-blinkers-without-auto-cancel branch March 27, 2025 08:35
@sshane sshane mentioned this pull request Mar 27, 2025
12 tasks
Edison-CBS pushed a commit to Edison-CBS/opendbc that referenced this pull request Apr 5, 2025
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.

1 participant
0