M3 etc focus move - page 3 - General Help and Assistance on using CHDK stable releases - CHDK Forum

M3 etc focus move

  • 28 Replies
  • 377 Views
*

Offline c_joerg

  • *****
  • 1211
Re: M3 etc focus move
« Reply #20 on: 28 / June / 2022, 17:05:26 »
Advertisements
I can't remember what focal length I did it at... too many tries and I'm tired... but you can try the code on different focal lengths on your M3.
M100 100a, M3 101a, G9x II (1.00c), 2*G1x (101a,100e), S110 (103a), SX50 (100c), SX230 (101a), S45,
Flickr https://www.flickr.com/photos/136329431@N06/albums
YouTube https://www.youtube.com/channel/UCrTH0tHy9OYTVDzWIvXEMlw/videos?shelf_id=0&view=0&sort=dd

Re: M3 etc focus move
« Reply #21 on: Yesterday at 13:51:35 »
@c_joerg

Had a play with things this evening and the counter seems to behave well when I'm manually focusing.

I need to think about things a bit more, however. That is how to exploit the counter to provide additional positional feedback between the Canon cm based steps (upper or lower).

Cheers

Garry


*

Offline c_joerg

  • *****
  • 1211
Re: M3 etc focus move
« Reply #22 on: Yesterday at 14:12:58 »
Maybe you can interpolate the distances with it.
When i find time, i would log this values together with upper/lower on my M3M10M100_Focus.lua script.
M100 100a, M3 101a, G9x II (1.00c), 2*G1x (101a,100e), S110 (103a), SX50 (100c), SX230 (101a), S45,
Flickr https://www.flickr.com/photos/136329431@N06/albums
YouTube https://www.youtube.com/channel/UCrTH0tHy9OYTVDzWIvXEMlw/videos?shelf_id=0&view=0&sort=dd

Re: M3 etc focus move
« Reply #23 on: Yesterday at 14:25:36 »
Maybe you can interpolate the distances with it.
When i find time, i would log this values together with upper/lower on my M3M10M100_Focus.lua script.

I interpolate between Canon distances already, by counting myself, ie moving 1 step at a time.

I’ll carry on thinking about it ;-)


*

Offline Caefix

  • *****
  • 842
  • Sorry, busy deleting test shots...
Re: M3 etc focus move
« Reply #24 on: Yesterday at 14:32:02 »
... 0 after a shoot_half.  :-[
With AF : EFLens FocusPosition  : always 0, from near to infinity...

Edit: Btw, the [cm] unit of _upper | _lower is probably canonmeter, not centimeter.
« Last Edit: Yesterday at 14:43:36 by Caefix »
All lifetime is a loan from eternity.

Re: M3 etc focus move
« Reply #25 on: Yesterday at 14:52:21 »
... 0 after a shoot_half.  :-[
With AF : EFLens FocusPosition  : always 0, from near to infinity...

Edit: Btw, the [cm] unit of _upper | _lower is probably canonmeter, not centimeter.

Thankfully I don’t use AF  :) ;)

Re: M3 etc focus move
« Reply #26 on: Today at 01:09:21 »
Maybe you can interpolate the distances with it.
When i find time, i would log this values together with upper/lower on my M3M10M100_Focus.lua script.

I interpolate between Canon distances already, by counting myself, ie moving 1 step at a time.

I’ll carry on thinking about it ;-)

@c_joerg

I seem to have got the EFLens FocusPosition feedback stably working, the 'secret' is to set the lens to the maco end before calling FA.create, ie on script start up:

Code: [Select]
call_event_proc("EFLensCom.FocusSearchNear")
call_event_proc('FA.Create')
call_event_proc('InitializeAdjustmentSystem')

Once this is done, changing focal length keeps 0 at the macro end.

As to where to go next, my thought is to then create two look up tables, once again at the start of the script, or when the focal length changes. One table will hold where the Canon distances change, the other the step counter values at those distances.

Once the LUTs are set up, I can use EFLens FocusPosition to get where the lens is, then interpolate using the LUTs, albeit initially in a linear manner or using a simple Lagrange approach.

I be trying that next ;-)
« Last Edit: Today at 01:34:35 by pigeonhill »

*

Offline c_joerg

  • *****
  • 1211
Re: M3 etc focus move
« Reply #27 on: Today at 01:37:00 »
I seem to have got the EFLens FocusPosition feedback stably working, the 'secret' is to set the lens to the maco end before calling FA.create, ie on script start up:

Code: [Select]
call_event_proc("EFLensCom.FocusSearchNear")
call_event_proc('FA.Create')
call_event_proc('InitializeAdjustmentSystem')

Once this is done, changing focal length keeps 0 at the macro end.

Interesting. That also explains why I kept getting different results.
Nice finding  :)
M100 100a, M3 101a, G9x II (1.00c), 2*G1x (101a,100e), S110 (103a), SX50 (100c), SX230 (101a), S45,
Flickr https://www.flickr.com/photos/136329431@N06/albums
YouTube https://www.youtube.com/channel/UCrTH0tHy9OYTVDzWIvXEMlw/videos?shelf_id=0&view=0&sort=dd


Re: M3 etc focus move
« Reply #28 on: Today at 01:58:35 »
I seem to have got the EFLens FocusPosition feedback stably working, the 'secret' is to set the lens to the maco end before calling FA.create, ie on script start up:

Code: [Select]
call_event_proc("EFLensCom.FocusSearchNear")
call_event_proc('FA.Create')
call_event_proc('InitializeAdjustmentSystem')

Once this is done, changing focal length keeps 0 at the macro end.

Interesting. That also explains why I kept getting different results.
Nice finding  :)

 Caveat is, I only tested it a few times ;-)

 

Related Topics