diff options
author | Keith Packard <keithp@keithp.com> | 2009-04-17 23:38:14 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2009-04-17 23:38:14 -0700 |
commit | 022f83ca6fd589005d8eb3e25e633950fef69fa7 (patch) | |
tree | 4a081c02188cadbc93de00c96cd2f6a8f2b59d53 /ao_log.c | |
parent | 5e2393eb6b1a6d7b180bd63d5165ee7b7ff5f9e0 (diff) |
Add gps, debug dongle support and pressure alt tables
GPS also pulled in serial support. The altitude tables take raw 11-bit
pressure sample numbers and convert them to standard pressure altitude
values.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'ao_log.c')
-rw-r--r-- | ao_log.c | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -121,7 +121,7 @@ ao_log(void) ao_sleep(&ao_log_running); log.type = AO_LOG_FLIGHT; - log.tick = ao_flight_state_tick; + log.tick = ao_flight_tick; log.u.flight.serial = 0; log.u.flight.flight = ao_log_dump_flight + 1; ao_log_data(&log); @@ -130,7 +130,7 @@ ao_log(void) if (ao_flight_state != ao_log_state) { ao_log_state = ao_flight_state; log.type = AO_LOG_STATE; - log.tick = ao_flight_state_tick; + log.tick = ao_flight_tick; log.u.state.state = ao_log_state; log.u.state.reason = 0; ao_log_data(&log); @@ -172,6 +172,13 @@ ao_log_start(void) ao_wakeup(&ao_log_running); } +void +ao_log_stop(void) +{ + ao_log_running = 0; + ao_log_flush(); +} + static __xdata struct ao_task ao_log_task; void |