diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-03-16 01:24:41 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-03-16 01:24:41 +1300 |
commit | 0933f39774235641b1f4bdd1e1402b71bf9be9ed (patch) | |
tree | 24aff06464a7efd4f86c4885a7bcb465e4a04f03 /src/org | |
parent | 411f12863460107187f1597b0bfd85627b1b413a (diff) | |
download | trackermap-server-0933f39774235641b1f4bdd1e1402b71bf9be9ed.tar.gz trackermap-server-0933f39774235641b1f4bdd1e1402b71bf9be9ed.tar.bz2 trackermap-server-0933f39774235641b1f4bdd1e1402b71bf9be9ed.zip |
Fix DM G50 coordinates decoding
Diffstat (limited to 'src/org')
-rw-r--r-- | src/org/traccar/protocol/DmtProtocolDecoder.java | 2 |
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()); |