From 3d29882f5c70e627b0bbfe42c0a31d6cb5f6b6bf Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Fri, 26 May 2017 18:22:02 -0700 Subject: altoslib: Get KML export working again Even annotate the states with avg speed/accel for fun. Signed-off-by: Keith Packard --- altoslib/AltosEepromRecord.java | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'altoslib/AltosEepromRecord.java') diff --git a/altoslib/AltosEepromRecord.java b/altoslib/AltosEepromRecord.java index 7dd37592..7a0cc8f9 100644 --- a/altoslib/AltosEepromRecord.java +++ b/altoslib/AltosEepromRecord.java @@ -87,6 +87,15 @@ public abstract class AltosEepromRecord implements Comparable if (cmd() == AltosLib.AO_LOG_FLIGHT) cal_data.set_boost_tick(); listener.set_time(cal_data.time()); + + /* Flush any pending GPS changes */ + if (!AltosLib.is_gps_cmd(cmd())) { + AltosGPS gps = cal_data.temp_gps(); + if (gps != null) { + listener.set_gps(gps); + cal_data.reset_temp_gps(); + } + } } public int next_start() { -- cgit v1.2.3