ponewheel / android-ponewheel

pOneWheel Android app
MIT License
72 stars 25 forks source link

Battery v3 #101

Closed biell closed 5 years ago

biell commented 5 years ago

This pull request performs the following 4 major things:

  1. Add support on Two-X to watch the battery draw from 100% to 58% and figure out how many amp hours makes up each percent. Continue this from 57% down to 3%. Then, use the Cells method from 3% to 1% (just in case the math was off, 3,2,1% needs to be perfectly accurate). This works amazingly well. In test, I have been trusting it and riding my OW down to 1% with confidence.

  2. Lay the groundwork for temperature based tweaks in the future. Winter is coming!

  3. Added a sliding amp hours draw filter to handle wider swings when the battery is near full and slighter swings when the batter is near empty.

  4. Tweak the voltage based algorithms a little more.

biell commented 5 years ago

I have added a few really important features, closing this and initiating another