Logfile Autofocus star number?

Hi @Ken, @Jared

I noticed that the star number used for the HFR measurement is logged twice for each AF frame, but these values do not match. I my files there is consistently twice as many stars when the HFR value is logged, see example here (114 stars vs. 228 stars):

[11/26/22 18:04:24.104][DEBUG][Main Thread][SQ;AF;] Star list contains 114 stars…
[11/26/22 18:04:24.104][DEBUG][Main Thread][SQ;AF;] Calculating HFR with sample size: 3
[11/26/22 18:04:24.195][DEBUG][Main Thread][SQ;AF;] ImageViewer Fit to screen…
[11/26/22 18:04:24.195][DEBUG][Main Thread][SQ;AF;] FitToScreen => xRatio: 0.83; yRatio: 0.61
[11/26/22 18:04:24.195][DEBUG][Main Thread][SQ;AF;] FitToScreen => panelWidth: 1142; panelHeight: 667
[11/26/22 18:04:24.195][DEBUG][Main Thread][SQ;AF;] FitToScreen => imgWidth: 1374; imgHeight: 1099
[11/26/22 18:04:24.196][DEBUG][Main Thread][SQ;AF;] FitToScreen => Calculated Zoom => 0.607; Bounds => {X=0,Y=0,Width=834,Height=667}
[11/26/22 18:04:24.198][DEBUG][Main Thread][SQ;AF;] Display Image => Size to fit used…
[11/26/22 18:04:24.315][DEBUG][Camera Thread][SQ;AF;] CaptureAutoFocusFrame success…
[11/26/22 18:04:25.358][DEBUG][Camera Thread][SQ;AF;] Auto focus Half Flux Radius calculated at: 1.81 with 228 stars

What is the correct value ? Why is it different ?

Now the SGP AF Logviewer is grabbing the value given in “Star list contains …”

Thanks, Mikael

We’ll take a look. What focuser are you using when this happens and do you know if it’s always a 2x difference?

You mean which AF method in SGP ? This is the SGP native one. For ASTAP I know that the two values are very different, presumably you report the ASTAP star number when you log the HFD value ?

I looked through one logfile, and the value is always 2x (within the rounding error when one value is odd). I checked another one, the same issue. Here is an example : logfile

Mikael