summaryrefslogtreecommitdiff
path: root/src/ao_flight_test.c
diff options
context:
space:
mode:
authorBdale Garbee <bdale@gag.com>2011-01-17 09:50:17 -0700
committerBdale Garbee <bdale@gag.com>2011-01-17 09:50:17 -0700
commitda42f406e88ccc821cd45d5a94d5afec65ec50e9 (patch)
tree53482327b8f5d49d052c42943510b4524b6a9d21 /src/ao_flight_test.c
parentea4cdfb87e03ecfb974f98305671265b6fb95372 (diff)
parentcf550f9b96fa94d8db559e01df0e265bb1c7b572 (diff)
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Diffstat (limited to 'src/ao_flight_test.c')
-rw-r--r--src/ao_flight_test.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ao_flight_test.c b/src/ao_flight_test.c
index e0cfa47a..5c619518 100644
--- a/src/ao_flight_test.c
+++ b/src/ao_flight_test.c
@@ -180,7 +180,7 @@ void
ao_sleep(void *wchan)
{
ao_dump_state();
- if (wchan == &ao_adc_ring) {
+ if (wchan == &ao_adc_head) {
char type;
uint16_t tick;
uint16_t a, b;
@@ -238,6 +238,8 @@ ao_sleep(void *wchan)
switch (type) {
case 'F':
ao_flight_ground_accel = a;
+ ao_config.accel_plus_g = a;
+ ao_config.accel_minus_g = a + 530;
ao_flight_started = 1;
break;
case 'S':