summaryrefslogtreecommitdiff
path: root/src/stm/ao_adc_stm.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-05-14 09:56:16 -0700
committerKeith Packard <keithp@keithp.com>2013-05-15 22:11:41 -0700
commit6d553230903ddd0ec522c07be0df975b38ef23d3 (patch)
treed2742d634e15b5938cb23c96971af0d69be6649e /src/stm/ao_adc_stm.c
parenta4e4eec827d61a05fda52ddb68b55f17b6028d5e (diff)
altos: Fix telemega v0.3 igniter order (drogue/main moved). Label ADC dump
telemega moves the igniters around so that E/F are now drogue/main. Add custom labels for ADC values to make parsing possible Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/stm/ao_adc_stm.c')
-rw-r--r--src/stm/ao_adc_stm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/stm/ao_adc_stm.c b/src/stm/ao_adc_stm.c
index 48fc4262..53f19b40 100644
--- a/src/stm/ao_adc_stm.c
+++ b/src/stm/ao_adc_stm.c
@@ -113,11 +113,15 @@ ao_adc_dump(void) __reentrant
uint8_t i;
ao_data_get(&packet);
+#ifdef AO_ADC_DUMP
+ AO_ADC_DUMP(&packet);
+#else
printf("tick: %5u", packet.tick);
d = (int16_t *) (&packet.adc);
for (i = 0; i < AO_NUM_ADC; i++)
printf (" %2d: %5d", i, d[i]);
printf("\n");
+#endif
}
__code struct ao_cmds ao_adc_cmds[] = {