MPU6050 DMP Library for LPC1549
Diff: MPU6050_6Axis_MotionApps20.h
- Revision:
- 6:fe57b4405983
- Parent:
- 5:7d1bf3ce0053
diff -r 7d1bf3ce0053 -r fe57b4405983 MPU6050_6Axis_MotionApps20.h --- a/MPU6050_6Axis_MotionApps20.h Sat Nov 23 16:47:00 2013 +0000 +++ b/MPU6050_6Axis_MotionApps20.h Wed Oct 25 08:08:53 2017 +0000 @@ -33,7 +33,7 @@ #ifndef _MPU6050_6AXIS_MOTIONAPPS20_H_ #define _MPU6050_6AXIS_MOTIONAPPS20_H_ -#include <iostream> +//#include <iostream> #include "I2Cdev.h" #include "helper_3dmath.h" @@ -305,7 +305,7 @@ 0x07, 0x46, 0x01, 0x9A, // CFG_GYRO_SOURCE inv_send_gyro 0x07, 0x47, 0x04, 0xF1, 0x28, 0x30, 0x38, // CFG_9 inv_send_gyro -> inv_construct3_fifo 0x07, 0x6C, 0x04, 0xF1, 0x28, 0x30, 0x38, // CFG_12 inv_send_accel -> inv_construct3_fifo - 0x02, 0x16, 0x02, 0x00, 0x01 // D_0_22 inv_set_fifo_rate + 0x02, 0x16, 0x02, 0x00, 0x00 // D_0_22 inv_set_fifo_rate // This very last 0x01 WAS a 0x09, which drops the FIFO rate down to 20 Hz. 0x07 is 25 Hz, // 0x01 is 100Hz. Going faster than 100Hz (0x00=200Hz) tends to result in very noisy data.