OESF Portables Forum

Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Sharp ROMs => Topic started by: chyang on June 23, 2004, 09:41:19 am

Title: Battery time estimation funtionality
Post by: chyang on June 23, 2004, 09:41:19 am
Would some one implement the Battery time esitimation functionality based on Cacko new kernel with APM support?
I think the it is not so difficult.
1)record one value:v at one start point;timed=0;lefttime=0;
2)start one timer

in the timer
compare the new battery value:nv, if equal, update time difference: timed+=timer_interval;
if greater, update the value to this one: v=nv;
if less, calculate the estimated left time:  lefttime=timed/(nv-v)*nv;v=nv;timed=0;
update the left time display;
set the timer again;


I don't have the compile enviroment at present, would some one add this function to the applet?

Thanks.
 
Title: Battery time estimation funtionality
Post by: PowerZ on June 27, 2004, 09:39:04 pm
I would also appreciate this applet getting fixed.  I have been surprised twice in the last week while I was out running around with a sudden "Charge Battery Now" window.  

chyang - I hope you are right that it is easy!!