summaryrefslogtreecommitdiff
path: root/src/drivers/ao_mpu6000.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-05-18 21:23:47 -0700
committerKeith Packard <keithp@keithp.com>2012-05-18 21:23:47 -0700
commit0239e4dfe587528524b6380bbf6d9583047e52d6 (patch)
treea6afa99e9db744b587985b9b076f608c3c56e42f /src/drivers/ao_mpu6000.h
parent34bb17bc1a3d8a1c95b5e57f059e7a1747e17a03 (diff)
altos: Poll mpu6000 values every tick and stash them locally.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/drivers/ao_mpu6000.h')
-rw-r--r--src/drivers/ao_mpu6000.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/drivers/ao_mpu6000.h b/src/drivers/ao_mpu6000.h
index ca76b081..5e52148d 100644
--- a/src/drivers/ao_mpu6000.h
+++ b/src/drivers/ao_mpu6000.h
@@ -155,6 +155,8 @@ struct ao_mpu6000_sample {
int16_t gyro_z;
};
+extern struct ao_mpu6000_sample ao_mpu6000_current;
+
void
ao_mpu6000_init(void);