From 1c506b3831df9494f738c270815ab34e5eae7a9e Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 15 Jun 2014 11:22:16 +1200 Subject: Convert speed for TK103 protocol --- src/org/traccar/protocol/Tk103ProtocolDecoder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/org/traccar/protocol/Tk103ProtocolDecoder.java b/src/org/traccar/protocol/Tk103ProtocolDecoder.java index 200a1855c..c699a247c 100644 --- a/src/org/traccar/protocol/Tk103ProtocolDecoder.java +++ b/src/org/traccar/protocol/Tk103ProtocolDecoder.java @@ -1,5 +1,5 @@ /* - * Copyright 2012 - 2013 Anton Tananaev (anton.tananaev@gmail.com) + * Copyright 2012 - 2014 Anton Tananaev (anton.tananaev@gmail.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -131,7 +131,7 @@ public class Tk103ProtocolDecoder extends BaseProtocolDecoder { position.setAltitude(0.0); // Speed - position.setSpeed(Double.valueOf(parser.group(index++))); + position.setSpeed(Double.valueOf(parser.group(index++)) * 0.539957); // Time time.set(Calendar.HOUR_OF_DAY, Integer.valueOf(parser.group(index++))); -- cgit v1.2.3