From 551b941599d95dd8fb26dead74dca44e9e7a2c9b Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Mon, 20 May 2013 21:28:04 +1200 Subject: Fix teltonika speed units --- src/org/traccar/protocol/TeltonikaProtocolDecoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/org') diff --git a/src/org/traccar/protocol/TeltonikaProtocolDecoder.java b/src/org/traccar/protocol/TeltonikaProtocolDecoder.java index d0b07ccb4..7561e35e1 100644 --- a/src/org/traccar/protocol/TeltonikaProtocolDecoder.java +++ b/src/org/traccar/protocol/TeltonikaProtocolDecoder.java @@ -83,7 +83,7 @@ public class TeltonikaProtocolDecoder extends BaseProtocolDecoder { position.setValid(satellites != 0); - position.setSpeed((double) buf.readUnsignedShort()); + position.setSpeed(buf.readUnsignedShort() * 0.539957); extendedInfo.set("event", buf.readUnsignedByte()); -- cgit v1.2.3