diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2013-05-20 21:39:50 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2013-05-20 21:39:50 +1200 |
commit | f5d56c4fcc88ec0edb3296b6bb572ff30860abd2 (patch) | |
tree | 02a9f10d1bab2f48ca0ff22811498f328368277c /src | |
parent | 551b941599d95dd8fb26dead74dca44e9e7a2c9b (diff) | |
download | trackermap-server-f5d56c4fcc88ec0edb3296b6bb572ff30860abd2.tar.gz trackermap-server-f5d56c4fcc88ec0edb3296b6bb572ff30860abd2.tar.bz2 trackermap-server-f5d56c4fcc88ec0edb3296b6bb572ff30860abd2.zip |
Add unit tests
Diffstat (limited to 'src')
-rw-r--r-- | src/org/traccar/protocol/H02ProtocolDecoder.java | 3 |
1 files changed, 3 insertions, 0 deletions
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++))); |