-
Notifications
You must be signed in to change notification settings - Fork 1.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
Rivian: add Safety #1753
base: master
Are you sure you want to change the base?
Rivian: add Safety #1753
Conversation
Can you check the failing safety tests? |
Yes, I am currently traveling. I will have a look this evening. |
add _vehicle_moving_msg
add _vehicle_moving_msg
int torque_driver_new = ((((GET_BYTE(to_push, 2) << 4) | (GET_BYTE(to_push, 3) >> 4)) * 0.1) - 205); | ||
update_sample(&torque_driver, torque_driver_new); |
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.
driver_torque_allowance
is an integer, but you're converting this to a very small float (that's getting truncated to an int with update_sample), are you sure this is doing anything?
we probably want to undo the factor (but keep the offset) and process as a raw int in openpilot and opendbc safety
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.
so subtract 205/0.1=2050
here
af56078
to
ba6111a
Compare
No description provided.