micropeak: Make reported 'max height' value show filtered max height
authorKeith Packard <keithp@keithp.com>
Thu, 5 Apr 2018 23:41:20 +0000 (16:41 -0700)
committerKeith Packard <keithp@keithp.com>
Fri, 27 Apr 2018 02:24:21 +0000 (19:24 -0700)
commit110e4818b85781c33d683b7b7e7f2864a1223c5c
tree0670fde673158d40ed8dfc7cdb88e5b6e899c1a8
parent20dc0e6c8e365c1f4188189d506163d589c3bade
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>
altoslib/AltosFlightSeries.java
altoslib/AltosFlightStats.java
micropeak/MicroData.java