summaryrefslogtreecommitdiff
path: root/src/ao_log_tiny.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-03-18 21:01:15 -0700
committerKeith Packard <keithp@keithp.com>2011-03-18 21:01:15 -0700
commit7a4f6d5ad55637cde97a1e2f247f92df59bc2e14 (patch)
tree4dea4a19be48d940a3f05997562a4d2add46c0cf /src/ao_log_tiny.c
parentc985bb6a19c710409629f3c095332ba7afcf5248 (diff)
altos: Write height values to log for nano/mini
This is a lot more useful than the old filtered pressure data. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/ao_log_tiny.c')
-rw-r--r--src/ao_log_tiny.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ao_log_tiny.c b/src/ao_log_tiny.c
index 157073d4..fad2a242 100644
--- a/src/ao_log_tiny.c
+++ b/src/ao_log_tiny.c
@@ -69,7 +69,7 @@ ao_log(void)
if (ao_log_tiny_state == ao_flight_landed)
ao_log_stop();
}
- ao_log_tiny_data(ao_flight_pres); // XXX change to alt
+ ao_log_tiny_data(ao_k_height >> 16);
time += ao_log_tiny_interval;
delay = time - ao_time();
if (delay > 0)