I've spent the last couple of days looking at how sync shooting with multiple cameras is currently implemented in CHDK Remote V2 code.
It looks like a few complications have slipped into the code as hacks to allow things like multicam and ptp shooting have been added. And these hacks only work when things in the CHDK menus (like sync) are enabled. While menu values can be bypassed via set_config_value()
, this should probably not be required when shooting via a script.
So after a bit of refactoring and some testing, I have a patch file with a few cleanups that should help. Basically, the changes remove some unnecessary interlocks and delete code in action_stack.c
that never should have interacted with the sync logic in the first place. It also adds a new script function usb_sync_wait( )
for Lua and uBASIC that can be called before each shot to enable sync on that shot when used in conjuction with usb_force_active( )
. This will allow full script control of sync'd shooting without any CHDK menu settings necessary. This was briefly discussed here : Faster Sync Triggering?
A revised test version of the script originally posted here Faster Sync Triggering?
is also attached.tl;dr : new sync code for using two or more camerasUpdate :
script removed - see later posts