diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2014-06-15 11:22:16 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2014-06-15 11:22:16 +1200 |
commit | 1c506b3831df9494f738c270815ab34e5eae7a9e (patch) | |
tree | b466c4720f82ba5c93c578ea15426bc609f9b9a0 /src/org/traccar | |
parent | 786f2c7245e4f7cd4f0bd7ffcf5a79b1b2197ee6 (diff) | |
download | trackermap-server-1c506b3831df9494f738c270815ab34e5eae7a9e.tar.gz trackermap-server-1c506b3831df9494f738c270815ab34e5eae7a9e.tar.bz2 trackermap-server-1c506b3831df9494f738c270815ab34e5eae7a9e.zip |
Convert speed for TK103 protocol
Diffstat (limited to 'src/org/traccar')
-rw-r--r-- | src/org/traccar/protocol/Tk103ProtocolDecoder.java | 4 |
1 files 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++))); |