diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2013-02-01 20:19:12 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2013-02-01 20:19:12 +1300 |
commit | ff67008d5c9fb78f98c4bf821d0d8f8f064d5b5e (patch) | |
tree | baf6a3948cec08b90cfcceab30402c1fb56cf8ec /src | |
parent | 0696ac5b815e8a3e4001656b3c70d9a50fee0d20 (diff) | |
download | traccar-server-ff67008d5c9fb78f98c4bf821d0d8f8f064d5b5e.tar.gz traccar-server-ff67008d5c9fb78f98c4bf821d0d8f8f064d5b5e.tar.bz2 traccar-server-ff67008d5c9fb78f98c4bf821d0d8f8f064d5b5e.zip |
Fixed GT06 protocol
Diffstat (limited to 'src')
-rw-r--r-- | src/org/traccar/protocol/Gt06ProtocolDecoder.java | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/org/traccar/protocol/Gt06ProtocolDecoder.java b/src/org/traccar/protocol/Gt06ProtocolDecoder.java index 93f2eee42..97bd970c5 100644 --- a/src/org/traccar/protocol/Gt06ProtocolDecoder.java +++ b/src/org/traccar/protocol/Gt06ProtocolDecoder.java @@ -28,16 +28,10 @@ import org.traccar.helper.Crc; import org.traccar.helper.Log; import org.traccar.model.Position; -/** - * T55 tracker protocol decoder - */ public class Gt06ProtocolDecoder extends BaseProtocolDecoder { private Long deviceId; - /** - * Initialize - */ public Gt06ProtocolDecoder(ServerManager serverManager) { super(serverManager); } @@ -145,7 +139,7 @@ public class Gt06ProtocolDecoder extends BaseProtocolDecoder { position.setCourse((double) (union & 0x03FF)); position.setValid((union & 0x1000) != 0); if ((union & 0x0400) == 0) latitude = -latitude; - if ((union & 0x0800) == 0) longitude = -longitude; + if ((union & 0x0800) != 0) longitude = -longitude; position.setLatitude(latitude); position.setLongitude(longitude); |