X-Git-Url: http://gitweb.fperrin.net/?p=GpsPrune.git;a=blobdiff_plain;f=tim%2Fprune%2Fdata%2FSpeedCalculator.java;fp=tim%2Fprune%2Fdata%2FSpeedCalculator.java;h=96677ca04ae74797fd13080c9978acb439f801d7;hp=49fd05665a90e8788e3806e5f740d773f7c4cc0f;hb=92dad5df664287acb51728e9ea599f150765d34a;hpb=81843c3d8d0771bf00d0f26034a13aa515465c78 diff --git a/tim/prune/data/SpeedCalculator.java b/tim/prune/data/SpeedCalculator.java index 49fd056..96677ca 100644 --- a/tim/prune/data/SpeedCalculator.java +++ b/tim/prune/data/SpeedCalculator.java @@ -79,7 +79,7 @@ public abstract class SpeedCalculator lateStamp = p.getTimestamp(); } - stop = (p == null) || p.getSegmentStart() || hasSufficientTimeDifference(point, p); + stop = (p == null) || p.getSegmentStart() || hasSufficientTimeDifference(point, p); index++; if (p != null && !p.isWaypoint()) { q = p; @@ -153,7 +153,7 @@ public abstract class SpeedCalculator if (p.hasAltitude()) firstAlt = p.getAltitude(); } - stop = (p == null) || p.getSegmentStart() || hasSufficientTimeDifference(p, point); + stop = (p == null) || p.getSegmentStart() || hasSufficientTimeDifference(p, point); index--; } while (!stop); @@ -173,7 +173,7 @@ public abstract class SpeedCalculator if (p.hasAltitude()) lastAlt = p.getAltitude(); } - stop = (p == null) || p.getSegmentStart() || hasSufficientTimeDifference(point, p); + stop = (p == null) || p.getSegmentStart() || hasSufficientTimeDifference(point, p); index++; } while (!stop);