SD940 (IXUS120) porting thread - page 45 - DryOS Development - CHDK Forum

SD940 (IXUS120) porting thread

  • 542 Replies
  • 218125 Views
Re: SD940 (IXUS120) porting thread
« Reply #440 on: 07 / May / 2011, 07:21:20 »
Advertisements
Battery is always showing up as 0%, red, and empty.
Using the latest release (downloaded today 0.9.9.1176).
Firmware is 1.01A.

is there a fix for this/are you planning on fixing it?
See if this works :
http://chdk.setepontos.com/index.php?topic=5855.msg59495;topicseen#msg59495

I know where to change the defaults in the code - just haven't yet take the time to watch a battery run down from full charge to empty to see what to set them to.  I'll look at it today.

Edit :  default value now fixed and released effective trunk 1177 - see note from reyalp below though for warning.

« Last Edit: 07 / May / 2011, 18:36:33 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline reyalp

  • ******
  • 14125
Re: SD940 (IXUS120) porting thread
« Reply #441 on: 07 / May / 2011, 16:47:36 »
Battery is always showing up as 0%, red, and empty.
Using the latest release (downloaded today 0.9.9.1176).
Firmware is 1.01A.

is there a fix for this/are you planning on fixing it?
Just FWIW, you can adjust the battery thresholds yourself in the menu. This also means that if the defaults are changed in code, you one see the change without resetting the CHDK configuration file.
Don't forget what the H stands for.

*

Offline Maron

  • *
  • 24
Re: SD940 (IXUS120) porting thread
« Reply #442 on: 07 / May / 2011, 20:29:36 »
The new build (1177) still doesnt fix it.
I manually changed the values to 4250 max and 3500 min, and now it works, but how do i know that that is an acurate reading?

Re: SD940 (IXUS120) porting thread
« Reply #443 on: 07 / May / 2011, 20:40:33 »
The new build (1177) still doesnt fix it.
I manually changed the values to 4250 max and 3500 min, and now it works, but how do i know that that is an acurate reading?
Read the post from reyalp above .. I think the new build does fix it, but you already have the old default values in your CCHDK.CFG file.

As far as accurate 0-100% readings go ... that depends on the age of your battery and where you got it from (Canon or after-market).  In other words,  there is no "accurate" reading for battery status displayed in "percent" mode.  The best you can do is set a range - I have four batteries and they all vary a bit on the voltage they deliver when fully charged and when discharged. One option is to change your OSD to display in volts rather than percent.

There are a whole lot of other CHDK things to explore that are even more vague than this - welcome to the world of CHDK.

Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline Maron

  • *
  • 24
Re: SD940 (IXUS120) porting thread
« Reply #444 on: 08 / May / 2011, 01:56:55 »
So from reading reyalp's post, i assume that i should charge my battery full, see what the voltage is then, set that as the max, and then let it drain all the way down, and get the value of the battery just before it dies, and then use that as the min value?

*

Offline reyalp

  • ******
  • 14125
Re: SD940 (IXUS120) porting thread
« Reply #445 on: 08 / May / 2011, 02:31:07 »
So from reading reyalp's post, i assume that i should charge my battery full, see what the voltage is then, set that as the max, and then let it drain all the way down, and get the value of the battery just before it dies, and then use that as the min value?
That ensures that it uses the full scale, but as waterwingz says, it can vary between battery, on temperature etc. The whole thing is a crude approximation.
Don't forget what the H stands for.

*

Offline Maron

  • *
  • 24
Re: SD940 (IXUS120) porting thread
« Reply #446 on: 09 / May / 2011, 08:00:19 »
Thanks for that ^.

Another small issue, in video mode, the remaining time and space thingie only updates every 15-20 seconds, whereas on the older builds, it was updating live...

Re: SD940 (IXUS120) porting thread
« Reply #447 on: 09 / May / 2011, 09:16:43 »
Another small issue, in video mode, the remaining time and space thingie only updates every 15-20 seconds, whereas on the older builds, it was updating live...
I don't believe that anything has changed in the SD940 specific code that would cause this so it would have to be something in the core.  I wonder if other cameras are seeing this.

Do you happen to know the build number of a older build that worked properly ?

Ported :   A1200    SD940   G10    Powershot N    G16

Re: SD940 (IXUS120) porting thread
« Reply #448 on: 10 / May / 2011, 00:40:49 »
Another small issue, in video mode, the remaining time and space thingie only updates every 15-20 seconds, whereas on the older builds, it was updating live...
I don't believe that anything has changed in the SD940 specific code that would cause this so it would have to be something in the core.  I wonder if other cameras are seeing this.

I don't experience this issue with build 1176 on the 1.03b.

*

Offline Maron

  • *
  • 24
Re: SD940 (IXUS120) porting thread
« Reply #449 on: 12 / May / 2011, 04:29:57 »
I realised it was because the refresh rate was set to 20 (seconds).

Now i'm having a different problem: Vieo stops after 10 -20 seconds, with no script running, and an empty 4GB memory card!!
Im downgrading to an older build, because i need zoom in video for a trip tommorow, and i cant video if it cuts out every ten secs.

 

Related Topics


SimplePortal © 2008-2014, SimplePortal