diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2013-06-04 22:05:43 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2013-06-04 22:05:43 +1200 |
commit | 489a86a157dff694d9a414526c1f04a12a19e2f2 (patch) | |
tree | fcdf0820e78ac097143f7c3d037a66187489dac4 /src | |
parent | 84a8b09f3e210101be918a1a6c5e81833dc1cc4f (diff) | |
download | trackermap-server-489a86a157dff694d9a414526c1f04a12a19e2f2.tar.gz trackermap-server-489a86a157dff694d9a414526c1f04a12a19e2f2.tar.bz2 trackermap-server-489a86a157dff694d9a414526c1f04a12a19e2f2.zip |
Fix GT06 speed unit (fix #288)
Diffstat (limited to 'src')
-rw-r--r-- | src/org/traccar/protocol/Gt06ProtocolDecoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/Gt06ProtocolDecoder.java b/src/org/traccar/protocol/Gt06ProtocolDecoder.java index a0113b362..9b5bcc441 100644 --- a/src/org/traccar/protocol/Gt06ProtocolDecoder.java +++ b/src/org/traccar/protocol/Gt06ProtocolDecoder.java @@ -134,7 +134,7 @@ public class Gt06ProtocolDecoder extends BaseProtocolDecoder { double longitude = buf.readUnsignedInt() / (60.0 * 30000.0); // Speed - position.setSpeed((double) buf.readUnsignedByte()); + position.setSpeed(buf.readUnsignedByte() * 0.539957); // Course and flags int union = buf.readUnsignedShort(); |