This is my updated interface, and I think it is much cleaner. I am now also pulling amps used and regen amps, even though I don't yet have use them. This should allow for future tweaks to mostly stay confined to Battery.java.
By centralizing and parameterizing the calculations into Battery.java it should also help other people review the code, play with tweaks, and submit suggestions for how to perform the math.
This is my updated interface, and I think it is much cleaner. I am now also pulling amps used and regen amps, even though I don't yet have use them. This should allow for future tweaks to mostly stay confined to Battery.java.
By centralizing and parameterizing the calculations into Battery.java it should also help other people review the code, play with tweaks, and submit suggestions for how to perform the math.