altos: Merge GPS logging into a single function
authorKeith Packard <keithp@keithp.com>
Tue, 15 Oct 2013 05:41:43 +0000 (22:41 -0700)
committerKeith Packard <keithp@keithp.com>
Tue, 15 Oct 2013 05:41:43 +0000 (22:41 -0700)
commit039446f54ef6968a3f0b37ce32ca6bdcdbe62546
treed66195ea4d80894af1b4ab771a6878abb770848a
parent5c4b3658a96f1a64ccebf7bddda06b15b4ac4a6f
altos: Merge GPS logging into a single function

Create a new global, ao_gps_new, which indicates new GPS position and
satellite data.

Use ao_gps_new as the new sleep/wakeup address.

Merge the separate gps position/satellite logging tasks into a single
function which waits for new data and writes out the changed values.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 files changed:
src/core/ao.h
src/core/ao_flight.c
src/core/ao_gps_report.c
src/core/ao_gps_report_mega.c
src/core/ao_gps_report_metrum.c
src/drivers/ao_gps_sirf.c
src/drivers/ao_gps_skytraq.c
src/drivers/ao_gps_ublox.c
src/product/ao_terraui.c
src/teleballoon-v1.1/ao_balloon.c
src/test/ao_gps_test.c
src/test/ao_gps_test_skytraq.c
src/test/ao_gps_test_ublox.c