The focus is ‘limited’ to 65535. But the far DoF is not limited, just reported.
While the CHDK wiki documentation says there is a 65.535 metre limit, I don't believe that is in fact true.
Metre limit?
My SX50 delivers values > 350000mm
Then I can produce slightly modified function EFLensCom.DistanceInfo which will return the arithmetic mean value between near and far subject distance.
Maybe
@pigeonhill will correct me now…
I don’t think that the arithmetic mean value between near and far subject distance is a good estimate for the focus distance. The values themselves are already a great help. Maybe the values can flow directly into get_dofinfo.
dof = get_dofinfo()
dof.near
dof.far
The EXIFtool uses the arithmetic mean value between near and far subject distance for distance. As you can see in the EXIF Data, the DOF calculator calculates then different value for near and far
Presumably, there is a formula that can be used to calculate the distance better.
Lens Model : EF24mm f/2.8 IS USM
Focus Distance Lower : 2.1 m
Focus Distance Upper : 3.67 m
Depth Of Field : 2.97 m (2.03 - 5.00 m)
The variable at 0x00244916(0x00244918) is updated regularly only with my Canon lenses.
You can check its behaviour with your lenses.
These addresses are only for M3 101a?
How do I have access to it? Just a ram dump in chdkptp?
I played something with MoveFocus.
lua call_event_proc("EFLensCom.MoveFocus",2500,10)
On small steps, the Focus Distance in the EXIF did not change. But that could also be due to the accuracy of EXIF data.
I find it interesting that I can move the focus with in manual lens setting. This has the advantage that the focus peaking works.
I would be interested to know where a tool, for example, helicon focus remote gets the distances.