Zooming during exposure - Script Writing - CHDK Forum

Zooming during exposure

  • 3 Replies
  • 3013 Views
Zooming during exposure
« on: 03 / September / 2015, 16:27:33 »
Advertisements
Hi folks,

Based on a simple script for the SX100 (http://chdk.setepontos.com/index.php?topic=2518.0) , I'm trying to make my own version of a script that allows to zoom in during exposure, but for the SX150IS with CHDK 1.4

The original script goes from 0 to 127 zoom steps, but I modified it in order to go from 0 to 64 (half). Even with this change, the camera crashes just before the image is processed.

The script is quite simple, so I see no reasons to crash. Here is the code:

Code: [Select]
--[[
Zooming during exposure
--]]

max_zoom = 64

if get_zoom() ~= 0 then
  set_zoom(0)
  sleep(5000)
end

press("shoot_half")
repeat
  sleep(1)
until get_shooting() == true
press("shoot_full")
sleep(100)
set_zoom(max_zoom)


Any suggestions?

Ch.

Re: Zooming during exposure
« Reply #1 on: 03 / September / 2015, 16:46:11 »
The script is quite simple, so I see no reasons to crash.
The issue is not simplicity. It's using CHDK to trick the camera into doing things it would not normally do and causing the Canon firmware to get confused.  You can do that with a two line script if you try hard enough.

Quote
The original script goes from 0 to 127 zoom steps, but I modified it in order to go from 0 to 64 (half)
The SX100 has only  23 discrete zoom steps.

Quote
Here is the code:
Is that the entire script ?   If so,  you never release the "shoot_half" or the "shoot_full".  That might be causing your problem.

You might also try starting the zoom process prior to initiating shooting?  I don't know if that makes things better or worse but it's worth a shot.


Edit
:  there is another thread about the same script that you may not have seen ? 
« Last Edit: 03 / September / 2015, 17:11:56 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

Re: Zooming during exposure
« Reply #2 on: 04 / September / 2015, 13:01:03 »
I'm sorry for the mistake. The 150IS has 127 zoom steps, that's why the confusion :(.

The original script had actually release("full_shoot") and release("half_shoot"), but it didn't work either. So, I'm going to adjust the time between the shoot and the movement of the zoom, to see what is causing the problem.

Thanks for your answer.

Ch.

Re: Zooming during exposure
« Reply #3 on: 04 / September / 2015, 13:26:24 »
So, I figured out that if I alter the order of the instructions so that the zoom moves before it shoots, it waits until the final motor position is reached and then it shoots.

THe camera crashes all the time, no matter the order of the instructions or the time of the delays. I'm going to try CHDK 1.3 though.

EDIT1: The camera crashes with CHDK 1.3  as well.
EDIT2: The the other script (http://chdk.setepontos.com/index.php?topic=8400.0) don't work either. Even with version 1.3. :(
« Last Edit: 04 / September / 2015, 13:48:51 by CharlieMAC »

 

Related Topics


SimplePortal © 2008-2014, SimplePortal