Northeastern-Electric-Racing / Shepherd-BMS

Our from-scratch Battery Management Application
3 stars 0 forks source link

Added non-critical faults and included test in can_handler.c #87

Closed caiodasilva2005 closed 1 month ago

caiodasilva2005 commented 6 months ago

Changes

Added a collection system for non-critical faults and also made a test example for when CAN does not fails to receive a message.

Notes

Hopefully this system works for non critical faults. Also, I was not sure how and where to initialize a timeout for the nertimer to check if the condition is true for a certain duration of time before adding the fault code to the fault status.

Test Cases

To Do

Any remaining things that need to get done

Checklist

It can be helpful to check the Checks and Files changed tabs. Please reach out to your Project Lead if anything is unclear. Please request reviewers and ping on slack only after you've gone through this whole checklist.

Closes #81