aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-08-26 11:27:00 +0500
committerAbyss777 <abyss@fox5.ru>2016-08-26 11:27:00 +0500
commit7b29a294809bfffeb5cf99769b5efe1a5760625e (patch)
tree1589cba86dbd57861552ac0f070545d2e03ff828 /src/org
parentdd07064905c4a25f92cbe105346783bedd75a320 (diff)
downloadtraccar-server-7b29a294809bfffeb5cf99769b5efe1a5760625e.tar.gz
traccar-server-7b29a294809bfffeb5cf99769b5efe1a5760625e.tar.bz2
traccar-server-7b29a294809bfffeb5cf99769b5efe1a5760625e.zip
Fix telic protocol speed units
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/protocol/TelicProtocolDecoder.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/TelicProtocolDecoder.java b/src/org/traccar/protocol/TelicProtocolDecoder.java
index 818390f60..376ff4c84 100644
--- a/src/org/traccar/protocol/TelicProtocolDecoder.java
+++ b/src/org/traccar/protocol/TelicProtocolDecoder.java
@@ -21,6 +21,7 @@ import org.traccar.DeviceSession;
import org.traccar.helper.DateBuilder;
import org.traccar.helper.Parser;
import org.traccar.helper.PatternBuilder;
+import org.traccar.helper.UnitsConverter;
import org.traccar.model.Position;
import java.net.SocketAddress;
@@ -94,7 +95,7 @@ public class TelicProtocolDecoder extends BaseProtocolDecoder {
}
position.setValid(parser.nextInt() != 1);
- position.setSpeed(parser.nextDouble());
+ position.setSpeed(UnitsConverter.knotsFromKph(parser.nextDouble()));
position.setCourse(parser.nextDouble());
position.set(Position.KEY_SATELLITES, parser.next());