From 372743857314a0dfad83eef65ed2418a62dae04b Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 13 Jun 2021 07:26:13 -0700 Subject: Fix coordinates decoding --- src/main/java/org/traccar/protocol/UuxProtocolDecoder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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)); -- cgit v1.2.3