Focus function for EOS M3 / M10 - page 4 - General Help and Assistance on using CHDK stable releases - CHDK Forum

Focus function for EOS M3 / M10

  • 60 Replies
  • 1748 Views
*

Offline srsa_4c

  • ******
  • 3940
Re: Focus function for EOS M3 / M10
« Reply #30 on: 27 / April / 2019, 08:55:48 »
Advertisements
I added M10 support to Joerg's script, using Ant's hint (thanks).
Made a LOG run with focus step set to 5 (an arbitrary value), using the EF_M 15-45 @15 and @45 mm.

Re: Focus function for EOS M3 / M10
« Reply #31 on: 29 / April / 2019, 05:05:32 »
Made a LOG run with focus step set to 5 (an arbitrary value), using the EF_M 15-45 @15 and @45 mm.
Attached the plots for the EF-M 15-45.
Do you happen to know where those values are populated? 0x244918 is inside a huge structure and is not referenced directly (the firmware's addressing is very hard to follow, lots of base + offset variations).

Are there any other values where logging would be worthwhile?
For example, an absolute step counter?
M100 100a, M3 101a, 2*G1x (101a,100e), S110 (103a), SX50 (100c), SX230 (101a), 2*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

*

Offline srsa_4c

  • ******
  • 3940
Re: Focus function for EOS M3 / M10
« Reply #32 on: 29 / April / 2019, 17:04:29 »
Are there any other values where logging would be worthwhile?
For example, an absolute step counter?
I don't know, I did not look. The address you're getting the distance data is inside a big struct that has all sorts of lens related stuff (some are bytes, some are halfwords, there might be words too). If you read from neighboring addresses, you may find a counter (if it exists).
late edit:
related thread on ML forum: https://www.magiclantern.fm/forum/index.php?topic=23946.0
« Last Edit: 04 / May / 2019, 17:44:55 by srsa_4c »

Re: Focus function for EOS M3 / M10
« Reply #33 on: 10 / August / 2019, 11:03:23 »
@pigeonhill asked me about the differences in the plots EFM1122_11mm_Step1 vs Focus_EFM1122_11mm_Step10.
Different step sizes result in different distances.

I had not noticed that until. Something can not be right. I am currently on the road and I do not have the M3 with me and will check it as soon as I am at home. Maybe the delay was too small ...
M100 100a, M3 101a, 2*G1x (101a,100e), S110 (103a), SX50 (100c), SX230 (101a), 2*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: Focus function for EOS M3 / M10
« Reply #34 on: 10 / August / 2019, 11:29:42 »
@c_joerg

Thanks for picking this up. I must say I’ve looked at you plots and tables lots of times and just never got the difference ;-)

Both curves look well behaved.

In my M3 script I use 25ms as the sleep, before grabbing upper or lower distances.

Cheers

Garry

Re: Focus function for EOS M3 / M10
« Reply #35 on: 13 / August / 2019, 11:46:43 »
It is very confusing. I can reproduce the differences in the EFM 11-22.

After that I took the EFM 15-45 (at 15mm). Again, there are big differences between 1 and 10 steps. I have to try that with 5 steps. 5 steps are pretty much identical to 10 steps. But I have differences to @srsa_4c Step 5 running from Reply #30

Step size 1 => Maximum distance at 199 steps
Step size 5 => Maximum distance at 137*5=685 steps
Step size 10 => Maximum distance at 134*5=670 steps
Step size 5 srsa_4c  => Maximum distance at 103*5=515 steps

Delay after call_event_proc("EFLensCom.MoveFocus",steps,speed) was set to 500ms. I changed speed from 200 to 100 with no differences. I checked MF and AF with no differences.
On my EF lenses I can’t see differences when I changed steps…



M100 100a, M3 101a, 2*G1x (101a,100e), S110 (103a), SX50 (100c), SX230 (101a), 2*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: Focus function for EOS M3 / M10
« Reply #36 on: 13 / August / 2019, 12:33:57 »
@c_joerg

Like you, I’m mystified.

The only thing up really interested with is ensuring that the reported focus distance, ie upper or low, are ok and consistent.

Looking at the results from my script, ie in post, I’m currently content.

Re: Focus function for EOS M3 / M10
« Reply #37 on: 13 / August / 2019, 14:18:26 »
Same problem with EF-S 55-250mm IS STM…
Only EF 50mm f1.8 STM and EF 100mm f/2.8 Macro USM have no differences with 1 step and 10 steps.

The only thing up really interested with is ensuring that the reported focus distance, ie upper or low, are ok and consistent.
 
In the moment, I would trust more the upper and lower distance…
Presumably you cannot use every increment of each lens. If you take 10 steps, then maybe only 4 real steps.
M100 100a, M3 101a, 2*G1x (101a,100e), S110 (103a), SX50 (100c), SX230 (101a), 2*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: Focus function for EOS M3 / M10
« Reply #38 on: 14 / August / 2019, 05:52:43 »
Looking at the results from my script, ie in post, I’m currently content.

If I understand your script correctly, then you always use speed=1. Does this have a special reason?
M100 100a, M3 101a, 2*G1x (101a,100e), S110 (103a), SX50 (100c), SX230 (101a), 2*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: Focus function for EOS M3 / M10
« Reply #39 on: 14 / August / 2019, 07:27:43 »

@c_joerg


Quote
If I understand your script correctly, then you always use speed=1. Does this have a special reason?


Yes, as any other number doesn't seem to influence things  ;)

 

Related Topics