I find this format easier to read, because the definitions are at the expected indentation, making it easier to find what I'm looking for.
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.