<table><tr><td style="">murveit created this revision.<br />murveit added a reviewer: mutlaqja.<br />Herald added a project: KDE Edu.<br />Herald added a subscriber: kde-edu.<br />murveit requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D26615">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Refactoring in focus.cpp to separate this algorithm from the other algorithms.<br />
Uses a polynomial fit to estimage when the first pass is done, and how far the current sample is from the minimum.<br />
Improved logging.<br />
Improved plotting when running the algorithm.<br />
Algorithm applies to timer-based focusers as well as position-based ones.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Using the simulator, in the focus tab select the linear focus algorithm,<br />
set the step size to about 1000. Set the MaxTravel to be large (e.g. 100K),<br />
probably use "Full field" (that's less noisy). Should autofocus starting from 50K<br />
(the solution will be about 38K). Should also find a solution if you start too low (20K),<br />
and too high (75K) though would probably exceed the max number of steps (30) if you start higher.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R321 KStars</div></div></div><br /><div><strong>BRANCH</strong><div><div>linear-focuser-v2 (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D26615">https://phabricator.kde.org/D26615</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>kstars/ekos/focus/focus.cpp<br />
kstars/ekos/focus/focus.h<br />
kstars/ekos/focus/focus.ui<br />
kstars/ekos/focus/focusalgorithms.cpp<br />
kstars/ekos/focus/focusalgorithms.h<br />
kstars/ekos/focus/polynomialfit.cpp<br />
kstars/ekos/focus/polynomialfit.h</div></div></div><br /><div><strong>To: </strong>murveit, mutlaqja<br /><strong>Cc: </strong>kde-edu, narvaez, apol<br /></div>