aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-08-18 16:51:13 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-08-18 16:51:13 +1200
commit3998d1d2c580ae82c380e2c6f05784fe5fd67018 (patch)
tree709db48e4c23c56a6e951e34ad99c565da3e974b /src/org/traccar/protocol
parentc06de84d316e7c67f6d22e12f855e2df34bbc3fb (diff)
downloadtraccar-server-3998d1d2c580ae82c380e2c6f05784fe5fd67018.tar.gz
traccar-server-3998d1d2c580ae82c380e2c6f05784fe5fd67018.tar.bz2
traccar-server-3998d1d2c580ae82c380e2c6f05784fe5fd67018.zip
Fix GT02 speed units value
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r--src/org/traccar/protocol/Gt02ProtocolDecoder.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/Gt02ProtocolDecoder.java b/src/org/traccar/protocol/Gt02ProtocolDecoder.java
index b542cec22..14091eb6f 100644
--- a/src/org/traccar/protocol/Gt02ProtocolDecoder.java
+++ b/src/org/traccar/protocol/Gt02ProtocolDecoder.java
@@ -25,6 +25,7 @@ import org.jboss.netty.channel.Channel;
import org.jboss.netty.channel.ChannelHandlerContext;
import org.traccar.BaseProtocolDecoder;
+import org.traccar.helper.UnitsConverter;
import org.traccar.model.Event;
import org.traccar.model.Position;
@@ -105,7 +106,7 @@ public class Gt02ProtocolDecoder extends BaseProtocolDecoder {
double longitude = buf.readUnsignedInt() / (60.0 * 30000.0);
// Speed
- position.setSpeed(buf.readUnsignedByte());
+ position.setSpeed(UnitsConverter.knotsFromKph(buf.readUnsignedByte()));
// Course
position.setCourse(buf.readUnsignedShort());