Skip to content

Std cargo refactor#714

Closed
dek3rr wants to merge 2 commits intocommaai:develfrom
dek3rr:cargo
Closed

Std cargo refactor#714
dek3rr wants to merge 2 commits intocommaai:develfrom
dek3rr:cargo

Conversation

@dek3rr
Copy link
Copy Markdown

@dek3rr dek3rr commented Jun 25, 2019

remove mass unit ambiguities

@rbiasini
Copy link
Copy Markdown
Contributor

Nice. What about moving STD_CARGO_KG to selfdrive/car/__init__.py?

@dek3rr
Copy link
Copy Markdown
Author

dek3rr commented Jun 25, 2019

what do you think about moving hardcoded civic parameters into a class and adding functions for scaling tirestiffness and rotational inertia?

@rbiasini
Copy link
Copy Markdown
Contributor

yep, that would make sense, as long as such class has no dependencies, goes in init and it's super simple.

Thanks for the STD_CARGO refactor

@rbiasini
Copy link
Copy Markdown
Contributor

merged internally due to conflicts. Will be in next release!

@rbiasini rbiasini closed this Jun 25, 2019
@dek3rr dek3rr deleted the cargo branch June 27, 2019 01:49
aivordin pushed a commit to aivordin/openpilot that referenced this pull request Mar 29, 2025
Convert safe_desired_curvature to float before returning.

This ensures the returned value is explicitly a float, avoiding an issue when serializing it on capnp as it does not recognize numpy.float

Co-authored-by: Jason Wen <haibin.wen3@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants