Originally Posted by
Bob Denny
1. FocusMax Issues
01:54:28 Switching from V to C filter for pointing exposure
01:54:28 Focus change of -1 steps required
01:54:33 **Pointing update error from FocusMax:
Object variable or With block variable not set
In preparation for a pointing update...
What pointing update?
I have AcquireStar configured so that no pointing update is done at any time during the focus run. There is no need for a pointing update because the mount points well enough in the blind...so it's not enabled in AcquireStar.
Looking inside AcquireScheduler.VBS, there's a section in SubMain() that has these remarks/comments:
'
' If AutoFocus requested, do it now. AutoFlip before doing it
' if needed. 4.2 -- SUP.AutoFocus() -never- does a return
' slew pointing update. So we always do it.
Interesting. I've got the pointing updates turned off in AcquireStar....but AcquireScheduler says it's always gonna do a pointing update.
There is only one place in AcquireScheduler.VBS where this text string is found: Console.PrintLine "**Pointing update error from " ...and it's found in the nested IF/Then/Else clauses that deal with pointing updates. This section of the code starts with:
Code:
If Not repeatObs Or bNeedPostAFPtgUpd Then
I don't think I need a post autofocus pointing update...but in the previous code that variable must be set to true.
Here's the previous code that is hard-wired to say that I need a pointing update:
Code:
bNeedPostAFPtgUpd = False ' True if we do an AF here, for PtgUpd
If OBS.AutoFocus Then ' If AF requested
If Prefs.AutoFocus.Enabled Then ' And enabled in ACP
If PREFLIPMARGIN > 0 Then z = PREFLIPMARGIN Else z = 0 ' Ignore negative PREFLIPMARGIN
AutoFlipIf (NOMINALAFTIME + NOMINALPUTIME + z), OBS.Name, _
OBS.RA, TargetRARate, _
OBS.Dec, TargetDecRate, OBS.PA ' Note we add PtgUpd time here to avoid flip before post-AF update
Call SUP.AutoFocus(OBS.RA, OBS.Dec) ' Focus now (most errors non-fatal)
bNeedPostAFPtgUpd = True
Console.PrintLine "KR bNeedPostAFPtgUpd = True"
Else
Console.PrintLine "**Autofocus requested, but it is disabled in ACP, skipped"
End If
End If
Could this be the source of the conflict...AcquireScheduler wants to (always) do a pointing update, but AcquireStar is set up to avoid performing any pointing updates?
(In AcquireStar you can use a centering exposure to start the focus run - I've got that option selected as 'none'. I have disabled the post-focus pointing update by not enabling PinPoint within AcquireStar. This is how it's set up on all scopes here.)
Perhaps I can alter the logic in AcquireScheduler.VBS to set bNeedPostAFPtgUpd to false instead of true? (That does not ID or fix the source of the error...but it may sidestep the issue and give me a working rig?)