To be more presise on this topic: setting e.g.100 ISO via the Canon UI and e.g. 50 ISO via CHDK Menu and leave CHDK. In this case the camera takes an image if the shutter ist pressed (no shut of) and the EXIF data of the image ist updated to e.g. 50 ISO. In this case I would expect either an underexposed image or would have to set a +1EV exposure compensation. However the image is NOT underexposed but exposed like 100 ISO to stay with the example.
ASSERT!! CaptureAKBAD.c Line 549Occured Time 2020:11:04 17:27:27Task ID: 17891368Task name: CaptSeqTask
re: script setfmode.lua...
I've tested the script on my SX700 and got the following:Use case for far SD:- In <Alt> set Focus mode to "Ovr" and Focus dist mm to 10000- start script- CHDK OSD displays "SD:10000"- leave <Alt>- CHDK OSD sitll displays "SD:10000"- Aim cam to a close subject e.g. at 200 mm (wide zoom lense)- Take pic with shutter- check pic: focus was set to an SD of 200 mmIn my point ov view the SD override ist not working as expected.
Use case for close SD:- In <Alt> set Focus mode to "Ovr" and Focus dist mm to 100- start script- CHDK OSD displays "SD:100"- leave <Alt>- CHDK OSD sitll displays "SD:100"- Aim cam to a far subject e.g. at 20000 mm- Take pic with shutter- CHDK OSD is now cleared- check pic: focus was set to an SD of 100 mm as expectedHowever the focus mechanism of the cam now got stuck to this close SD while the CHDK OSD does not display any override. This only can be cleared by switching the cam off/on or changing the focus mode via Canon UI.
Another question would be how to use the script within a focus stacking script. Because I'm not very good at programming and scripting I will value any hints.
Quote I've tested the script on my SX700 and got the following: Use case for far SD: - In <Alt> set Focus mode to "Ovr" and Focus dist mm to 10000 - start script - CHDK OSD displays "SD:10000" - leave <Alt> - CHDK OSD sitll displays "SD:10000" - Aim cam to a close subject e.g. at 200 mm (wide zoom lense) - Take pic with shutter - check pic: focus was set to an SD of 200 mm In my point ov view the SD override ist not working as expected.This does seem incorrect. Do you have "safety MF" enabled in the Canon UI? If it's on, it might not keep the focus you set.
SX700 needs to be in MF or AF lock mode for focus overrides to work. If the focus stacking script does not automatically set one of those, you could either set it using the canon UI before hand, or add a line likeQuote set_mf(1)near the start of the script.
While the get_focus function gives am maximum value of approx. 350000 back on this cam (or -1), the set_focus function is obviously limitied to a maximum value of 65535. Using only a value range of 0...65535 for the set_focus fuction let work the focus stacking script well.
And btw, I've tested to set the focus override directly via the CHDK menu too (build 5623). Here seems to be a problem: regrardless of the option (On/Off/Inf) and values choosen, there will be no override displayed on the CHDK OSD and no setting of focus on the cam happens.
Is your script Lua or ubasic? Can you post it here?
As I mentioned, this camera must be in MF or AF lock for SD override to work. Does the override appear if you enable MF using the Canon UI?
Code: [Select]Is your script Lua or ubasic? Can you post it here?FocusBrack.bas attached. German GUI and not well documented, but should be more or less selfexplaining.
print "Schritt " r,"Dist.",g,"mm"if t=0 then g=g+cif t=1 then g=g+c*iif t=2 then g=g+c*i*iif g>65530 then goto "infinity"next i :infinityg = 65534set_focus gsleep 100
...for i=1 to sr=iset_focus gsleep 500shootprint "Schritt " r,"Dist.",g,"mm"if get_focus = -1 then goto "done"if t=0 then g=g+cif t=1 then g=g+c*iif t=2 then g=g+c*i*inext i :doneset_mf 0playsound 0end
con 1> =set_mf(1)con 2> =set_focus(100) return get_focus()3:return:100con 3> =set_focus(1000) return get_focus()4:return:1021con 4> =set_focus(1500) return get_focus()5:return:1421con 5> =set_focus(2000) return get_focus()6:return:1833con 6> =set_focus(3000) return get_focus()7:return:2586con 7> =set_focus(4000) return get_focus()8:return:3939con 8> =set_focus(5000) return get_focus()9:return:3939con 9> =set_focus(6000) return get_focus()10:return:-1
Assuming this isn't a modification you made to keep it below 64k, you could either use larger numbers instead of 65530 and 65534, or change the logic to just end when get_focus returns -1. The second option would be better, IMO, because the distance the camera changes to -1 depends on the zoom, so if you use a fixed number, you might get many "infinity" shots in some cases.
Notice that 4000 and 5000 both set the distance to 3939, and 6000 is "infinity" already.
A valuable insight for me too, that get_focus can deliver a different value as set with set_focus and that the maximum values near "infinity" differs heavily from the zoom setting. Thank's again.
Started by LogicSmith
General Discussion and Assistance
Started by KevB
« 1 2 ... 31 32 »
Started by sylikc
« 1 2 ... 70 71 »
General Discussion and Assistance
Started by antwtna
Started by Angel9999l5
General Help and Assistance on using CHDK stable releases