diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2019-01-29 08:59:58 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2019-01-29 08:59:58 -0800 |
commit | 91dc8dab007f5eb2b3f2036b3aab9a5f70271c0f (patch) | |
tree | f7be815434095efb1d53405a399e0aed8a258baf /src/org/traccar/protocol/SatsolProtocolDecoder.java | |
parent | ab9695473fa48c97de0ca1364fac08d76a771bf4 (diff) | |
download | trackermap-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.java | 2 |
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()); |