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: sample_t is not fully reset on safety mode init #1376

Merged
merged 21 commits into from
Oct 3, 2023
Merged

Conversation

sshane
Copy link
Contributor

@sshane sshane commented Apr 28, 2023

The safety mode set just sets the min and max, it doesn't clear out the values array, so on rx of one new measurement, it will use the previously stored values to update the sample_t min and max

this is just a test to catch it, moving the base test to #1250

@sshane sshane added car safety vehicle-specific safety code bugfix labels Apr 28, 2023
@sshane sshane changed the title safety: sample_t is not fully reset on safety mode set safety: sample_t is not fully reset on safety mode init Apr 29, 2023
@sshane sshane marked this pull request as ready for review April 29, 2023 01:06
board/safety.h Outdated Show resolved Hide resolved
@sshane sshane requested a review from adeebshihadeh May 3, 2023 02:12
tests/safety/common.py Outdated Show resolved Hide resolved
tests/safety/common.py Outdated Show resolved Hide resolved
@sshane sshane merged commit 43af1df into master Oct 3, 2023
@sshane sshane deleted the sample_t-tests branch October 3, 2023 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix car safety vehicle-specific safety code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants