summaryrefslogtreecommitdiff
path: root/micropeak/MicroData.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2018-04-05 16:41:20 -0700
committerKeith Packard <keithp@keithp.com>2018-04-26 19:24:21 -0700
commit110e4818b85781c33d683b7b7e7f2864a1223c5c (patch)
tree0670fde673158d40ed8dfc7cdb88e5b6e899c1a8 /micropeak/MicroData.java
parent20dc0e6c8e365c1f4188189d506163d589c3bade (diff)
micropeak: Make reported 'max height' value show filtered max height
MicroPeak tries to filter out bogus pressure data so that the value reported on the LED is reasonable. We want to report that same value in the UI, which means replacing the normal mechanism for computing max height from the time series of height data with the value computed from the saved minimum pressure value recorded in the device. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'micropeak/MicroData.java')
-rw-r--r--micropeak/MicroData.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/micropeak/MicroData.java b/micropeak/MicroData.java
index 70492a07..6a9adf3f 100644
--- a/micropeak/MicroData.java
+++ b/micropeak/MicroData.java
@@ -345,6 +345,8 @@ public class MicroData {
flight_series.set_time(cal_data.time());
flight_series.set_state(AltosLib.ao_flight_landed);
+ flight_series.set_min_pressure(min_pressure);
+
flight_series.finish();
flight_stats = new AltosFlightStats(flight_series);