Introduce the linear focuser
ClosedPublic

Authored by murveit on Dec 18 2019, 1:33 AM.

Details

Summary

Linear focuser is a simple autofocus algorithm that always scans in,
sampling at regularly spaced intervals. It may be slower than the
other algoriths, but the hope is that by minimizing direction changes
backlash will be minimized and the algorithm may provide more stable
autofocus results. This change also introduces an interface that hides
the implmentation of the autofocus algorithm, and future changes may
moved the other existing algorithms into this framework.

Linear focuser mainly works well when started near the ultimate focus position.
It depends on the step-size, max-travel, and tolderance parameters, which should be
chosen well. It may take more iterations to find focus than the other algorithms.

Test Plan

Like other autofocus algorithms, use the simulator and set the position and step-size such that
the best focus is within 5 or so steps from the current position. It should then find focus.

Diff Detail

Repository
R321 KStars
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
murveit created this revision.Dec 18 2019, 1:33 AM
Restricted Application added a project: KDE Edu. · View Herald TranscriptDec 18 2019, 1:33 AM
Restricted Application added a subscriber: kde-edu. · View Herald Transcript
murveit requested review of this revision.Dec 18 2019, 1:33 AM

Thanks in advance for fixing the minor issues mentioned below.

kstars/ekos/focus/focus.cpp
926

That should be i18n("outward") and i18n("inward")

940
1675
kstars/ekos/focus/focusalgorithms.h
3

It would be better to put some email here, otherwise, we will have one more EBN warning about copyright:

http://ebn.kde.org/krazy/reports/extragear/edu/kstars/index.html

murveit updated this revision to Diff 71759.Dec 18 2019, 8:26 AM

Updates for i18n/i18np and for author header.

mutlaqja accepted this revision.Dec 22 2019, 5:24 AM

Great! There are minor changes but I'll make them after I land your patch. Thank you, this is awesome!

This revision is now accepted and ready to land.Dec 22 2019, 5:24 AM
This revision was automatically updated to reflect the committed changes.