mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-23 12:33:53 +00:00
be more conservative in the wind estimator and require less than only half the minimum maneuver angle for !hasDirectionChange
This commit is contained in:
1 parent
d51e5f6836
commit
ce815af3e9
1 file changed
+3
-1
+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
|
||||
|
||||
Reference in new issue
Block a user