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

Safety for Tesla Model 3 / Model Y #2036

Open
wants to merge 36 commits into
base: master
Choose a base branch
from
Open

Safety for Tesla Model 3 / Model Y #2036

wants to merge 36 commits into from

Conversation

lukasloetkolben
Copy link
Contributor

@lukasloetkolben lukasloetkolben commented Sep 21, 2024

Add support for Tesla Model 3/Y

Prerequisite of: commaai/opendbc#1263

@lukasloetkolben lukasloetkolben changed the title Tesla Model 3 Safety Safety for Tesla Model 3 / Model Y Sep 21, 2024
@lukasloetkolben lukasloetkolben marked this pull request as ready for review October 14, 2024 04:03
@@ -950,9 +950,9 @@ def test_not_allow_user_brake_when_moving(self, _user_brake_msg=None, get_brake_
_user_brake_msg = self._user_brake_msg

# Brake was already pressed
self._rx(self._vehicle_moving_msg(self.STANDSTILL_THRESHOLD))
Copy link
Member

@gregjhogan gregjhogan Oct 15, 2024

Choose a reason for hiding this comment

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

This was moved to match the ordering of test_allow_user_brake_at_zero_speed() and fixes this test failing due to the vehicle moving message being the same message as the cruise state message, so when we set the vehicle in motion it also calls pcm_cruise_check which changes controls_allowed.

* - match "vehicle_moving" with opendbc
- allow to cancel

* remove comment

* update _vehicle_moving_msg

* remove redundant condition
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.

2 participants