Yes, copy the entire lua directory from the trunk into your install directory. I would recommend using the entire directory rather than trying to mix and much.
OK, I did that. After doing so, I've run some tests today and learned some things.
All of this is re the A640.
1 - set_mf(1) is not necessary to get manual focus if using remoteshoot -sdmode=MF -sd<n>mm
(if you use that remoteshoot command, camera does manual focus regardless of set_mf)
2 - However, set_mf()
does affect the result of "=press'shoot_half' repeat sleep(10) until get_shooting() return get_focus()".
If in set_mf(0), that appears to return the correct focus setting value (not actual distance) for the subject.
If in set_mf(1), that appears to return the current focus position (where the lens is now). It doesn't appear to be influenced by the actual subject distance.
3 - Results of experiments with remoteshoot -sdmode=MF -sd=<value>:
With set_mf(0) and set_zoom(0), and subject at infinity (~1000 meters):
=press'shoot_half' repeat sleep(10) until get_shooting() return get_focus()
returns 647 to 746 (may depend on aperture; not sure)
Infinity Post-shot
-sd= value Sharpness (0..10) get_focus() Interpretation
-1mm 0 10 Focused at 10mm (closest focus?)
-1 8 1023 Focused at 1.023m?
65535mm 4 65535 Focus is well past infinity.
~700mm 10 ~700 Correct infinity focus. With set_mf(0) and set_zoom(1), and subject at infinity (~1000 meters):
=press'shoot_half' repeat sleep(10) until get_shooting() return get_focus()
returns 65535
Infinity Post-shot
-sd= value Sharpness (0..10) get_focus() Interpretation
-1mm 2 264 Focused at 264mm?
-1 8 964 Odd.
65535mm 10 65535 Correct infinity focus.
~700mm 5 ~700 Focused near 700mm?("~700" means any value close to 700 produces visually identical results.)
For my use (landscape images), the bottom line is that the "millimeter" based manual focus doesn't work - I need to make the camera attempt autofocus to get the correct focus setting for the lens. Once I get that, I can re-use that for all shots in the timelapse.
Two other things:
Using chkdkptp_gui, live view display of the viewfinder doesn't seem to work in record mode on the Raspberry Pi at all, or on Windows on about 1 in 3 camera boots (randomly).
It works OK in playback. When it fails (always on the Pi), the viewfinder display shows random-looking pixels. The random-looking pixels do update
to a different set of random-looking pixels after each shot. I can supply screenshots if it's helpful.
Finally, do you think a G-series camera (G9...G12) will produce better .DNG images than the A640?