A time-lapse script again? You may ask.
Yes, because there are still several features missing from different scripts, and I thought that I will unite them into one.
But...of course I'm stuck at the beginning.
The code at this moment:
rem focusing with option to fail-safe focus method
h = get_hyp_dist
f = h+5000
if z <> f then gosub "backup_focus"
Because I want to create videos, where the focus is fixed (MUCH less mechanical stress, and no moving focus between pictures), I had the thought that I call the help of get_hyp_dist function. Basically this should give back the distance where everything should be clear. Then I add some more value to it just to debug, and set this value as focus distance. I wait 1 sec, so the focus could be set mechanically. After that I just read out the focus, but it turn out that it is not set. This information came from the chdk debug tool.
When I try the script at the camera, it is clear that focus is not set by that command. What I miss?