FS#409 - Batt. level + remaining time est.

Attached to Project: Rockbox
Opened by Uwe Freese (thebreaker) - Saturday, 12 October 2002, 23:36 GMT
Last edited by Björn Stenberg (zagor) - Tuesday, 03 December 2002, 14:19 GMT
Task Type Patches
Status Closed
Assigned To No-one
Operating System
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No


The battery level was calculated in a very simple way: linear
interpolation between the BATTERY_EMPTY and
BATTERY_FULL voltage, no matter if the charger (recorder) was
on or off.

my improvements in detail:

- The battery
level (percentage) is more realistic and considers if the charger is
- It considers the "lazyness" a battery shows when the
charging has just turned on or off (see below). But this is not perfect
by now.
- The battery level is good enough to estimate the
remaining running time and the remaining charging time. And so
the info screen now shows this info.
- The maximum time of a
charging cycle is now dynamically calculated out of the battery
level (percentage) and is not a fixed value.
- A minimum of 60
Minutes is waited after a charging cycle stops before another one
- Added another screen in the battery debug screen
(press down three times).

Please read the complete
description in the mailinglist and on http://www.uwe-
This task depends upon

Closed by  Björn Stenberg (zagor)
Tuesday, 03 December 2002, 14:19 GMT
Reason for closing:  Accepted
Additional comments about closing:  Logged In: YES

Comment by Björn Stenberg (zagor) - Tuesday, 03 December 2002, 14:19 GMT