Bug - Synch Delay time options do nothing - page 3 - General Discussion and Assistance - CHDK Forum  

Bug - Synch Delay time options do nothing

  • 30 Replies
  • 7109 Views
Re: Bug - Synch Delay time options do nothing
« Reply #20 on: 22 / June / 2012, 10:31:21 »
Advertisements
Which version did you try ? Stable or Unstable ?

sx130is-101f-1.1.0-1928-full_BETA.zip from the UNSTABLE trunk
(on the STABLE trunk the version is #1925)

What are you using for a USB switch device ?

I have an external triggering device called gentStereo

Are you trying to use a script or the built-in functionality ?

a script, I tried even the very simple one described in the ref page:
while 1
  wait_click 1
  if is_key "remote" then shoot
wend



And how exactly did you setup the option in the Remote Parameters menu ?

Enable Remote : ON
SwitchType: tried both OnePush/TwoPush
ControlMode: Normal
Enable Synch: ON

The problem is that with V1 everything worked fine (except the Synch Delay, reason that made me try the V2), it seems as on V1 the "shoot()" command waits for release (when Synch Enabled) but on V2 the "shoot()" command shoots at press even if Synch Enabled...

On V2 if I dont run any script and exit from CHDK mode, then it works... but I absolutly need to run a script that performs some operations before and after the shoot...
« Last Edit: 22 / June / 2012, 10:43:13 by Alarik »

Re: Bug - Synch Delay time options do nothing
« Reply #21 on: 22 / June / 2012, 10:48:21 »
On V2 if I dont run any script and exit from CHDK mode, then it works... but I absolutly need to run a script that performs some operations before and after the shoot...
Your script is fighting with the built-in control code.  Set the Control Mode to None to turn off the built-in mode.
Ported :   A1200    SD940   G10    Powershot N    G16

Re: Bug - Synch Delay time options do nothing
« Reply #22 on: 22 / June / 2012, 10:54:51 »
Your script is fighting with the built-in control code.  Set the Control Mode to None to turn off the built-in mode.

I did but nothing changed... I tried all the combinations...
As I wrote it seems that the shoot() command does not wait anymore (as in V1) for the release when sync enabled...

Re: Bug - Synch Delay time options do nothing
« Reply #23 on: 22 / June / 2012, 10:59:34 »
I did but nothing changed... I tried all the combinations...
As I wrote it seems that the shoot() command does not wait anymore (as in V1) for the release when sync enabled...
It should.  I'll look at the source tonight and see if there is a hole in the logic when a script is used.

Ported :   A1200    SD940   G10    Powershot N    G16


Re: Bug - Synch Delay time options do nothing
« Reply #24 on: 22 / June / 2012, 11:33:09 »
It should.  I'll look at the source tonight and see if there is a hole in the logic when a script is used.

thankyou very much, I appreciate it

bye

Re: Bug - Synch Delay time options do nothing
« Reply #25 on: 22 / June / 2012, 13:24:55 »
It should.  I'll look at the source tonight and see if there is a hole in the logic when a script is used.

thankyou very much, I appreciate it
Okay - it looks like the scripting shoot() command is treated exactly the same was as a real shutter button press  (i.e. the sync delay code does nothing).  Which is just like you observed and what it was supposed to do.

I need to think about the implications of changing that.  The code to do so is trivial but do we also implement it for press "shoot_full"  as well ?

I believe that the fact it works in old V1 code is actually a side effect of some of the seriously broken code there.  For a change,  a bug that was beneficial rather than destructive.


Ported :   A1200    SD940   G10    Powershot N    G16

Re: Bug - Synch Delay time options do nothing
« Reply #26 on: 22 / June / 2012, 20:56:48 »
well but without that "lucky" bug, with scripts it would be impossible to use the "shoot-at-release" hardcoded option.
I know I could code that behaviour, but the only way would be
through the "is_pressed("remote")" function, but since I need super precise synch
between a lot of cams, I thought that the "hardcoded" versione is more reliable...

thanks

PS: currently on V1 also click("shoot_full") behave as shoot(), the shot is taken at release
« Last Edit: 22 / June / 2012, 21:01:53 by Alarik »

Re: Bug - Synch Delay time options do nothing
« Reply #27 on: 22 / June / 2012, 21:48:43 »
well but without that "lucky" bug, with scripts it would be impossible to use the "shoot-at-release" hardcoded option.
But it would only be impossible to do that with scripts.  Works fine if you are using the built-in functions.

Quote
I know I could code that behaviour, but the only way would be through the "is_pressed("remote")" function, but since I need super precise synch between a lot of cams, I thought that the "hardcoded" versione is more reliable...
You won't get sub-millisecond response if you try to do it with a script.  It does need to be hard-coded.  There is a way to trick it using the set_config_value() function to enable remote from the script after you do a "half press" but its really gross and I would not recommend it.

Quote
PS: currently on V1 also click("shoot_full") behave as shoot(), the shot is taken at release
Same bug.

In any case,  I've figured out how to enable sync & sync delay when shooting from a script and coded it.  Made the changes - just need a little time to test tonight or tomorrow  (a slight mod to the action_stack code that needs testing).   Once I post that and it gets accepted you should be good to go. 

It will take a couple of days unless you'd like to volunteer to try out a test build after I've ensured it works on my cameras ?


Ported :   A1200    SD940   G10    Powershot N    G16


Re: Bug - Synch Delay time options do nothing
« Reply #28 on: 23 / June / 2012, 21:40:14 »
In any case,  I've figured out how to enable sync & sync delay when shooting from a script and coded it.  Made the changes - just need a little time to test tonight or tomorrow  (a slight mod to the action_stack code that needs testing).   Once I post that and it gets accepted you should be good to go. 
Did the testing this morning myself - works with script "shoot()" commands now.   Patch was accepted to the svn today .. should show up in the autobuild tomorrow or Monday (dev / unstable trunk only of course).
Ported :   A1200    SD940   G10    Powershot N    G16

Re: Bug - Synch Delay time options do nothing
« Reply #29 on: 25 / June / 2012, 09:59:34 »
wow that's great,
sorry I read only today, if you need any testing-support I'm available.

thanks a lot

 

Related Topics