-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Toyota: Prevent EPS fault during unwind after sharp turn #2859
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
base: master
Are you sure you want to change the base?
Toyota: Prevent EPS fault during unwind after sharp turn #2859
Conversation
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.
Thanks for contributing to opendbc! In order for us to review your PR as quickly as possible, check the following:
- Convert your PR to a draft unless it's ready to review
- Read the contributing docs
- Before marking as "ready for review", ensure:
- the goal is clearly stated in the description
- all the tests are passing
- include a route or your device' dongle ID if relevant
8a89ec7 to
aa7dfc2
Compare
* 2019-2021 RAV4 * 2021-2023 RAV4 Prime * 2021-2023 Sienna These Toyota models can experience a rare EPS fault. After a sharp, low-speed manual turn the human lets go of the wheel. During or shortly after the unwind the EPS faults. It can be difficult to reproduce. PR #24067 "Toyota: remove 100°/sec steering lockout" attempted to prevent this high angle rate EPS fault by cutting torque if more than 18 frames. I found reducing this threshold by just one frame fixes the problem.
aa7dfc2 to
92ce0c3
Compare
|
I'm convinced this is correct. Totally solves the problem for my Toyota. But it can be exceedingly difficult to reproduce. I think you folks have access to all the logs to be able to verify this EPS fault is happening to other Toyotas and what threshold they are experiencing? Please let me know if you really need me to get logs from the other Toyota models who reported the same issue. It's been difficult to get them to cooperate because they don't currently understand Connect, are not subscribed so they lack history older than three days, or it's difficult to reproduce the fault. The combination of these factors has made it difficult to get logs from the other users. |
…0degree_hack_minus_one
jyoung8607
left a comment
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.
For each route, it looks like the original mitigation fired, but slightly too late for the EPS's liking.
The original mitigation from commaai/openpilot#24067 was done over three years ago, and predates the breakup of controlsd into three separate services. As a consequence of that breakup, there's an extra frame of reaction time added to events like this. If Shane found the exact threshold back then, it logically follows we need to take out another frame here.
@wtogami: Thanks for diagnosing this!
@sshane: LGTM, but touches to release safety modes need comma review.
Representative snapshot of the event -- all three were about the same.
|
Update: RAV4 2022 Routes |
TOYOTA_RAV4_PRIME(logs below)TOYOTA_RAV4_TSS2_2022(logs below)TOYOTA_RAV4_TSS2(3 reports, no logs)TOYOTA_SIENNA_4TH_GEN(2 reports, no logs)These Toyota models can experience a rare EPS fault.
After a sharp, low-speed manual turn the human lets go of the wheel. During or shortly after the unwind the EPS faults. It can be difficult to reproduce.
PR #24067 "Toyota: remove 100°/sec steering lockout" attempted to prevent this high angle rate EPS fault by cutting torque if more than 18 frames. I found reducing this threshold by just one frame fixes the problem.
RAV4 Prime Routes
RAV4 2022 Routes