aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-03-16 01:24:41 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2018-03-16 01:24:41 +1300
commit0933f39774235641b1f4bdd1e1402b71bf9be9ed (patch)
tree24aff06464a7efd4f86c4885a7bcb465e4a04f03 /src/org/traccar/protocol
parent411f12863460107187f1597b0bfd85627b1b413a (diff)
downloadtrackermap-server-0933f39774235641b1f4bdd1e1402b71bf9be9ed.tar.gz
trackermap-server-0933f39774235641b1f4bdd1e1402b71bf9be9ed.tar.bz2
trackermap-server-0933f39774235641b1f4bdd1e1402b71bf9be9ed.zip
Fix DM G50 coordinates decoding
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r--src/org/traccar/protocol/DmtProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/DmtProtocolDecoder.java b/src/org/traccar/protocol/DmtProtocolDecoder.java
index 204d81820..30a6ae13a 100644
--- a/src/org/traccar/protocol/DmtProtocolDecoder.java
+++ b/src/org/traccar/protocol/DmtProtocolDecoder.java
@@ -90,8 +90,8 @@ public class DmtProtocolDecoder extends BaseProtocolDecoder {
.setSecond((int) (time >> 26) & 0x3F)
.getDate());
- position.setLatitude(buf.readInt() * 0.0000001);
position.setLongitude(buf.readInt() * 0.0000001);
+ position.setLatitude(buf.readInt() * 0.0000001);
position.setSpeed(UnitsConverter.knotsFromCps(buf.readUnsignedShort()));
position.setCourse(buf.readUnsignedByte() * 2);
position.setAltitude(buf.readShort());