manual focussing - page 2 - General Help and Assistance on using CHDK stable releases - CHDK Forum
supplierdeeply

manual focussing

  • 14 Replies
  • 2682 Views
*

Offline timgor

  • ***
  • 150
Re: manual focussing
« Reply #10 on: 23 / January / 2015, 12:26:21 »
Advertisements
Thanks, now it works good ::) Can you please commit
Code: [Select]
    #define CAM_SD_OVER_IN_AFL              1
    #define CAM_SD_OVER_IN_MF               1
for the camera?

*

Offline timgor

  • ***
  • 150
Re: manual focussing
« Reply #11 on: 26 / January / 2015, 11:36:21 »
There is another question about manual focusing. May be somebody knows.
Is it true that set_focus(...) is just a relative units of focus and varies from camera to camera and the real focus always adjusted by autofocussing?
For example when I setup set_focus(65535) it's not corresponded to infinity. In my case the real infinity after autofocussing was less than 1000.

Re: manual focussing
« Reply #12 on: 26 / January / 2015, 12:44:49 »
There is another question about manual focusing. May be somebody knows.
Is it true that set_focus(...) is just a relative units of focus and varies from camera to camera and the real focus always adjusted by autofocussing?
For example when I setup set_focus(65535) it's not corresponded to infinity. In my case the real infinity after autofocussing was less than 1000.
set_focus() is in units of millimeters.   That seems to hold pretty well for macro distances but as I've posted  before,  sometimes goes out the window on some cameras.  The performance can even differ between cameras with the same model number and firmware.

Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline timgor

  • ***
  • 150
Re: manual focussing
« Reply #13 on: 30 / January / 2015, 14:14:44 »
Thanks.
Is there any way to figure out if the focus is locked or not?
for example there is a function set_aflock(1) but there is no function get_aflock()


Re: manual focussing
« Reply #14 on: 30 / January / 2015, 18:37:35 »
Is there any way to figure out if the focus is locked or not?
for example there is a function set_aflock(1) but there is no function get_aflock()
The mftest.lua script included with CHDK actually takes a couple of shots and tests to see if the focus changes as requested.   But I assume you probably don't want to do that.

So looking at the AFL propcase is probably your next best bet.   Use

Code: [Select]
afl=get_props(AF_LOCK)in Lua or the associated propcase number for your camera in uBASIC.
Ported :   A1200    SD940   G10    Powershot N    G16

 

Related Topics