altosui: Add TeleMega v4.0 firmware to altosui packaged bits
[fw/altos] / altoslib / AltosGPS.java
index 8037eb93deb37ec63e44b49d5b3975c7e31b8dd8..9c2009c55c65319541e0e82829633d2494ec4ec9 100644 (file)
@@ -92,6 +92,10 @@ public class AltosGPS implements Cloneable {
                return odt.toEpochSecond();
        }
 
+       public  AltosLatLon lat_lon() {
+               return new AltosLatLon(lat, lon);
+       }
+
        public AltosGPS(AltosTelemetryMap map) throws ParseException {
                String  state = map.get_string(AltosTelemetryLegacy.AO_TELEM_GPS_STATE,
                                               AltosTelemetryLegacy.AO_TELEM_GPS_STATE_ERROR);
@@ -387,7 +391,7 @@ public class AltosGPS implements Cloneable {
                try {
                        AltosGPS gps = new AltosGPS(link, link.config_data());
                        if (gps != null)
-                               listener.set_gps(gps);
+                               listener.set_gps(gps, true, true);
                } catch (TimeoutException te) {
                }
        }