altosui: Only update GPS data when new GPS information arrives
[fw/altos] / altosui / AltosRecord.java
index 486c96b2e232d93e7f30fc29e210d02c4dd69a3f..4dfa98be41c70619163d92acba1c631b409ced3f 100644 (file)
@@ -65,6 +65,7 @@ public class AltosRecord implements Comparable <AltosRecord> {
        int     flight_pres;
 
        AltosGPS        gps;
+       boolean         new_gps;
 
        double  time;   /* seconds since boost */
 
@@ -274,6 +275,7 @@ public class AltosRecord implements Comparable <AltosRecord> {
                speed = old.speed;
                height = old.height;
                gps = new AltosGPS(old.gps);
+               new_gps = false;
                companion = old.companion;
        }
 
@@ -304,6 +306,7 @@ public class AltosRecord implements Comparable <AltosRecord> {
                speed = MISSING;
                height = MISSING;
                gps = new AltosGPS();
+               new_gps = false;
                companion = null;
        }
 }