-
Notifications
You must be signed in to change notification settings - Fork 0
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
Leak detecting #18
Leak detecting #18
Conversation
|
||
while (true) { | ||
while (!hasLeak) { |
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 we stop running the main loop upon leak, the mbed will appear to have crashed. Also, pololu may still have motor values cached.
This may have to be re-calibrated with TRANSDEC water, which I expect will have more ions dissolved.
It's good to know why your sub randomly stops running
If there is a leak, won't turn the sub back on until mbed reset.
Totally went overboard with this leak detection thing. We're going to have the best safety features at RoboSub. Still need to test the code. |
I am bad at programming.
This almost eliminates false positives when the analogin pin is floating
@aditsinha Can you review this? |
It's difficult to add pull requests to existing issues apparently. This should add leak detection functionality (per #17)