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

Lexus: closed brake loop #1392

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft

Lexus: closed brake loop #1392

wants to merge 2 commits into from

Conversation

sshane
Copy link
Contributor

@sshane sshane commented Oct 21, 2024

Will test after Bronco

@github-actions github-actions bot added car related to opendbc/car/ toyota labels Oct 21, 2024
@@ -178,7 +178,7 @@ def update(self, CC, CS, now_nanos):
pcm_accel_cmd = actuators.accel
self.permit_braking = True

pcm_accel_cmd = clip(pcm_accel_cmd, self.params.ACCEL_MIN, self.params.ACCEL_MAX)
pcm_accel_cmd = clip(pcm_accel_cmd, self.params.ACCEL_MIN_LIMIT, self.params.ACCEL_MAX)
Copy link
Contributor Author

@sshane sshane Oct 21, 2024

Choose a reason for hiding this comment

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

The accel from openpilot is clipped to ACCEL_MIN, so we allow some tolerance so we can request max brakes (-3.5 m/s^2) if the compensation is slightly wrong

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

Successfully merging this pull request may close these issues.

1 participant