mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-21 19:50:01 +00:00
fix for invalid tail starts being appended, if tail starts before the race
This commit is contained in:
1 parent
192e558518
commit
bbdc6cedd6
1 file changed
+1
-7
+1
-7
@@ -414,13 +414,7 @@ public class GPSFixTrackImpl<ItemType, FixType extends GPSFix> extends MappedTra
|
||||
final Position result;
|
||||
// TODO bug #346: compute a confidence value for the position returned based on time difference between fix(es) and timePoint; consider using Taylor approximation of more fixes around timePoint to predict and weigh position
|
||||
if (lastFixAtOrBefore == null) {
|
||||
if (firstFixAtOrAfter == null) {
|
||||
// no fix at all; cannot determine a position
|
||||
result = null;
|
||||
} else {
|
||||
// only one fix valid; extrapolate or use unchanged
|
||||
result = getEstimatedPosition(timePoint, firstFixAtOrAfter, extrapolate);
|
||||
}
|
||||
result = null;
|
||||
} else {
|
||||
if (firstFixAtOrAfter == null) {
|
||||
// only one fix valid; extrapolate or use unchanged
|
||||
|
||||
Reference in new issue
Block a user