Skip to content

Conversation

Phil-Engljaehringer
Copy link

Solved Problem

The displayed voltage in AMC was above the threshold, even though the warning indicated it was below.

Solution

Changed the displayed value to the last observed value that was below the threshold, instead of the current value

Test coverage

-Manually checked displayed value in AMC

@Phil-Engljaehringer Phil-Engljaehringer marked this pull request as ready for review October 13, 2025 11:35
@alexcekay alexcekay self-requested a review October 13, 2025 12:27
…alue above the low_error_threshold or below the high_error_threshold is reported in AMC
alexcekay
alexcekay previously approved these changes Oct 13, 2025
Copy link
Contributor

@dakejahl dakejahl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't look quite right. The static variables should be made member variables. Also, the low/high values should be stored on the hysteresis state change, not on a comparison of greater/less than.

…ly update them when hystersis state changes from false to true.
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.

3 participants