Freeze on shoot - Creative Uses of CHDK - CHDK Forum supplierdeeply

Freeze on shoot

  • 5 Replies
  • 4635 Views
Freeze on shoot
« on: 23 / October / 2008, 05:00:31 »
Advertisements
I'm using AllBests build for the A640, and have writen a script to control the shutter and zoom from the USB port:

@title SMC-A640

print "-SMC Controller-"
print "      A640      "

:loop
    do
      a = get_usb_power
    until a>0

  if a>40 then goto "shutter"
  if a>20 then goto "zout"
  if a>0 then goto "zin"
  goto "loop"
end

:zin
  click "zoom_in"
  sleep 100
  k = 0
  goto "loop"
return


:zout
  click "zoom_out"
  sleep 100
  l = 0
  goto "loop"
return


:shutter
  shoot
  sleep 100
  m = 0
  goto "loop"
return



My issue is that sometimes, on the shutter release, the auto-focus boxes come up. And then it freezes.

Has anyone else had this problem and/or found a solution?

Cheers,
Sam.

*

Offline fudgey

  • *****
  • 1705
  • a570is
Re: Freeze on shoot
« Reply #1 on: 23 / October / 2008, 12:24:41 »
Does this also happen when flash is disabled, or just when enabled or AUTO?

*

Offline reyalp

  • ******
  • 14080
Re: Freeze on shoot
« Reply #2 on: 23 / October / 2008, 17:31:34 »
You might want to try the latest trunk, there was a bug that caused something like this in older versions. (I think there's still another similar bug that hasn't been tracked down as well)
Don't forget what the H stands for.

Re: Freeze on shoot
« Reply #3 on: 24 / October / 2008, 03:36:07 »
I'm not sure I get what you mean by trunk. Do you mean the build version?

And how would I disable the flash, script over rides commands, so I guess the script has to do it its self.

Cheers both of you.

Sam.


*

Offline reyalp

  • ******
  • 14080
Re: Freeze on shoot
« Reply #4 on: 24 / October / 2008, 05:02:49 »
I'm not sure I get what you mean by trunk. Do you mean the build version?
You can get "auto builds" of the latest development version here CHDK Download - build 0.6.5, revision #541
Don't forget what the H stands for.

*

Offline fudgey

  • *****
  • 1705
  • a570is
Re: Freeze on shoot
« Reply #5 on: 24 / October / 2008, 11:38:39 »
And how would I disable the flash, script over rides commands, so I guess the script has to do it its self.

No, by default scripts don't override anything they haven't been programmed to do. So unless your script specifically sets flash to ON or AUTO mode, you disable flash simply by disabling it the usual non-CHDK way before starting the script.

 

Related Topics