summaryrefslogtreecommitdiff
path: root/src/drivers/ao_mpu6000.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-05-27 16:46:00 -0600
committerKeith Packard <keithp@keithp.com>2012-05-27 16:46:00 -0600
commit9eeba439ce8c9dc1def8528f96b6a67c6578d656 (patch)
tree49ef7074be77e56e80e01dcb3674cde2e0dc7ec9 /src/drivers/ao_mpu6000.h
parentd01c10eff4b70af13347969a7cece8730cf1a3f1 (diff)
altos: Don't start ADC ring until the other sensors have a valid value
Yes, this is still an ugly kludge, but it's easy. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/drivers/ao_mpu6000.h')
-rw-r--r--src/drivers/ao_mpu6000.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/drivers/ao_mpu6000.h b/src/drivers/ao_mpu6000.h
index 5e52148d..fc7af1e0 100644
--- a/src/drivers/ao_mpu6000.h
+++ b/src/drivers/ao_mpu6000.h
@@ -156,6 +156,7 @@ struct ao_mpu6000_sample {
};
extern struct ao_mpu6000_sample ao_mpu6000_current;
+extern uint8_t ao_mpu6000_valid;
void
ao_mpu6000_init(void);