hyblocker/freescuba

Glove battery sometimes is invalid

hyblocker opened this issue · 1 comments

Sometimes the gloves report incorrect readings for the battery for short intervals of time. The current system for combatting this has false positives where it will get stuck at a value until restarting the gloves.

This should be replaced with a ring buffer which is then sampled every time a value changes to determine the most common battery percentage value we have stored.

This seems to be resolved with 0498a8b.