NMEA test had 0/0 SOG/COG and was affected by the patch fixing the TracTrac 0/0 SOG/COG issue;

this led to a follow-up issue in the test readWindVaneNmeaIntoWindTrack because the speed inferred
was less than 0.01kts; I now lowered the threshold below which the bearing confidence goes to 0 to
0.001 (from 0.01), making this test case pass again
This commit is contained in:
Axel Uhl committed 2014-06-03 20:33:55 +02:00
1 parent 0f6e5c651e
commit baae57d3e1
5 files changed
+5 -7

No files matched your search

@@ -671,7 +671,7 @@ public class GPSFixTrackImpl<ItemType, FixType extends GPSFix> extends TrackImpl
0.9, relativeTo); 0.9, relativeTo);
speeds.add(speedWithConfidence); speeds.add(speedWithConfidence);
double bearingConfidence = 0.9; double bearingConfidence = 0.9;
if (speed.getKnots() < 0.01) { if (speed.getKnots() < 0.001) {
bearingConfidence = 0; bearingConfidence = 0;
} }
bearingCluster.add(new BearingWithConfidenceImpl<TimePoint>(last.getPosition().getBearingGreatCircle(next.getPosition()), bearingCluster.add(new BearingWithConfidenceImpl<TimePoint>(last.getPosition().getBearingGreatCircle(next.getPosition()),
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<classpath> <classpath>
<classpathentry exported="true" kind="lib" path="lib/routeconverter.jar"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src"/> <classpathentry kind="src" path="src"/>
@@ -11,6 +11,6 @@ Require-Bundle: org.junit4;bundle-version="4.8.2",
com.sap.sailing.domain, com.sap.sailing.domain,
com.sap.sailing.domain.common, com.sap.sailing.domain.common,
net.sf.marineapi;bundle-version="0.5.0", net.sf.marineapi;bundle-version="0.5.0",
com.sap.sse.common com.sap.sse.common,
Bundle-ClassPath: lib/routeconverter.jar, routeconverter;bundle-version="2.8.0"
. Bundle-ClassPath: .
@@ -2,5 +2,4 @@ source.. = src/,\
resources/ resources/
output.. = bin/ output.. = bin/
bin.includes = META-INF/,\ bin.includes = META-INF/,\
.,\ .
lib/routeconverter.jar