-
Notifications
You must be signed in to change notification settings - Fork 1
Add Housing Monitor #30
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
base: master
Are you sure you want to change the base?
Conversation
Added leakage detection in powerManagement.c
| void housingMonitor_run(void) | ||
| { | ||
| housingMonitor_housing_E housing = Main; | ||
| if (housingMonitor_getHousingStatus(housing) == Leak) |
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.
If the ADC value goes above the threshold, then back down, we want to latch the housing status to leak in case the water is just sloshing around in the housing.
My recommendation is to have a variable in this module's data struct that holds the housing status. Update it every time housingMonitor_run is run. When housingMonitor_getHousingStatus is called by another file, just return the value of that variable.
Modified the code according to ccomments
|
Has this PR been merged? |
Added leakage detection in powerManagement.c