aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol/UuxProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-06-13 07:26:13 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2021-06-13 07:26:13 -0700
commit372743857314a0dfad83eef65ed2418a62dae04b (patch)
tree6ceba21d738d3055897d0abee8ad626ceaf17f4d /src/main/java/org/traccar/protocol/UuxProtocolDecoder.java
parent4f90b2fcb6ad82ec6f5806da152447a38b406085 (diff)
downloadtrackermap-server-372743857314a0dfad83eef65ed2418a62dae04b.tar.gz
trackermap-server-372743857314a0dfad83eef65ed2418a62dae04b.tar.bz2
trackermap-server-372743857314a0dfad83eef65ed2418a62dae04b.zip
Fix coordinates decoding
Diffstat (limited to 'src/main/java/org/traccar/protocol/UuxProtocolDecoder.java')
-rw-r--r--src/main/java/org/traccar/protocol/UuxProtocolDecoder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/protocol/UuxProtocolDecoder.java b/src/main/java/org/traccar/protocol/UuxProtocolDecoder.java
index 28d5345b0..545784865 100644
--- a/src/main/java/org/traccar/protocol/UuxProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/UuxProtocolDecoder.java
@@ -98,11 +98,11 @@ public class UuxProtocolDecoder extends BaseProtocolDecoder {
position.set(Position.KEY_SATELLITES, readInt(buf, 2));
double latitude = readInt(buf, 2);
- latitude += readDouble(buf, 7);
+ latitude += readDouble(buf, 7) / 60;
position.setLatitude(buf.readUnsignedByte() == 'S' ? -latitude : latitude);
double longitude = readInt(buf, 3);
- longitude += readDouble(buf, 7);
+ longitude += readDouble(buf, 7) / 60;
position.setLongitude(buf.readUnsignedByte() == 'W' ? -longitude : longitude);
position.setSpeed(readInt(buf, 3));