Changeset View
Changeset View
Standalone View
Standalone View
kstars/ekos/focus/focusalgorithms.cpp
Show First 20 Lines • Show All 119 Lines • ▼ Show 20 Line(s) | 118 | { | |||
---|---|---|---|---|---|
120 | stepSize = params.initialStepSize; | 120 | stepSize = params.initialStepSize; | ||
121 | inFirstPass = true; | 121 | inFirstPass = true; | ||
122 | firstPassBestValue = -1; | 122 | firstPassBestValue = -1; | ||
123 | numPolySolutionsFound = 0; | 123 | numPolySolutionsFound = 0; | ||
124 | numRestartSolutionsFound = 0; | 124 | numRestartSolutionsFound = 0; | ||
125 | secondPassStartIndex = -1; | 125 | secondPassStartIndex = -1; | ||
126 | 126 | | |||
127 | qCDebug(KSTARS_EKOS_FOCUS) | 127 | qCDebug(KSTARS_EKOS_FOCUS) | ||
128 | << QString("Linear: v3. 1st pass. Travel %1 initStep %2 pos %3 min %4 max %5 maxIters %6 tolerance %7 minlimit %8 maxlimit %9") | 128 | << QString("Linear: v3.1. 1st pass. Travel %1 initStep %2 pos %3 min %4 max %5 maxIters %6 tolerance %7 minlimit %8 maxlimit %9") | ||
129 | .arg(params.maxTravel).arg(params.initialStepSize).arg(params.startPosition).arg(params.minPositionAllowed) | 129 | .arg(params.maxTravel).arg(params.initialStepSize).arg(params.startPosition).arg(params.minPositionAllowed) | ||
130 | .arg(params.maxPositionAllowed).arg(params.maxIterations).arg(params.focusTolerance).arg(minPositionLimit).arg(maxPositionLimit); | 130 | .arg(params.maxPositionAllowed).arg(params.maxIterations).arg(params.focusTolerance).arg(minPositionLimit).arg(maxPositionLimit); | ||
131 | 131 | | |||
132 | const int position = params.startPosition; | 132 | const int position = params.startPosition; | ||
133 | int start, end; | 133 | int start, end; | ||
134 | 134 | | |||
135 | // If the bounds allow, set the focus to half-travel above the current position | 135 | // If the bounds allow, set the focus to half-travel above the current position | ||
136 | // and sample focusing in down-to half-travel below the current position. | 136 | // and sample focusing in down-to half-travel below the current position. | ||
▲ Show 20 Lines • Show All 269 Lines • Show Last 20 Lines |