From f5d56c4fcc88ec0edb3296b6bb572ff30860abd2 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Mon, 20 May 2013 21:39:50 +1200 Subject: Add unit tests --- src/org/traccar/protocol/H02ProtocolDecoder.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/org') diff --git a/src/org/traccar/protocol/H02ProtocolDecoder.java b/src/org/traccar/protocol/H02ProtocolDecoder.java index 0b6d9e560..ba2e11eae 100644 --- a/src/org/traccar/protocol/H02ProtocolDecoder.java +++ b/src/org/traccar/protocol/H02ProtocolDecoder.java @@ -99,6 +99,9 @@ public class H02ProtocolDecoder extends BaseProtocolDecoder { lonlitude += Double.valueOf(parser.group(index++)) / 60; if (parser.group(index++).compareTo("W") == 0) lonlitude = -lonlitude; position.setLongitude(lonlitude); + + // Altitude + position.setAltitude(0.0); // Speed position.setSpeed(Double.valueOf(parser.group(index++))); -- cgit v1.2.3