I feel like this question must have been asked before, but I'm just not able to find it. Probably because I just don't know the terminology of my issue...
My question is really simple. I have the following lookup table (is that what it's called?):
Voltage (V) | Battery state of charge (%)
< 53.0 | 0
53.0 | 10
54.1 | 20
56.2 | 30
57.7 | 40
59.1 | 50
60.5 | 60
61.7 | 70
62.8 | 80
63.9 | 90
65 | 100
and I want to create a function that can return an approximation for the "Battery state of charge" for any Voltage value between 65 and 53.
For example 64.45 could return 95%.
Note: I'm not looking for a 100% perfect solution here, as I probably wouldn't understand it anyway.