altos/test: Add dependencies in the Makefile for ao_flight_test
[fw/altos] / src / ao_flight_test.c
index e0cfa47a2a8e3ecc11ffed2c87b36c39e7a4eae6..5c61951853d63c84ddc6905be651b002a1e9a2d0 100644 (file)
@@ -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':