Ported from Arduino Library : https://github.com/jrowberg/i2cdevlib/tree/master/Arduino/MPU6050

Dependents:   mpu6050_test testI2C Hobby_Humanoid_controlor mpu6050_test ... more

Files at this revision

API Documentation at this revision

Comitter:
garfieldsg
Date:
Wed May 08 00:34:55 2013 +0000
Parent:
0:662207e34fba
Commit message:
Bugfix of memory issu

Changed in this revision

I2Cdev.cpp Show annotated file Show diff for this revision Revisions of this file
MPU6050.h Show annotated file Show diff for this revision Revisions of this file
diff -r 662207e34fba -r 1e0baaf91e96 I2Cdev.cpp
--- a/I2Cdev.cpp	Fri Jan 11 00:54:28 2013 +0000
+++ b/I2Cdev.cpp	Wed May 08 00:34:55 2013 +0000
@@ -137,6 +137,7 @@
     for(int i =0; i < length; i++) {
         data[i] = redData[i];
     }
+    free (redData);
     return length;
 }
 
diff -r 662207e34fba -r 1e0baaf91e96 MPU6050.h
--- a/MPU6050.h	Fri Jan 11 00:54:28 2013 +0000
+++ b/MPU6050.h	Wed May 08 00:34:55 2013 +0000
@@ -848,7 +848,7 @@
             uint8_t dmpGetGyroSensor(int16_t *data, const uint8_t* packet=0);
             uint8_t dmpGetGyroSensor(VectorInt16 *v, const uint8_t* packet=0);
             uint8_t dmpGetControlData(int32_t *data, const uint8_t* packet=0);
-            uint8_t dmpGetTemperature(int32_t *data, const uint8_t* packet=0);
+            uint8_t dm  pGetTemperature(int32_t *data, const uint8_t* packet=0);
             uint8_t dmpGetGravity(int32_t *data, const uint8_t* packet=0);
             uint8_t dmpGetGravity(int16_t *data, const uint8_t* packet=0);
             uint8_t dmpGetGravity(VectorInt16 *v, const uint8_t* packet=0);