aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-08-27 11:07:09 +1200
committerGitHub <noreply@github.com>2016-08-27 11:07:09 +1200
commitbe87d85bd1ebb767817a268d576b5fb48fc361d8 (patch)
treea26b136d273759885d193e49532206f5a7c85758 /src
parent06eb72ad101b5a0de9a975fd6f3585238d887cef (diff)
parent8703141ca31fc00a350e3360720be63885cb25ee (diff)
downloadtraccar-server-be87d85bd1ebb767817a268d576b5fb48fc361d8.tar.gz
traccar-server-be87d85bd1ebb767817a268d576b5fb48fc361d8.tar.bz2
traccar-server-be87d85bd1ebb767817a268d576b5fb48fc361d8.zip
Merge pull request #2258 from Abyss777/wialon_speed
Fix wialon protocol speed units
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/protocol/WialonProtocolDecoder.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/WialonProtocolDecoder.java b/src/org/traccar/protocol/WialonProtocolDecoder.java
index 0043354d5..538ee51ca 100644
--- a/src/org/traccar/protocol/WialonProtocolDecoder.java
+++ b/src/org/traccar/protocol/WialonProtocolDecoder.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;
@@ -91,7 +92,7 @@ public class WialonProtocolDecoder extends BaseProtocolDecoder {
position.setLatitude(parser.nextCoordinate());
position.setLongitude(parser.nextCoordinate());
- position.setSpeed(parser.nextDouble());
+ position.setSpeed(UnitsConverter.knotsFromKph(parser.nextDouble()));
position.setCourse(parser.nextDouble());
position.setAltitude(parser.nextDouble());