chdk 1.1 + SX230HS shutdown problem - page 2 - General Help and Assistance on using CHDK stable releases - CHDK Forum

chdk 1.1 + SX230HS shutdown problem

  • 11 Replies
Re: chdk 1.1 + SX230HS shutdown problem
« Reply #10 on: 17 / October / 2012, 13:57:43 »
1) What happens if i call "get_usb_power" first with no arguments and immediately call it again with the argument 3, does it still keep the number of pulses last detected or the first with no argument call erase all relevant data?
The first call will return the pulse width of the most recent pulse and reset the pulse width value.  The second call will return the pulse count and clear the pulse counter.  Calling one does not reset the other.

2) what is the maximum usb power pulse width that can be measured, 250ms (25) or more?
The pulse width measurement continues for as long as USB power is applied. So it will go to 327.67 seconds before the value "wraps" and goes negative.   This is potentially a bug - I should probably change the code to clamp the measurement at some point -  5 minutes maybe ?

3) Someone told me that CHDK can measure analog voltages is it true? From where?
Not to my knowledge.  Although with some external hardware you could rig a simple voltage to pulse width circuit.
« Last Edit: 17 / October / 2012, 13:59:18 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

Re: chdk 1.1 + SX230HS shutdown problem
« Reply #11 on: 17 / October / 2012, 14:15:06 »
Again very clear answers !
I thought so about analog voltage it is not technically possible (or very hard) to achieve this.
I think 5 minutes are enough  :)
(i don't want to sound like Gates which said once that ""640kb ought to be enough for anybody"  :D )


Related Topics

SimplePortal 2.3.6 © 2008-2014, SimplePortal