summaryrefslogtreecommitdiff
path: root/src/components/utility/LinearApproximation.h
AgeCommit message (Collapse)AuthorFilesLines
2022-11-19Add linear approximation and use it for improving battery percentageAlex Dolzhenkov1-0/+41
Add linear approximation class and use it to better model the non-linear discharge curve of the battery. Changed the minimum voltage level to 3.5V and the maximum to 4.18V. For reference the maximum observed voltage is 4.21V during charging.