summaryrefslogtreecommitdiff
path: root/src/ao_adc.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-03-28 17:54:44 -0700
committerKeith Packard <keithp@keithp.com>2011-03-28 17:54:44 -0700
commitc754759a2d503633d527da4ebb20eb859cd506fd (patch)
tree75384610b018a5ae52ce4462a4109b5b344c7192 /src/ao_adc.c
parent006de838bbb096b9443863a46b8a125b1e6b5600 (diff)
altos: Split up flight code into separate flight/sample/kalman bits
The flight code mashed together data processing, filtering and actual flight managament into one giant pile. Split things up so that we have: ao_sample.c: Sensor data processing. Reads the ring, handles calibration ao_kalman.c: Filter the data to track the accel/speed/height values ao_flight.c: Flight state management, specific to rocketry. The plan is to re-use ao_sample.c and ao_kalman.c for hardware not specifically designed for rocketry, like TeleNano. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/ao_adc.c')
-rw-r--r--src/ao_adc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ao_adc.c b/src/ao_adc.c
index d77e7753..48568383 100644
--- a/src/ao_adc.c
+++ b/src/ao_adc.c
@@ -41,7 +41,7 @@ ao_adc_poll(void)
void
ao_adc_get(__xdata struct ao_adc *packet)
{
- uint8_t i = ao_adc_ring_prev(ao_flight_adc);
+ uint8_t i = ao_adc_ring_prev(ao_sample_adc);
memcpy(packet, &ao_adc_ring[i], sizeof (struct ao_adc));
}