aboutsummaryrefslogtreecommitdiff
path: root/src/net/sourceforge/opentracking/protocol/gps103/Gps103ProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2011-09-05 08:07:43 +0000
committerAnton Tananaev <anton.tananaev@gmail.com>2011-09-05 08:07:43 +0000
commit68d855d0f3c7fa09003c8ae497060831c7bdce7f (patch)
tree6ca413488db8c2697550b66dc89ddb0beff7ae56 /src/net/sourceforge/opentracking/protocol/gps103/Gps103ProtocolDecoder.java
parent39e60fdb4c4427d73881e4dc692c87b135582a8e (diff)
downloadtrackermap-server-68d855d0f3c7fa09003c8ae497060831c7bdce7f.tar.gz
trackermap-server-68d855d0f3c7fa09003c8ae497060831c7bdce7f.tar.bz2
trackermap-server-68d855d0f3c7fa09003c8ae497060831c7bdce7f.zip
Diffstat (limited to 'src/net/sourceforge/opentracking/protocol/gps103/Gps103ProtocolDecoder.java')
-rw-r--r--src/net/sourceforge/opentracking/protocol/gps103/Gps103ProtocolDecoder.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/net/sourceforge/opentracking/protocol/gps103/Gps103ProtocolDecoder.java b/src/net/sourceforge/opentracking/protocol/gps103/Gps103ProtocolDecoder.java
index faccc97d7..c9d8e2da1 100644
--- a/src/net/sourceforge/opentracking/protocol/gps103/Gps103ProtocolDecoder.java
+++ b/src/net/sourceforge/opentracking/protocol/gps103/Gps103ProtocolDecoder.java
@@ -134,6 +134,9 @@ public class Gps103ProtocolDecoder extends OneToOneDecoder {
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++)));