altoslib: Don't smash existing GPS pad alt after boost
authorKeith Packard <keithp@keithp.com>
Wed, 9 Jan 2013 23:23:46 +0000 (15:23 -0800)
committerKeith Packard <keithp@keithp.com>
Fri, 11 Jan 2013 05:44:05 +0000 (21:44 -0800)
commit42733d2823b1ecf54c03881fc120067868c0ff4c
tree7d7f66997e81f89c57c40a85360a5795b6e68c21
parentd7d259c7b3eedcc1c185d2b7e3c33e829bd7ce96
altoslib: Don't smash existing GPS pad alt after boost

Leave the existing GPS pad altitude value in place after boost by
checking to see if it was ever computed before resetting it to the
barometric pad altitude. This makes GPS height values relative to the pad.

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