Remove carParams.mass - #3665
Open
adeebshihadeh wants to merge 1 commit into
Open
Conversation
Contributor
Car behavior reportReplays driving segments through this PR and compares the behavior to master. ✅ No changes detected |
adeebshihadeh
force-pushed
the
rm-mass
branch
3 times, most recently
from
August 9, 2026 00:08
d1993dd to
2257094
Compare
mass cancels out of the bicycle model since tire stiffness and rotational inertia both scale with it. store stiffness/inertia per unit mass (divided by the reference Civic mass) so mass disappears from the vehicle model entirely instead of substituting a fake mass constant. carParams.mass is still set, just no longer consumed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CarParams.massonly feeds the lateral bicycle-model stack:VehicleModelinputs, equationsC ∝ mand inertia asI ∝ m; the equations useC/mandC/I.paramsd,CarKalmanC/mandC/Ibicycle-model terms.m/C_rear, whileC_rear ∝ m.This renames the field to
unitMassand fixes it at1 kg. Tire stiffness remains inN/rad, rotational inertia remains inkg*m², and the standard equations and behavior are unchanged.Other options:
Consumer updates: openpilot #38594, xx #6940