diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2013-05-20 21:28:04 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2013-05-20 21:28:04 +1200 |
commit | 551b941599d95dd8fb26dead74dca44e9e7a2c9b (patch) | |
tree | 76ba1c6803d1ff1bf426c22fc11c01a7fa2408d2 /src/org/traccar/protocol/TeltonikaProtocolDecoder.java | |
parent | 05c7db487f3744f6abe348426c44fc708b252428 (diff) | |
download | trackermap-server-551b941599d95dd8fb26dead74dca44e9e7a2c9b.tar.gz trackermap-server-551b941599d95dd8fb26dead74dca44e9e7a2c9b.tar.bz2 trackermap-server-551b941599d95dd8fb26dead74dca44e9e7a2c9b.zip |
Fix teltonika speed units
Diffstat (limited to 'src/org/traccar/protocol/TeltonikaProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/TeltonikaProtocolDecoder.java | 2 |
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()); |