get_usb_power always returns '1' - page 2 - General Discussion and Assistance - CHDK Forum

get_usb_power always returns '1'

  • 13 Replies
  • 6728 Views
*

Offline zeno

  • *****
  • 891
Re: get_usb_power always returns '1'
« Reply #10 on: 22 / May / 2008, 12:50:23 »
Advertisements
Chris - I'm not promising anything, but try the DISKBOOT.BIN here
http://www.zenonic.demon.co.uk/zips/DISKBOOT.BIN

Dave
A570, S100, Ixus 127
Author of ASSIST, STICK, WASP, ACID, SDMInst, LICKS, WICKS, MacBoot, UBDB, CFGEdit

*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
Re: get_usb_power always returns '1'
« Reply #11 on: 22 / May / 2008, 15:14:06 »
hah funny, all the time i was under the impression it only returns 1 if voltage present. i thought the scripts that emulate different functions through the duration of usb voltage present used the tickcount (which is also possible). sorry for maybe giving misleading information.

Re: get_usb_power always returns '1'
« Reply #12 on: 01 / June / 2008, 00:35:47 »
Disregard my post to the other thread, Zeno.  It's working now!

get_usb_power appears to be returning in multiples of 1/100th of a second.  So, raising power high for 3 seconds will return a 300, +/- a few.

This is awesome!  Hope you can get this code merged in allbest.

thanks again,

Chris
NW5W High Altitude Balloon Project
http://nw5w.com/journal/

Re: get_usb_power always returns '1'
« Reply #13 on: 01 / June / 2008, 01:45:48 »
Hmm, get_usb_power is working but another strange issue has cropped up:

For some reason, the shutter button is not being released, even if I do a release "shoot_full".  Same thing happens when I use the basic "shoot" command.

Because the shutter button isn't being released, my camera will take a picture and then the LCD will display the picture just taken and never return to take another picture.  You can simulate this on your camera by pressing the shutter and just holding it down. 

If we could get this little problem solved, I think that my script would be golden and I'll have a camera that's ready to launch on my balloon.

Chris
NW5W High Altitude Balloon Project
http://nw5w.com/journal/

 

Related Topics


SimplePortal © 2008-2014, SimplePortal