aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2013-10-17 21:42:22 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2013-10-17 21:42:22 +1300
commitb6cc3e27d03de09d61c9ea8dbf3fce108678d031 (patch)
tree5cf52964d77690ef2c5fed87564b3cc8f48d5e06 /src
parente3a2b54b4e32a9bf83c97b95e167e730fc4fe0b6 (diff)
downloadtrackermap-server-b6cc3e27d03de09d61c9ea8dbf3fce108678d031.tar.gz
trackermap-server-b6cc3e27d03de09d61c9ea8dbf3fce108678d031.tar.bz2
trackermap-server-b6cc3e27d03de09d61c9ea8dbf3fce108678d031.zip
Fill Atrack missing fields
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/protocol/AtrackProtocolDecoder.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/AtrackProtocolDecoder.java b/src/org/traccar/protocol/AtrackProtocolDecoder.java
index 18af7a123..ba03e0642 100644
--- a/src/org/traccar/protocol/AtrackProtocolDecoder.java
+++ b/src/org/traccar/protocol/AtrackProtocolDecoder.java
@@ -77,8 +77,10 @@ public class AtrackProtocolDecoder extends BaseProtocolDecoder {
buf.readUnsignedInt(); // send time
// Coordinates
+ position.setValid(true);
position.setLongitude(buf.readInt() * 0.000001);
position.setLatitude(buf.readInt() * 0.000001);
+ position.setAltitude(0.0);
// Course
position.setCourse((double) buf.readUnsignedShort());