From: Keith Packard Date: Sat, 25 Jan 2014 06:43:25 +0000 (-0800) Subject: altoslib: Don't lose gps_height value between GPS samples X-Git-Tag: 1.3.2~30 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=6b70b8b6bb4e8eae8159ec966847092d0b1deab3;hp=ea8c9ca9dd24a026ea5bfe5a1ac70857181a88c8 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 --- 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;