mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-16 09:11:02 +00:00
fixed filtering of wind fixes (after/before were swapped)
This commit is contained in:
1 parent
429f545298
commit
d4fc7d181e
1 file changed
+1
-1
+1
-1
@@ -574,7 +574,7 @@ DynamicTrackedRace, GPSTrackListener<Competitor, GPSFixMoving> {
|
||||
// record wind fix only if it's still within reasonable time after the race has ended or the race hasn't ended yet
|
||||
if (startOfTracking == null || endOfTracking == null
|
||||
|| (startOfTracking.before(wind.getTimePoint()) &&
|
||||
endOfTracking.plus(TimingConstants.IS_LIVE_GRACE_PERIOD_IN_MILLIS).before(wind.getTimePoint()))) {
|
||||
endOfTracking.plus(TimingConstants.IS_LIVE_GRACE_PERIOD_IN_MILLIS).after(wind.getTimePoint()))) {
|
||||
getOrCreateWindTrack(windSource).add(wind);
|
||||
updated(/* time point */null); // wind events shouldn't advance race time
|
||||
triggerManeuverCacheRecalculationForAllCompetitors();
|
||||
|
||||
Reference in new issue
Block a user