From b6cc3e27d03de09d61c9ea8dbf3fce108678d031 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Thu, 17 Oct 2013 21:42:22 +1300 Subject: Fill Atrack missing fields --- src/org/traccar/protocol/AtrackProtocolDecoder.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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()); -- cgit v1.2.3