be more conservative in the wind estimator and require less than only half the minimum maneuver angle for !hasDirectionChange

This commit is contained in:
Axel Uhl committed 2014-01-17 16:00:31 +01:00
1 parent d51e5f6836
commit ce815af3e9
1 file changed
+3 -1
@@ -1666,7 +1666,9 @@ public abstract class TrackedRaceImpl extends TrackedRaceWithWindEssentials impl
}
if (legType != LegType.REACHING) {
GPSFixTrack<Competitor, GPSFixMoving> track = getTrack(competitor);
if (!track.hasDirectionChange(timePoint, getManeuverDegreeAngleThreshold())) {
if (!track.hasDirectionChange(timePoint,
/* be even more conservative than maneuver detection to really try to get "straight line" behavior */
getManeuverDegreeAngleThreshold()/2.)) {
SpeedWithBearingWithConfidence<TimePoint> estimatedSpeedWithConfidence = track
.getEstimatedSpeed(timePoint, weigher);
if (estimatedSpeedWithConfidence != null