use 50% instead of only 20% of the next adjacent leg for test fixes for mark passing tests;

solves testRace5 505 KW 2013 case which suffered from TracTrac's too early mark passings

Change-Id: I5f833a4299fc2ca7fea909c7fc2c6025aeebc10f
This commit is contained in:
Axel Uhl committed 2016-03-20 01:11:07 +01:00
1 parent 203ec84696
commit bec5a0757d
1 file changed
+1 -1
@@ -225,7 +225,7 @@ public abstract class AbstractMarkPassingTest extends OnlineTracTracBasedTest {
if (givenPasses.get(c).get(lastWaypointToBePassed) != null) {
final TimePoint lastGivenPassingToDetectAt = givenPasses.get(c).get(lastWaypointToBePassed).getTimePoint();
// add fixes up to 20% into the leg starting after the last passing to be detected
final TimePoint beforeNextPassing = lastGivenPassingToDetectAt.plus(lastGivenPassingToDetectAt.until(markPassingAfter.getTimePoint()).times(0.2));
final TimePoint beforeNextPassing = lastGivenPassingToDetectAt.plus(lastGivenPassingToDetectAt.until(markPassingAfter.getTimePoint()).times(0.5));
List<GPSFix> fixes = new ArrayList<GPSFix>();
try {
getTrackedRace().getTrack(c).lockForRead();