Author Topic: Battery time estimation funtionality  (Read 1840 times)

chyang

  • Sr. Member
  • ****
  • Posts: 270
    • View Profile
    • http://mail.ustc.edu.cn/~chyang/
Battery time estimation funtionality
« 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.
 
SL-C3200+Symbol CF WIFI+Corsair 2GB SD
SL-5500+Sharp-3.13 ROM+Viking 512MB CF+Kinston 256MB SD
[img]http://sunsetyang.googlepages.com/c3200.gif\" border=\"0\" class=\"linked-sig-image\" /][img]http://sunsetyang.googlepages.com/5500.gif\" border=\"0\" class=\"linked-sig-image\" /]
Socket CF Bluetooth + EagleTec CF Lan Card + EagleTec CF Modem
Histroy:
[SL-C3000 Cacko 1.23 Beta 1] Sold on 2006/07/27
MA701 CF WIFI + EagleTec CF Bluetooth + D-Link DCF-660W WIFI
[SL5500+Sharp-3.13 ROM+SimpleTech 64MB CF+Hagiwara 128MB SD] Lost on 18,March,04

PowerZ

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
    • http://
Battery time estimation funtionality
« Reply #1 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!!
C-750 - Cacko ROM version 1.21b - Lexar 256MB SD card - Kingston 1 GB CF Card

SL - 5500 - Sharp ROM version 3.13 - SanDisk 128 Mb SD card - Mr. Flash 128 MB CF Card