Rockbox General > Rockbox General Discussion

Battery Estimator on ALL devices

<< < (3/4) > >>

Errant33:
Well i found a page with patch info to fix battery's estimated time directly based off battery bench marks and i also found where in the source code battery information is stored.

Compiling it with corrected values to see how accurate it is if its still off i will look into it further

Errant33:
*Deleted* no longer useful

Errant33:
Not only what i listed above give a accurate reading of time left it would also scale with the battery as it ages because its based on dynamic numbers not static.

Rincewind:
Errant33: You are looking at the simulator code. This has nothing to do with actual runtime calculation. The real thing is much more complicated and dynamic, based on (assumed) power consumption.

You can see in my patch (which was linked in this thread, above) where the calculation on real targets happens.

Errant33:

--- Quote from: Rincewind on August 03, 2007, 01:00:53 PM ---Errant33: You are looking at the simulator code. This has nothing to do with actual runtime calculation. The real thing is much more complicated and dynamic, based on (assumed) power consumption.

You can see in my patch (which was linked in this thread, above) where the calculation on real targets happens.

--- End quote ---

Alright and yeah i figured it out when i got a bit lower in the code and thanks

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version