Nathaniel Honka / IMUdriver

Fork of IMUdriver by HEL's Angels

Files at this revision

API Documentation at this revision

Comitter:
mzling
Date:
Mon Apr 13 17:43:19 2015 +0000
Parent:
3:86d8320a62b4
Child:
5:db1da6bc9dce
Commit message:
Added read functions

Changed in this revision

MPU6000.cpp Show annotated file Show diff for this revision Revisions of this file
MPU6000.h Show annotated file Show diff for this revision Revisions of this file
--- a/MPU6000.cpp	Fri Mar 20 20:25:03 2015 +0000
+++ b/MPU6000.cpp	Mon Apr 13 17:43:19 2015 +0000
@@ -446,3 +446,8 @@
     gyroFliterPre = gyroFilterCurrent;
     return accFilterCurrent + gyroFilterCurrent;
 }
+
+float mpu6000_spi::read_angle_y()
+{
+    return accFilterCurrent + gyroFilterCurrent;
+}
--- a/MPU6000.h	Fri Mar 20 20:25:03 2015 +0000
+++ b/MPU6000.h	Mon Apr 13 17:43:19 2015 +0000
@@ -72,6 +72,7 @@
     float acc_divider;
     float gyro_divider;
     float angle_y();
+    float read_angle_y();
     
   private:
     PinName _CS_pin;