Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of IMUdriver by
Revision 4:492c7470dbfb, committed 2015-04-13
- 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;
