Auto focus settings

Somewhere to ask questions about the best way to use SharpCap
Forum rules


If you have a problem or question, please check the FAQ to see if it already has an answer : https://www.sharpcap.co.uk/sharpcap-faqs
Chris_h
Posts: 43
Joined: Thu Dec 13, 2018 2:45 am

Auto focus settings

#1

Post by Chris_h »

How do I adjust the settings for the auto focus routine? It does not seem to matter what values I plug in under options, it will still overshoot the focus point massively. It will then fail, saying it could not find best focus position.

I have no problem using the auto focus routine in SGP or NINA, so nothing wrong with the equipment.

Help!
Attachments
sc.jpg
sc.jpg (600.16 KiB) Viewed 2219 times
User avatar
admin
Site Admin
Posts: 13330
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: Auto focus settings

#2

Post by admin »

Hi Chris,

based on your graph I'd suggest a smaller step size, so that there are more points in the dip section. I think 5 is probably too few to allow SharpCap to be confident of fitting the data (maybe that is being pessimistic). If you reduce the step size so that you get 7-10 points in the dip it should be fine.

cheers,

Robin
Chris_h
Posts: 43
Joined: Thu Dec 13, 2018 2:45 am

Re: Auto focus settings

#3

Post by Chris_h »

Hi Robin,

I tried a lot of combinations. I even had it down to 1, expecting it to crawl in. But nothing changed. It always gave me the same graph you see in the screenshot.

I even fired up NINA and ran its auto focus, just to check if anything was wrong. But it worked flawlessly. So I am VERY confused!
User avatar
admin
Site Admin
Posts: 13330
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: Auto focus settings

#4

Post by admin »

Hi Chris,

Ok, maybe you adjusted the wrong step size (and it is not clear which one to adjust).

You need to press the 'Options' button below the scan in/out buttons - when you press that you can adjust the step size used for autofocus. The steps shown on the right are used for manual adjustments not autofocus.

Hopefully that's it.

cheers,

Robin
ChrisR Oz
Posts: 161
Joined: Tue Sep 28, 2021 11:03 am
Location: Melbourne

Re: Auto focus settings

#5

Post by ChrisR Oz »

Hi Robin,

I have a couple of problems using the “autofocus”. Firstly, it pops up two windows, one with a log and one asking to position the selection box. These fill the whole screen, which gets in the way. I need to move the log aside and then set a box BEFORE hitting OK on the pop-up. If I click OK only, it doesn’t seem to use the previous box. In the middle of the night, there’s too much to get wrong; I still find it simpler to manually offset the focus and then ‘reset’, ‘out’ to scan focus.

Perhaps the log could be optional (add a checkbox in “hardware” setup?) and make OK use current box. Also position the box pop-up to the right, so I can see if the current Box is still OK (else I can double click to position a new one)? Then most times a simple OK will start the process. If after a meridian flip, I need to reposition the box a little, I will see that immediately, rather than go looking for it.

Occasionally, I type incorrectly into the Focuser position and all hell breaks loose (stop Focuser, which seems to upset CPWI-SharpCap communication; restart SC; then get Focuser back). The autofocus is brilliant at avoiding these issues. It just needs a tweak.

Cheers, Chris.
Celestron EdgeHD 8, reducer 0.7x, Star Sense, CGX-L mount, Focuser, CPWI; Starlight Xpress AO, OAG and Filter Wheel; ZWO 294MC/294MM Pro and 174MM mini; SharpCap Pro, PHD2, Televue Powermate 2x, Baader Neodymium, Astronomik CLS-CCD, ZWO UV/IR, Duo filters
Chris_h
Posts: 43
Joined: Thu Dec 13, 2018 2:45 am

Re: Auto focus settings

#6

Post by Chris_h »

Hi Robin,

I thought I did. But I will give it another go once the weather clears up.

Thanks again!
User avatar
admin
Site Admin
Posts: 13330
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: Auto focus settings

#7

Post by admin »

Hi folks,

thanks for the feedback on the positioning of the progress/log window when running autofocus. I think moving it to the right is a good start to making it easier to use. It would be nice to get rid of as long as the progress is visible somewhere else. What I do want to avoid is any confusion in the form of 'I pressed autofocus and I have no idea what is happinging'...

cheers,

Robin
Chris_h
Posts: 43
Joined: Thu Dec 13, 2018 2:45 am

Re: Auto focus settings

#8

Post by Chris_h »

OK, it is starting to get darker again, so I thought I would give this another go. It still fails miserably..

When I open up the Options, I get these default settings:

sc01.jpg
sc01.jpg (108.29 KiB) Viewed 1934 times

If I run them, I get:

'Focus scan between 41066 and 42966 in 20 steps of 100' while running step Autofocus between 41066 and 42966 with 20 steps allowing for backlash up to 0'

OK, all is good, as these were the values that was set for Step Size and Step Count.

BUT, as you can see when I change the values, it will STILL use the OLD ones!

sc02.jpg
sc02.jpg (107.2 KiB) Viewed 1934 times

'Focus scan between 41066 and 42966 in 20 steps of 100' while running step Autofocus between 41066 and 42966 with 20 steps allowing for backlash up to 0'

Step Size and Step Count should now be 1, right?

I really want this to work! But so far, I have had no luck.
User avatar
admin
Site Admin
Posts: 13330
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: Auto focus settings

#9

Post by admin »

Hi Chris,

given the message you are seeing (the 'allowing for backlash up to ...') one, I can work out that you are using one of the sequencer autofocus steps. These have their own properties to set how many points are visited in the focus scan and ignore the ones previously set in the SharpCap UI.
Capture.JPG
Capture.JPG (69.49 KiB) Viewed 1933 times
For instance, as shown above the scan will take 10 (or maybe 11) measurements between positions 1000 and 2000, with a gap of 100 (or maybe its 111) between each measurement point (can't quite recall if it works out the step as distance/steps or distance/(steps-1), but you get the idea).

On the other hand, if you use the 'Refocus' step or the 'Refocus' button in the UI, it will run with the most recent successful settings that were used for a manual scan or a scan using one of the autofocus steps.

Hope that helps - maybe I need to make this a bit simpler!

Robin
Chris_h
Posts: 43
Joined: Thu Dec 13, 2018 2:45 am

Re: Auto focus settings

#10

Post by Chris_h »

Hi Robin,

No. I was just using the "Focus Assistant" to try and get focused. But after you mentioned sequencer, I went into "Deep Sky Sequence Planner" to see if anything was checked. Nothing is active. But I see the same numbers there.

sc1.jpg
sc1.jpg (146.55 KiB) Viewed 1919 times

I also checked the sequencer tab, and nothing is active.

sc2.jpg
sc2.jpg (205.48 KiB) Viewed 1919 times

A bug maybe? Even if nothing is checked in DSSP, it will still override the "Focus Assistant" settings?

Anyway, I will give DSSP a go next time the weather cooperates, as I will be using that anyway.

- Chris
Post Reply