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

Toyota: Fix RAV4 Prime mass and wheelbase #1354

Merged
merged 2 commits into from
Oct 8, 2024

Conversation

hdoublearp
Copy link
Contributor

@github-actions github-actions bot added car related to opendbc/car/ toyota labels Oct 6, 2024
@jyoung8607 jyoung8607 self-assigned this Oct 6, 2024
@jyoung8607
Copy link
Collaborator

You seem to be correct on the mass/wheelbase. Your link is broken, but I rechecked online sources, and yours are closer (4,372 lbs and 105.9 inches/2.68mm). I checked this on Edmunds before merging so I must have gotten the wrong RAV4 variant.

The steerRatio needs to stay where it's at. The manufacturer will tell you the gearing ratio inside the EPS, but openpilot needs to know about actual wheel/tire movement, which includes some other suspension effects. For this, we take the value from the online params learner once it looks mostly stable. If we leave the manufacturer value in there, the car will drive wrongly/differently for the first 20 or 30 minutes of driving until the online params learner can fix things.

New reference from here: https://www.motortrend.com/reviews/2021-toyota-rav4-prime-first-test-review/

If you'll slightly tweak the mass, and round the wheelbase to 2.68mm (a standard convention in this and other vehicle ports), and revert the steerRatio change, I'll go ahead and merge. Marking as Draft pending those changes.

@jyoung8607 jyoung8607 marked this pull request as draft October 7, 2024 17:29
@jyoung8607 jyoung8607 changed the title Fix curb weight, steering ratio, wheelbase for RAV4 Prime Toyota: Fix RAV4 Prime mass and wheelbase Oct 7, 2024
@hdoublearp
Copy link
Contributor Author

This makes sense to me!

It's a shame Toyota didn't keep those deep links around for long.

Will implemented your suggestion and mark for review. Thanks!

Rounding up wheelbase to two decimal
Updating mass to be more accurate with real world measurement
Reverting steering ratio, to account for the learner behavior in OpenPilot; as described in the PR comment history
@hdoublearp hdoublearp marked this pull request as ready for review October 8, 2024 00:27
@jyoung8607 jyoung8607 merged commit c78d9bb into commaai:master Oct 8, 2024
4 checks passed
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.

2 participants