altoslib: Don't lose gps_height value between GPS samples
authorKeith Packard <keithp@keithp.com>
Sat, 25 Jan 2014 06:43:25 +0000 (22:43 -0800)
committerKeith Packard <keithp@keithp.com>
Sat, 25 Jan 2014 06:43:25 +0000 (22:43 -0800)
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>
altoslib/AltosState.java

index 6d52dc40619931ca4ede8b8bae651d8c8f0115df..758fd6366b7b7f40d1b3967bcc24bdcb8f4d9313 100644 (file)
@@ -838,7 +838,6 @@ public class AltosState implements Cloneable {
        void update_gps() {
                elevation = 0;
                range = -1;
-               gps_height = 0;
 
                if (gps == null)
                        return;