Skip to content
Snippets Groups Projects
Commit e5bb6112 authored by Luc Maisonobe's avatar Luc Maisonobe
Browse files

Fixed loop detection threshold in inver location.

parent 86a0ac05
No related branches found
No related tags found
No related merge requests found
......@@ -327,7 +327,7 @@ public class SensorMeanPlaneCrossing {
}
crossingLine += deltaL;
for (int j = 0; j < i; ++j) {
if (FastMath.abs(crossingLine - searchHistory[j]) <= 0.01 * FastMath.abs(deltaL)) {
if (FastMath.abs(crossingLine - searchHistory[j]) <= 1.0) {
// rare case: we are stuck in a loop!
// switch to a more robust (but slower) algorithm in this case
return slowFind(targetPV, crossingLine);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment