Herrhausen wrote: A vast improvement! Many thanks for devoting time on this!
1. The focuser did not fully shape the V which he normally would do. This may have made it difficult to determine the optimal focus.
2. The points should be further apart from each other. Although I chose step size 1100 thus made sure near3 and far3 were used at the beginning, it took many iterations to get close to optimal focus.
I've had several runs with varying tolerance, starting points, etc. Although these attempts ended close to optimal focus, they were reported as unsuccessful.
The 300mm Tele that I used would benefit from lower thresholds for far3/near3 and far2/near2, maybe something like 500ms and 100ms. This on the other hand could be too low for wide field lenses.
I aimed at an LED at 5m distance. Some problems that I experienced may stem from the fact that no real star was used. Also, with real stars it should be easier to start the process very close to the optimal focus which would drastically reduce the number of iterations.