altoslib: Prefer averaged ground pres for ground alt computation
authorKeith Packard <keithp@keithp.com>
Thu, 19 Sep 2013 05:26:24 +0000 (00:26 -0500)
committerKeith Packard <keithp@keithp.com>
Thu, 19 Sep 2013 05:26:24 +0000 (00:26 -0500)
commitbe7f56b86478ef4a23a2af77338c580b9c9e5e3b
treebcea098c8b47d1f324de17e3f73f836f4290d47c
parent56b577e55c264c8e3152bb2b2cca02fa8836ac1e
altoslib: Prefer averaged ground pres for ground alt computation

If ground pressure is recorded (as from an eeprom file), then prefer
that value to the average of the pre-boost ground pressures when
computing the ground altitude.

Signed-off-by: Keith Packard <keithp@keithp.com>
altoslib/AltosState.java