PUD: use dopMultiplier plugin parameter
authorFerry Huberts <ferry.huberts@pelagic.nl>
Thu, 23 Jun 2011 10:11:32 +0000 (12:11 +0200)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Thu, 23 Jun 2011 10:11:32 +0000 (12:11 +0200)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/pud/src/receiver.c

index a9d0abe..d3c8d82 100644 (file)
@@ -297,7 +297,7 @@ static TristateBoolean detemineMoving(PositionUpdateEntry * posAvgEntry,
                                }
 
                                /* we are outside the HDOP when the HDOPs no longer overlap */
-                               if (distance > (2.0 * (avgHdop + lastTxHdop))) {
+                               if (distance > (getDopMultiplier() * (avgHdop + lastTxHdop))) {
                                        return SET;
                                }
 
@@ -373,7 +373,7 @@ static TristateBoolean detemineMoving(PositionUpdateEntry * posAvgEntry,
                                }
 
                                /* we are outside the VDOP when the VDOPs no longer overlap */
-                               if (distance > (2.0 * (avgVdop + lastTxVdop))) {
+                               if (distance > (getDopMultiplier() * (avgVdop + lastTxVdop))) {
                                        return SET;
                                }