diff options
| author | Keith Packard <keithp@keithp.com> | 2013-10-14 22:41:43 -0700 |
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2013-10-14 22:41:43 -0700 |
| commit | 039446f54ef6968a3f0b37ce32ca6bdcdbe62546 (patch) | |
| tree | d66195ea4d80894af1b4ab771a6878abb770848a /src/teleballoon-v1.1/ao_balloon.c | |
| parent | 5c4b3658a96f1a64ccebf7bddda06b15b4ac4a6f (diff) | |
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>
Diffstat (limited to 'src/teleballoon-v1.1/ao_balloon.c')
| -rw-r--r-- | src/teleballoon-v1.1/ao_balloon.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/teleballoon-v1.1/ao_balloon.c b/src/teleballoon-v1.1/ao_balloon.c index e8972655..12752d1f 100644 --- a/src/teleballoon-v1.1/ao_balloon.c +++ b/src/teleballoon-v1.1/ao_balloon.c @@ -105,8 +105,8 @@ ao_flight(void) #if HAS_GPS /* Record current GPS position by waking up GPS log tasks */ - ao_wakeup(&ao_gps_data); - ao_wakeup(&ao_gps_tracking_data); + ao_gps_new = AO_GPS_NEW_DATA | AO_GPS_NEW_TRACKING; + ao_wakeup(&ao_gps_new); #endif ao_wakeup(DATA_TO_XDATA(&ao_flight_state)); |
