mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-14 08:11:00 +00:00
most likely a fix for bug 3932: FixLoaderAndTracker.loadFixes didn't honor the timeRangeToLoad for competitor and mark tracks
Change-Id: I50b1fc88d1a4091924507f5aaa2851c38de5e26d
This commit is contained in:
1 parent
80e5dba10a
commit
2cea4720f7
1 file changed
+5
-7
+5
-7
@@ -197,8 +197,8 @@ public class FixLoaderAndTracker implements TrackingDataLoader {
|
||||
try {
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
DeviceMapping<Competitor> competitorMapping = (DeviceMapping<Competitor>) mapping;
|
||||
gpsFixStore.loadCompetitorTrack(track, competitorMapping, getStartOfTracking(),
|
||||
getEndOfTracking());
|
||||
gpsFixStore.loadCompetitorTrack(track, competitorMapping, timeRangeToLoad.from(),
|
||||
timeRangeToLoad.to());
|
||||
} catch (TransformationException | NoCorrespondingServiceRegisteredException e) {
|
||||
logger.log(Level.WARNING, "Could not load competitor track " + mapping.getMappedTo());
|
||||
}
|
||||
@@ -211,12 +211,10 @@ public class FixLoaderAndTracker implements TrackingDataLoader {
|
||||
try {
|
||||
@SuppressWarnings("unchecked")
|
||||
DeviceMapping<Mark> markMapping = (DeviceMapping<Mark>) mapping;
|
||||
TimePoint from = getStartOfTracking();
|
||||
TimePoint to = getEndOfTracking();
|
||||
gpsFixStore.loadMarkTrack(track, markMapping, from, to);
|
||||
gpsFixStore.loadMarkTrack(track, markMapping, timeRangeToLoad.from(), timeRangeToLoad.to());
|
||||
if (track.getFirstRawFix() == null) {
|
||||
logger.fine("Loading mark positions from outside of start/end of tracking interval (" + from
|
||||
+ ".." + to + ") because no fixes were found in that interval");
|
||||
logger.fine("Loading mark positions from outside of start/end of tracking interval (" + timeRangeToLoad.from()
|
||||
+ ".." + timeRangeToLoad.to() + ") because no fixes were found in that interval");
|
||||
// got an empty track for the mark; 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