altos: Sort out ao_gps_print altitude fetching
authorKeith Packard <keithp@keithp.com>
Sat, 25 Oct 2014 17:17:48 +0000 (10:17 -0700)
committerKeith Packard <keithp@keithp.com>
Sat, 25 Oct 2014 17:17:48 +0000 (10:17 -0700)
commit9102183b40f0b32d4fb6d24502b79a6431184310
treeb82ba4a1bb7ca7dc578f248a5389c5fcd0ac0f9d
parentcb83b5432e1320726ad496ded78cced7274618b0
altos: Sort out ao_gps_print altitude fetching

ao_gps_print is used by both teledongle/telebt and the host-based GPS
test code. The first instance uses the old internal GPS structure,
containing just a 16-bit altitude while the second uses an
ao_telemetry structure, which contains 32 bits split into two
members.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/kernel/ao_gps_print.c
src/test/ao_gps_test_ublox.c