-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Toyota: use torque control for Japanese-made 2023 RAV4 #29896
Conversation
Pending a few test routes, is this how you would do it @adeebshihadeh, or split it up into 4 platforms for the ICE and hybrid? |
selfdrive/car/toyota/interface.py
Outdated
if fw.ecu == "eps" and not fw.fwVersion == b'8965B42371\x00\x00\x00\x00\x00\x00': | ||
ret.steerControlType = SteerControlType.torque | ||
|
||
if ret.steerControlType == SteerControlType.angle: |
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.
these two if's with the same condition in a row is pretty confusing. can you make this more readable?
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.
Made it one if statement.
No description provided.