Focus bracketing scripts sometimes stops at "shoot" command - page 8 - Script Writing - CHDK Forum supplierdeeply

Focus bracketing scripts sometimes stops at "shoot" command

  • 76 Replies
  • 23261 Views
*

Offline lapser

  • *****
  • 1093
Re: Focus bracketing scripts sometimes stops at "shoot" command
« Reply #70 on: 30 / January / 2013, 12:37:25 »
Advertisements
This is the proposed shoot bug fix that philmoz wrote. It looks really good to me. I added a "shoot failed" message so you can see that it's working. Will you test it as thoroughly as possible and make sure it works. The new changes are described here:

http://chdk.setepontos.com/index.php?topic=7611.msg96494#msg96494

Thanks yet again for all your help. This is a really tough bug to figure out, and we couldn't have done it without your help.

[EDIT] It looks like Phil already added this update to the main trunk. It should be avaiaible shortly, starting with 2529, so you can wait and test that one if you want, and load it from the main trunk.
« Last Edit: 30 / January / 2013, 16:06:11 by lapser »
EOS-M3_120f / SX50_100b / SX260_101a / G1X_100g / D20_100b
https://www.youtube.com/user/DrLapser/videos

Re: Focus bracketing scripts sometimes stops at "shoot" command
« Reply #71 on: 01 / February / 2013, 11:01:12 »
Back again...
Yes, it works in the sense that it doesn´t hang, but it still give me some "shoot failed".

I guess I have to check a "return value" to make a reshoot, to not miss any focuse step (like in Phils earlier version) ?

*

Offline lapser

  • *****
  • 1093
Re: Focus bracketing scripts sometimes stops at "shoot" command
« Reply #72 on: 01 / February / 2013, 13:32:16 »
Yes, it works in the sense that it doesn´t hang, but it still give me some "shoot failed".
I guess I have to check a "return value" to make a reshoot, to not miss any focuse step (like in Phils earlier version) ?
Phil recently modified shoot to do a single re-shoot and then return a failure, so unless there are 2 failures in a row, you'll be OK. But because of this possibility, which you said happened before, you should set it up to at least test the return from shoot and print out "failed". Phil changed the timing of the re-shoot so a double failure is less likely. So it would be useful for you to let us know how many times in a row it fails, if that ever happens.

There's also a new failure return when the SD card is full (or other reasons?), which I think is a value of 2. It would be nice to see if that works by filling up an SD card.

Phil's new updates are in the 1.2 trunk at:

http://mighty-hoernsche.de/trunk/
EOS-M3_120f / SX50_100b / SX260_101a / G1X_100g / D20_100b
https://www.youtube.com/user/DrLapser/videos

Re: Focus bracketing scripts sometimes stops at "shoot" command
« Reply #73 on: 02 / February / 2013, 05:57:48 »
Hi again,

I did some further testing with your version r2529 and modified my script to print the return value from shoot.

Code: [Select]
rem Leif Karlsson
@title Original v Focus bracketing
@param n Max number of steps
@default n 300

sleep 2000

  for s=1 to n
   shoot v
   get_focus f
   get_dof d
   g=f+d*2/3
   set_focus g
   print g,d,v
   if g>50000 then s=n
   if d<0 then s=n
  next s

end

- With this modification it doesn´t print out "shoot failed" when it misses a shoot
- A successful shoot returns the value "1".
- A missed shoot returns "0".

Shouldn´t it be the opposite ?

I also tested to fill the SD card:
When it gets full (actually one or two shots before) I get a "Memory card full" message, and the script hangs. As I see it, I don´t get to the point where "2" should be returned.


*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: Focus bracketing scripts sometimes stops at "shoot" command
« Reply #74 on: 02 / February / 2013, 06:09:21 »
Hi again,

I did some further testing with your version r2529 and modified my script to print the return value from shoot.

Code: [Select]
rem Leif Karlsson
@title Original v Focus bracketing
@param n Max number of steps
@default n 300

sleep 2000

  for s=1 to n
   shoot v
   get_focus f
   get_dof d
   g=f+d*2/3
   set_focus g
   print g,d,v
   if g>50000 then s=n
   if d<0 then s=n
  next s

end

- With this modification it doesn´t print out "shoot failed" when it misses a shoot
- A successful shoot returns the value "1".
- A missed shoot returns "0".

Shouldn´t it be the opposite ?

I also tested to fill the SD card:
When it gets full (actually one or two shots before) I get a "Memory card full" message, and the script hangs. As I see it, I don´t get to the point where "2" should be returned.

Was that with the version lapser poster in the earlier thread or the latest trunk build from the autobuild server?

The autobuild version should return:
  0 - shoot ok
  1 - shutter half press timed out (SD card full, etc)
  2 - shoot failed (twice) after half press

Phil.
CHDK ports:
  sx30is (1.00c, 1.00h, 1.00l, 1.00n & 1.00p)
  g12 (1.00c, 1.00e, 1.00f & 1.00g)
  sx130is (1.01d & 1.01f)
  ixus310hs (1.00a & 1.01a)
  sx40hs (1.00d, 1.00g & 1.00i)
  g1x (1.00e, 1.00f & 1.00g)
  g5x (1.00c, 1.01a, 1.01b)
  g7x2 (1.01a, 1.01b, 1.10b)

Re: Focus bracketing scripts sometimes stops at "shoot" command
« Reply #75 on: 02 / February / 2013, 07:01:37 »
It was lapser´s version.

Re: Focus bracketing scripts sometimes stops at "shoot" command
« Reply #76 on: 02 / February / 2013, 07:45:38 »
Tested with the autobuild version , and everything is as expected
"0" - shoot ok
I get "1" from the script at the same time as I get "Memory card full".

I can´t provoce a "2". (I have only seen two consecutive misses once.)
I can see by the timing between two shots that it sometimes has to retry.

Thanks for your effort Phil !

 

Related Topics