mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-20 11:10:00 +00:00
Ensuring that better fallback fixes are always loaded for mark tracks
(not only if there is no fix present at all)
This commit is contained in:
1 parent
b1afd5f5e7
commit
354d313fdf
1 file changed
+2
-2
+2
-2
@@ -217,8 +217,8 @@ public class FixLoaderAndTracker implements TrackingDataLoader {
|
||||
Mark mark = (Mark) item;
|
||||
DynamicGPSFixTrack<Mark, GPSFix> track = trackedRace.getOrCreateTrack(mark);
|
||||
// load all mapped fixes if there was no fix in the tracking TimeRange
|
||||
final boolean loadAllMappedFixes = (track.getFirstRawFix() == null);
|
||||
if (loadAllMappedFixes) {
|
||||
GPSFix firstFixAfterStartOfTracking = track.getFirstFixAfter(trackingTimeRange.from());
|
||||
if(firstFixAfterStartOfTracking == null || firstFixAfterStartOfTracking.getTimePoint().after(trackingTimeRange.to())) {
|
||||
// either got an empty track of there is no mapping for the TimeRange of the race at all.
|
||||
// try again without constraining the mapping interval by start/end of tracking to at
|
||||
// least attempt to get fixes at all in case there were any within the device mapping interval specified
|
||||
|
||||
Reference in new issue
Block a user