mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-08 21:30:57 +00:00
reverted last fix for filtering marks with 0/0 lat lon
This commit is contained in:
1 parent
966302eeee
commit
b1fb4245d2
1 file changed
+1
-6
+1
-6
@@ -111,12 +111,7 @@ public class MarkPositionReceiver extends AbstractReceiverWithQueue<ControlPoint
|
||||
for (Race tractracRace : getTracTracEvent().getRaceList()) {
|
||||
DynamicTrackedRace trackedRace = getTrackedRace(tractracRace);
|
||||
if (trackedRace != null) {
|
||||
ControlPointPositionData p = event.getB();
|
||||
// Attention: if we receive a lat/lon position with 0.0/0.0 position it is probably the bug
|
||||
// We have already experienced such a situation and therefore we filter here those positions
|
||||
if(p.getLatitude() != 0.0 && p.getLongitude() != 0.0) {
|
||||
trackedRace.recordFix(buoy, getDomainFactory().createGPSFixMoving(p));
|
||||
}
|
||||
trackedRace.recordFix(buoy, getDomainFactory().createGPSFixMoving(event.getB()));
|
||||
} else {
|
||||
logger.warning("Couldn't find tracked race for race " + tractracRace.getName()
|
||||
+ ". Dropping mark position event " + event);
|
||||
|
||||
Reference in new issue
Block a user