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

Subaru Pre-Global: Reverse driver torque signal for certain platforms #1648

Merged
merged 11 commits into from
Nov 8, 2023

Conversation

sunnyhaibin
Copy link
Contributor

@sunnyhaibin sunnyhaibin commented Sep 5, 2023

This PR resolves permanent steering faults when the user overrides steering and then releases the steering wheel. Thanks to @martinl for this fix from subaru-community.

Route ID: b81cc3ea44acd372|2023-09-06--15-36-44

Affected Platforms

  • Subaru Forester 2017-18
  • Subaru Outback 2015-17 2018-2019

Related

@sshane
Copy link
Contributor

sshane commented Sep 6, 2023

We should always add a test for new safety params. This wasn't caught because it's behind dashcamOnly, correct?

@sshane sshane added the bugfix label Sep 12, 2023
FLAGS = Panda.FLAG_SUBARU_PREGLOBAL_REVERSED_DRIVER_TORQUE

def _torque_driver_msg(self, torque):
return super()._torque_cmd_msg(-torque)
Copy link
Contributor

Choose a reason for hiding this comment

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

@jnewb1 the tests don't fail if you remove the sign from here

Copy link
Contributor

Choose a reason for hiding this comment

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

fixed by using correct DBC

@jnewb1 jnewb1 requested a review from adeebshihadeh November 7, 2023 20:06
@jnewb1 jnewb1 merged commit 3f25cca into commaai:master Nov 8, 2023
8 checks passed
@sunnyhaibin sunnyhaibin deleted the subaru-pg-reversed-driver-torque branch November 28, 2023 05:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix car safety vehicle-specific safety code cleanup
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants