summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2014-01-24 22:43:25 -0800
committerKeith Packard <keithp@keithp.com>2014-01-24 22:43:25 -0800
commit6b70b8b6bb4e8eae8159ec966847092d0b1deab3 (patch)
treefbebc0197f830d86f0b399b15e061ce40411c982
parentea8c9ca9dd24a026ea5bfe5a1ac70857181a88c8 (diff)
altoslib: Don't lose gps_height value between GPS samples
gps_height is now reliably updated whenever GPS altitude data is received, so don't try to reset it between samples. Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--altoslib/AltosState.java1
1 files changed, 0 insertions, 1 deletions
diff --git a/altoslib/AltosState.java b/altoslib/AltosState.java
index 6d52dc40..758fd636 100644
--- a/altoslib/AltosState.java
+++ b/altoslib/AltosState.java
@@ -838,7 +838,6 @@ public class AltosState implements Cloneable {
void update_gps() {
elevation = 0;
range = -1;
- gps_height = 0;
if (gps == null)
return;