Focus out of reach
Closed this issue · 19 comments
This could be something that I am doing wrong rather than an issue.
I have an EOS 600D camera and an EF 400mm 1:2.8 L IS II USM lens. I am using LensAF 2.0.0.0 and NINA 2.1.1.3005.
The Calibrate Lens button works as expected, it slews the lens focus to max infinity, although I notice that does not seem to slew all the way to max infinity. It then leaves the focus there and sets the Position and Target Position to 100. Unfortunately, for this lens, the best focus position is now approximately -100, which cannot be reached because the focus position apparently cannot be set below zero. Perhaps the user could specify the position value after slewing to max infinity and then the Calibrate Lens button could slew to max infinity, set the position, and then move the lens to position 100.
I should note that the whole routine works very nicely if I just set the lens near optimum focus by hand and don't run the calibration routine. This, however, leaves me with an unknown shift in focus position from one night to the next. I would like to develop a focus position as a function of temperature curve and this unknown shift makes it harder, though I can see ways to get around the problem.
If this is a peculiarity of my lens I would be happy to work with you doing some testing. I could think about fixing the problem myself, but C# is not my best language.
I await comments or questions.
What I could do is add an input box for the amount of focuser steps needed to reach infinity and/or an input box to define to focuser position after the calibration process. What do you think?
- Sure, if you want you can create a pull request so I can merge it into the repository.
- The button should be just like the other buttons in NINA, could be an issue with your theme, however if all other buttons are working as expected I don't really know what could be causing this.
You need to create a fork first, then commit the changes to your fork and then you can create a pr, but don't worry, you can just send the changes into this issue ideally using code blocks (```)
I will grant you access to the repository tomorrow, so you can simply commit your changes to the repo.
I've sent you an invite, you just need to accept it and then you should be able to commit to this repository
I can't review them, they get pushed directly to the repository. However if there was something that would be completely wrong I could still go back to the previous commit, so feel free to push your changes 👍
In the solution explorer, there is a folder called properties, open it and double click Settings. There you can add a new variable (click on the empty field and start typing).
Examples on how to use this variable can be found in LensAF.cs
Thanks for your help, I will later quickly review the changes, update the net7 version as well and then upload a new release.
Again, thank you very much and when I publish the new release, I will close this issue
I implemented all the changes and created a pull request for it, so it will be available soon. Thank you for your contribution 👍