> lua post_levent_to_ui('PressSwOne')> = return get_shooting()6:return:true
Using sx150is-100a-1.4.0-r4153-full (and chdkptp-r658-win32).Apparently this camera cannot autofocus at subject distance less than 1 metre (with any significant zoom).With camera at full zoom (zoom step 127), pointed at a wallpapered flat surface 60cm distance and half-press, get_shooting returns true, chdkptp GUI console:Code: [Select]> lua post_levent_to_ui('PressSwOne')> = return get_shooting()6:return:trueAF frame (imagine yellow please) and ! shown in screenshot attached. ?(Conditions: Aperture Priority mode, AF-Point Zoom = On, Servo AF = Off, Continuous AF = Off)
Apparently this camera cannot autofocus at subject distance less than 1 metre (with any significant zoom).
With camera at full zoom (zoom step 127), pointed at a wallpapered flat surface 60cm distance and half-press, get_shooting returns true, chdkptp GUI console:
Err... so? get_shooting() just returns a particular propcase. It doesn't guarantee the canon firmware was able to focus on something useful.
function cmds.preshoot() press('shoot_half') local status=wait_timeout(get_shooting,true,10,mc.preshoot_timeout) if not status then release('shoot_half') end return status,msg==>-- wait, sleeping <wait> ms until <func> returns <value> or timeout hitfunction wait_timeout(func,value,wait,timeout,msg) if not msg then msg = 'timeout' end while func() ~= value do sleep(wait) timeout = timeout - wait if wait <= 0 then write_status(false,msg) return false end end write_status(true) return trueendend
if wait <= 0 then
if timeout <= 0 then
http://chdk.wikia.com/wiki/Script_commands#get_shooting"get_shooting - Lua : return boolean true if half_press active and focus+exposure is set , false otherwise" My logic was that, since focus is definitely false (as per Canon display), then chdk get_shooting() should also be false (since exposure set would then be irrelevant).
When focus was not achieved I had expected "release('shoot_half')" to result.In simple terms, what's the purpose of the following multicam.lua "press('shoot_full')" if focus has not been guaranteed?
shouldCode: [Select]if wait <= 0 thenin code snippet not be:Code: [Select]if timeout <= 0 then?
...is that it indicates the AF and AE process have finished, but it does not indicate that AF found something to focus on.
Quote from: reyalp on 16 / June / 2015, 16:27:42...is that it indicates the AF and AE process have finished, but it does not indicate that AF found something to focus on.Another piece of my puzzle slots into place. Thanks.
Started by pizzicat Firmware Dumping
Started by hiker_jon General Discussion and Assistance
Started by slyth999 General Discussion and Assistance
Started by gtoonstra « 1 2 ... 5 6 » General Discussion and Assistance
Started by rdx1968 General Help and Assistance on using CHDK stable releases