From 489a86a157dff694d9a414526c1f04a12a19e2f2 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 4 Jun 2013 22:05:43 +1200 Subject: Fix GT06 speed unit (fix #288) --- src/org/traccar/protocol/Gt06ProtocolDecoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/org/traccar') 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(); -- cgit v1.2.3