Skip to content

Commit 3c3c66e

Browse files
committed
chmod a-x for all c source files and update README
1 parent 31026ad commit 3c3c66e

6 files changed

Lines changed: 7 additions & 0 deletions

File tree

‎MotionSensor/inv_mpu_lib/inv_mpu.c‎

100755100644
File mode changed.

‎MotionSensor/inv_mpu_lib/inv_mpu_dmp_motion_driver.c‎

100755100644
File mode changed.

‎MotionSensor/inv_mpu_lib/inv_mpu_dmp_motion_driver.h‎

100755100644
File mode changed.

‎MotionSensor/sensor.c‎

100755100644
File mode changed.

‎README‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
MotionSensorExample
22
===================
33

4+
Fork别人的代码,以下英文是原版的README。
5+
笔者试用了下,在Pi2上编译出错,原因是结构出的初始化问题,Pi2的g++版本似乎不支持结构体的复合字面量初始化方式。
6+
因此笔者修改了初始化的代码,试着编译了用于MPU6050的测试代码,通过了,也确实可以争取拿到roll、pitch、yaw的数据。
7+
不过如果选择编译用于MPU9250的版本,却不能完成MPU的初始化,如法正确工作。这个后面有空再修改,我也在原作者的github上提了issue。
8+
还好的是,可以把MPU9250当MPU6050用(笔者也正是用MPU9250测试的)。
9+
![](/snapshot.png)
10+
411
MPU6050/MPU6500/MPU9150/MPU9250 over I2c for RaspberryPi using official Invensense libraries (v5.1):
512
http://www.invensense.com/developers/index.php?_r=downloads
613

‎snapshot.png‎

33.8 KB
Loading

0 commit comments

Comments
 (0)