diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2020-05-18 23:15:23 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2020-05-18 23:15:23 -0700 |
commit | b73732d6a64d59259f39de9412050e5c38e52e65 (patch) | |
tree | 2ab35ad12bd99fdb1094082292fe2f2bdeaecc7d /src/main/java/org | |
parent | 018e4079b32b78c9801888e077bbc009214351d5 (diff) | |
download | trackermap-server-b73732d6a64d59259f39de9412050e5c38e52e65.tar.gz trackermap-server-b73732d6a64d59259f39de9412050e5c38e52e65.tar.bz2 trackermap-server-b73732d6a64d59259f39de9412050e5c38e52e65.zip |
Fix coordinates decoding
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/traccar/protocol/PstProtocolDecoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/PstProtocolDecoder.java b/src/main/java/org/traccar/protocol/PstProtocolDecoder.java index 23e2afbbd..68d32636c 100644 --- a/src/main/java/org/traccar/protocol/PstProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/PstProtocolDecoder.java @@ -50,7 +50,7 @@ public class PstProtocolDecoder extends BaseProtocolDecoder { long value = buf.readUnsignedInt(); int sign = BitUtil.check(value, 31) ? -1 : 1; value = BitUtil.to(value, 31); - return sign * (BitUtil.from(value, 16) + BitUtil.to(value, 16) * 0.00001) / 60; + return sign * (BitUtil.from(value, 16) + BitUtil.to(value, 16) / 10000.0) / 60; } @Override |