summaryrefslogtreecommitdiff
path: root/altoslib/AltosGPS.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2019-09-02 15:20:14 -0500
committerKeith Packard <keithp@keithp.com>2019-09-02 15:45:30 -0500
commit2524730217e6972f3d0f04a9954350ba1964a83a (patch)
tree959e388b0ea4908cb9cd21b60c662f2cedcb9bfb /altoslib/AltosGPS.java
parentb13893245e8c66b48e23bb2005ef6ce46e69744f (diff)
altosui: Add speed and gps height to map display data
And generalize the API so that any other GPS data could be added in the future. This feature was proposed by Mike Beattie Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altoslib/AltosGPS.java')
-rw-r--r--altoslib/AltosGPS.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/altoslib/AltosGPS.java b/altoslib/AltosGPS.java
index 8037eb93..57ac4061 100644
--- a/altoslib/AltosGPS.java
+++ b/altoslib/AltosGPS.java
@@ -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);