diff options
author | Keith Packard <keithp@keithp.com> | 2017-05-26 18:22:02 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2017-05-26 18:22:02 -0700 |
commit | 3d29882f5c70e627b0bbfe42c0a31d6cb5f6b6bf (patch) | |
tree | 88bc7d8d915646365f0500f902bf020b065239be /altoslib/AltosEepromRecord.java | |
parent | fd738d47bbc46d36698350d5450abe1125d990a3 (diff) |
altoslib: Get KML export working again
Even annotate the states with avg speed/accel for fun.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altoslib/AltosEepromRecord.java')
-rw-r--r-- | altoslib/AltosEepromRecord.java | 9 |
1 files changed, 9 insertions, 0 deletions
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<AltosEepromRecord> 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() { |