InvenSense Motion Driver v5.1.2 ported

Dependents:   Sensorv2

Files at this revision

API Documentation at this revision

Comitter:
oprospero
Date:
Sun Nov 02 19:17:45 2014 +0000
Parent:
3:8ac73f9099ab
Commit message:
Added reset function

Changed in this revision

I2Cdev/I2Cdev.cpp Show annotated file Show diff for this revision Revisions of this file
inv_mpu.cpp Show annotated file Show diff for this revision Revisions of this file
inv_mpu.h Show annotated file Show diff for this revision Revisions of this file
inv_mpu_dmp_motion_driver.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 8ac73f9099ab -r 2cb380415dc7 I2Cdev/I2Cdev.cpp
--- a/I2Cdev/I2Cdev.cpp	Wed Oct 15 04:59:22 2014 +0000
+++ b/I2Cdev/I2Cdev.cpp	Sun Nov 02 19:17:45 2014 +0000
@@ -5,8 +5,8 @@
 
 #include "I2Cdev.h"
 
-//#define useDebugSerial
-#ifdef useDebugSerial
+//#define _useDebugSerial
+#ifdef _useDebugSerial
     Serial debugSerial(USBTX, USBRX);
 #endif
 
diff -r 8ac73f9099ab -r 2cb380415dc7 inv_mpu.cpp
--- a/inv_mpu.cpp	Wed Oct 15 04:59:22 2014 +0000
+++ b/inv_mpu.cpp	Sun Nov 02 19:17:45 2014 +0000
@@ -24,7 +24,8 @@
 #include <math.h>
 #include "inv_mpu.h"
 
-#ifdef DEBUG_MPU
+//#define _DEBUG_MPU
+#ifdef _DEBUG_MPU
     Serial debug_mpu(USBTX, USBRX);
     #define LN "\r\n"
     #define BREAK debug_mpu.printf(LN)
diff -r 8ac73f9099ab -r 2cb380415dc7 inv_mpu.h
--- a/inv_mpu.h	Wed Oct 15 04:59:22 2014 +0000
+++ b/inv_mpu.h	Sun Nov 02 19:17:45 2014 +0000
@@ -3,7 +3,6 @@
 
 #include "I2Cdev.h"
 
-//#define DEBUG_MPU
 
 
 
diff -r 8ac73f9099ab -r 2cb380415dc7 inv_mpu_dmp_motion_driver.cpp
--- a/inv_mpu_dmp_motion_driver.cpp	Wed Oct 15 04:59:22 2014 +0000
+++ b/inv_mpu_dmp_motion_driver.cpp	Sun Nov 02 19:17:45 2014 +0000
@@ -545,7 +545,7 @@
 
 void DMP_Motion_Driver::reset()
 {
-    reset();   
+    mpu_reset();   
 }
 
 /**