aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-06-25 09:47:04 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-06-25 09:47:04 +1200
commit6feff5849f6dca3c94cf03e16e972ae85599e5bc (patch)
tree5922ff4bfbb10564e746c4044577098ec9020da2 /src/org/traccar
parentbfe1227df5892e7542d80559363833c302a02077 (diff)
downloadtraccar-server-6feff5849f6dca3c94cf03e16e972ae85599e5bc.tar.gz
traccar-server-6feff5849f6dca3c94cf03e16e972ae85599e5bc.tar.bz2
traccar-server-6feff5849f6dca3c94cf03e16e972ae85599e5bc.zip
Fix GL200 speed value issue
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/protocol/Gl200ProtocolDecoder.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/Gl200ProtocolDecoder.java b/src/org/traccar/protocol/Gl200ProtocolDecoder.java
index 9383f2d4e..1392c56a8 100644
--- a/src/org/traccar/protocol/Gl200ProtocolDecoder.java
+++ b/src/org/traccar/protocol/Gl200ProtocolDecoder.java
@@ -26,6 +26,7 @@ import org.jboss.netty.channel.ChannelHandlerContext;
import org.traccar.BaseProtocolDecoder;
import org.traccar.Context;
+import org.traccar.helper.UnitsConverter;
import org.traccar.model.Event;
import org.traccar.model.Position;
@@ -104,7 +105,7 @@ public class Gl200ProtocolDecoder extends BaseProtocolDecoder {
// Speed
String speed = parser.group(index++);
if (speed != null) {
- position.setSpeed(Double.valueOf(speed));
+ position.setSpeed(UnitsConverter.knotsFromKph(Double.valueOf(speed)));
}
// Course