various stuff

update fiducial z when moved
autofocus param
camera settings
This commit is contained in:
2022-09-16 17:04:04 +02:00
parent ba4f5feecb
commit 33ce6c99f3
6 changed files with 104 additions and 14 deletions

View File

@@ -312,7 +312,7 @@ class geometry:
mx=mtr.argmax()
_log.debug(f'best focus at idx:{mx}= pos:{posLst[mx]} = metric:{mtr[mx]:.6g}')
if mx>0 and mx <len(posLst):
if mx>1 and mx+2<=len(posLst):
#fit parabola and interpolate:
# y=ax2+bx+c, at positions x=-1, 0, 1, y'= 2a+b == 0 (top of parabola)
# calc a,b,c: