Increased "climbcount" to improve peak detection

This commit is contained in:
oparviai 2012-08-30 16:28:27 +00:00
parent e5a0079b6a
commit 6fc0dd1867

View File

@ -132,7 +132,7 @@ int PeakFinder::findGround(const float *data, int peakpos, int direction) const
{
// going uphill, increase climbing counter
climb_count ++;
if (climb_count > 5) break; // we've been climbing too long => it's next uphill => quit
if (climb_count >= 10) break; // we've been climbing too long => it's next uphill => quit
}
}
return lowpos;