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

safety tests: fix driver torque override test #1698

Merged
merged 5 commits into from
Oct 25, 2023

Conversation

sshane
Copy link
Contributor

@sshane sshane commented Oct 25, 2023

Noticed in #1695

This asserts that above the driver torque allowance, torque command messages are blocked. However here, they were blocked due to the sign of the torque command flipping when sign is 1 (when sign is -1, everything was tested properly), since self.assertFalse(self._tx(self._torque_cmd_msg(-self.MAX_TORQUE))) doesn't multiply by sign

Now we test 2x the range

This reverts commit b29e09c.
@sshane sshane changed the title this was failing for the wrong reason safety tests: fix driver torque override test Oct 25, 2023
@sshane sshane merged commit f8c2041 into master Oct 25, 2023
2 checks passed
@sshane sshane deleted the fix-broken-driver-torque-test branch October 25, 2023 05:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant