From 97d471f2bed2d2a5a59d20c24c1594fa3c55d760 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Mon, 29 Apr 2019 23:03:09 -0700 Subject: Fix coordinates decoding --- src/main/java/org/traccar/protocol/GlobalstarProtocolDecoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main') diff --git a/src/main/java/org/traccar/protocol/GlobalstarProtocolDecoder.java b/src/main/java/org/traccar/protocol/GlobalstarProtocolDecoder.java index ab9e5dccf..5739a1224 100644 --- a/src/main/java/org/traccar/protocol/GlobalstarProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/GlobalstarProtocolDecoder.java @@ -99,7 +99,7 @@ public class GlobalstarProtocolDecoder extends BaseHttpProtocolDecoder { position.setLatitude(position.getLatitude() - 180); } - position.setLongitude(buf.readUnsignedMedium() * 90.0 / (1 << 23)); + position.setLongitude(buf.readUnsignedMedium() * 180.0 / (1 << 23)); if (position.getLongitude() > 180) { position.setLongitude(position.getLongitude() - 360); } -- cgit v1.2.3