From 2524730217e6972f3d0f04a9954350ba1964a83a Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Mon, 2 Sep 2019 15:20:14 -0500 Subject: 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 --- altoslib/AltosGPS.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'altoslib/AltosGPS.java') 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); -- cgit v1.2.3