-
Notifications
You must be signed in to change notification settings - Fork 804
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
Subaru Pre-Global: Reverse driver torque signal for certain platforms #1648
Conversation
We should always add a test for new safety params. This wasn't caught because it's behind dashcamOnly, correct? |
FLAGS = Panda.FLAG_SUBARU_PREGLOBAL_REVERSED_DRIVER_TORQUE | ||
|
||
def _torque_driver_msg(self, torque): | ||
return super()._torque_cmd_msg(-torque) |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
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
2015-172018-2019Related