diff options
| author | Keith Packard <keithp@keithp.com> | 2012-06-01 23:07:38 -0700 |
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2012-06-01 23:07:38 -0700 |
| commit | c04af7533bd3fd3f3260338c0753fde966131720 (patch) | |
| tree | a965c742dcfc4dc1dd76e44aee0ddfd3fbf8b076 /src/cc1111/ao_adc.c | |
| parent | 1824761f5b98e92485e2dd347b1c4d043ec207e2 (diff) | |
altos: Add support for MegaAccel daughter card.
Switches all acceleration computation to using the MegaAccel
accelerometer to ensure support for high-g flights.
MPU6000 values continue to be logged as normal
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/cc1111/ao_adc.c')
| -rw-r--r-- | src/cc1111/ao_adc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cc1111/ao_adc.c b/src/cc1111/ao_adc.c index 95643956..ce827e25 100644 --- a/src/cc1111/ao_adc.c +++ b/src/cc1111/ao_adc.c @@ -56,7 +56,7 @@ ao_adc_isr(void) __interrupt 1 /* TeleMetrum readings */ #if HAS_ACCEL_REF if (sequence == 2) { - a = (uint8_t __xdata *) (&ao_data_ring[ao_data_head].accel_ref); + a = (uint8_t __xdata *) (&ao_data_ring[ao_data_head].adc.accel_ref); sequence = 0; } else #endif |
