aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2013-05-20 21:28:04 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2013-05-20 21:28:04 +1200
commit551b941599d95dd8fb26dead74dca44e9e7a2c9b (patch)
tree76ba1c6803d1ff1bf426c22fc11c01a7fa2408d2
parent05c7db487f3744f6abe348426c44fc708b252428 (diff)
downloadtrackermap-server-551b941599d95dd8fb26dead74dca44e9e7a2c9b.tar.gz
trackermap-server-551b941599d95dd8fb26dead74dca44e9e7a2c9b.tar.bz2
trackermap-server-551b941599d95dd8fb26dead74dca44e9e7a2c9b.zip
Fix teltonika speed units
-rw-r--r--src/org/traccar/protocol/TeltonikaProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
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());