MPU6050 FreeIMU library
Dependents: FreeIMU FreeIMU_external_magnetometer
Fork of MPU6050_tmp by
Async MPU6050 library
My port of the MPU6050 library samples the chip at 500Hz using Timer. Async I2C is achieved using a custom I2C library, which supports I2C calls from interrupts. Link given below:
Import libraryMODI2C
Improvements to Olieman's MODI2C library. Supports calls from IRQ.
Difference between this port and the Arduino MPU6050 library
The getMotion6 function only returns a copy of the last obtained readings, which is sampled at a frequency of 500Hz (adjustable). Hence it can be called at any frequency without taxing the I2C.
Diff: I2Cdev.h
- Revision:
- 2:3cf70c42a784
- Parent:
- 0:662207e34fba
- Child:
- 7:95e74f827c08
--- a/I2Cdev.h Wed Feb 20 15:52:50 2013 +0000 +++ b/I2Cdev.h Wed Feb 20 17:32:50 2013 +0000 @@ -1,8 +1,9 @@ //ported from arduino library: https://github.com/jrowberg/i2cdevlib/tree/master/Arduino/MPU6050 -//written by szymon gaertig (email: szymon@gaertig.com.pl) +//written by szymon gaertig (email: szymon@gaertig.com.pl), small correction by Aloïs Wolff // //Changelog: //2013-01-08 - first beta release +//2013-02-18 - fixed a malloc with no free in ::readBytes #ifndef I2Cdev_h #define I2Cdev_h