Setting focus from scripts or menus - page 7 - General Discussion and Assistance - CHDK Forum

Setting focus from scripts or menus

  • 601 Replies
  • 214044 Views
*

Offline JohnW

  • *
  • 13
Advertisements
For G15, let me know if you need the camera setup in any particular way :)


For G15, let me know if you need the camera setup in any particular way :)
It looks like you have the Canon AF Mode set to Continuous rather than Single.  Would you please rerun the test with the AF mode set to Single.

TIA
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline JohnW

  • *
  • 13
Like this?  Still seems like a raft of failio.

Like this?  Still seems like a raft of failio.
Hmmm ... not good if you are hoping to set focus via a CHDK script.  However, there are two more things to try.   

First of all,  you have the camera in shutter priority (Tv) mode.  Can you put it into program mode "P"  (and not AUTO please).   

Secondly,  go to the CHDK Miscellaneous menu and enable the menu item that say  Enable Lua Native Calls [ * ] .   Then go to the Script menu and down at the bottom,  enable the menu item that says  Use SS.MFOn [ * ].   

After all that,  rerun the tests and report back again?  Thanks!
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline nafraf

  • *****
  • 1308
sx510, changing default values to:
#undef  CAM_CAN_SD_OVER_NOT_IN_MF
#define CAM_CAN_SD_OVER_IN_AF_LOCK        1
camera now passes 'set_aflock'




*

Offline JohnW

  • *
  • 13
Like this?  Still seems like a raft of failio.
Hmmm ... not good if you are hoping to set focus via a CHDK script.  However, there are two more things to try.   

First of all,  you have the camera in shutter priority (Tv) mode.  Can you put it into program mode "P"  (and not AUTO please).   

Secondly,  go to the CHDK Miscellaneous menu and enable the menu item that say  Enable Lua Native Calls [ * ] .   Then go to the Script menu and down at the bottom,  enable the menu item that says  Use SS.MFOn [ * ].   

After all that,  rerun the tests and report back again?  Thanks!

Ok SS.MFOn works - I can tell because I was looking at the display and it was taking out of focus pictures :)

*

Offline philmoz

  • *****
  • 3450
    • Photos
Like this?  Still seems like a raft of failio.
Hmmm ... not good if you are hoping to set focus via a CHDK script.  However, there are two more things to try.   

First of all,  you have the camera in shutter priority (Tv) mode.  Can you put it into program mode "P"  (and not AUTO please).   

Secondly,  go to the CHDK Miscellaneous menu and enable the menu item that say  Enable Lua Native Calls [ * ] .   Then go to the Script menu and down at the bottom,  enable the menu item that says  Use SS.MFOn [ * ].   

After all that,  rerun the tests and report back again?  Thanks!

Ok SS.MFOn works - I can tell because I was looking at the display and it was taking out of focus pictures :)

If you have time can you try the attached version (G15, 1.00e).
I've made the same change that I used on the G12, after which all tests passed.

Phil.
CHDK ports:
  sx30is (1.00c, 1.00h, 1.00l, 1.00n & 1.00p)
  g12 (1.00c, 1.00e, 1.00f & 1.00g)
  sx130is (1.01d & 1.01f)
  ixus310hs (1.00a & 1.01a)
  sx40hs (1.00d, 1.00g & 1.00i)
  g1x (1.00e, 1.00f & 1.00g)
  g5x (1.00c, 1.01a, 1.01b)
  g7x2 (1.01a, 1.01b, 1.10b)

*

Offline JohnW

  • *
  • 13
Phil,

I've tried, it does the first test and passes.

It starts to run the second test, the screen stops updating then the camera loses all power.

If I enable the native LUA calls it fails the first test, and then stops in the same place on the second test.

John.

*

Offline fe50

  • ******
  • 3152
  • IXUS50 & 860, SX10 Star WARs-Star RAWs
    • fe50
Ixus860_SD870 1.00C, (M mode)
 CHDKDE v1.2 and v1.3,
  SS.MFOn enabled & disabled

It starts to run the second test, the screen stops updating then the camera loses all power.
Strange that using set_aflock() will cause the second test to fail when it tried to set_focus but the first test passes.

Quote
If I enable the native LUA calls it fails the first test, and then stops in the same place on the second test.
That makes no sense at all.  Can you please post the mf_test.csv from both tests?
Ported :   A1200    SD940   G10    Powershot N    G16

 

Related Topics


SimplePortal © 2008-2014, SimplePortal