aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/SatsolProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-01-29 08:59:58 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2019-01-29 08:59:58 -0800
commit91dc8dab007f5eb2b3f2036b3aab9a5f70271c0f (patch)
treef7be815434095efb1d53405a399e0aed8a258baf /src/org/traccar/protocol/SatsolProtocolDecoder.java
parentab9695473fa48c97de0ca1364fac08d76a771bf4 (diff)
downloadtrackermap-server-91dc8dab007f5eb2b3f2036b3aab9a5f70271c0f.tar.gz
trackermap-server-91dc8dab007f5eb2b3f2036b3aab9a5f70271c0f.tar.bz2
trackermap-server-91dc8dab007f5eb2b3f2036b3aab9a5f70271c0f.zip
Fix coordinates decoding
Diffstat (limited to 'src/org/traccar/protocol/SatsolProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/SatsolProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/SatsolProtocolDecoder.java b/src/org/traccar/protocol/SatsolProtocolDecoder.java
index b12a81a52..77d292d92 100644
--- a/src/org/traccar/protocol/SatsolProtocolDecoder.java
+++ b/src/org/traccar/protocol/SatsolProtocolDecoder.java
@@ -67,8 +67,8 @@ public class SatsolProtocolDecoder extends BaseProtocolDecoder {
position.setDeviceId(deviceSession.getDeviceId());
position.setTime(new Date(buf.readUnsignedIntLE() * 1000));
- position.setLongitude(buf.readUnsignedIntLE() * 0.000001);
position.setLatitude(buf.readUnsignedIntLE() * 0.000001);
+ position.setLongitude(buf.readUnsignedIntLE() * 0.000001);
position.setSpeed(UnitsConverter.knotsFromKph(buf.readUnsignedShortLE()));
position.setAltitude(buf.readShortLE());
position.setCourse(buf.readUnsignedShortLE());