git.droids-corp.org
/
protos
/
imu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make it compile
[protos/imu.git]
/
mpu6050.c
diff --git
a/mpu6050.c
b/mpu6050.c
index
fe53992
..
4dda84b
100644
(file)
--- a/
mpu6050.c
+++ b/
mpu6050.c
@@
-1,10
+1,11
@@
#include <stdio.h>
#include <string.h>
#include <stdio.h>
#include <string.h>
-#include <scheduler.h>
#include <timer.h>
#include <aversive/wait.h>
#include <timer.h>
#include <aversive/wait.h>
+#include <aversive/pgmspace.h>
+
#include <uart.h>
#include <i2c.h>
#include <uart.h>
#include <i2c.h>
@@
-157,7
+158,7
@@
void mpu6050_compute_drift(void)
s_gx = s_gy = s_gz = 0;
for (i = 0; i < 0x100; i ++) {
s_gx = s_gy = s_gz = 0;
for (i = 0; i < 0x100; i ++) {
- mpu6050_read_gyro_raw(
&
g_values);
+ mpu6050_read_gyro_raw(g_values);
s_gx += g_values[0];
s_gy += g_values[1];
s_gz += g_values[2];
s_gx += g_values[0];
s_gy += g_values[1];
s_gz += g_values[2];