Library containing functions to talk with both the MPU6050 IMUs on the Limbic Controller.
Fork of MPU6050 by
Diff: MPU6050.cpp
- Revision:
- 3:16cb051b0702
- Parent:
- 1:a3366f09e95c
- Child:
- 4:d1262cdbcf9d
--- a/MPU6050.cpp Mon Sep 10 21:26:25 2012 +0000 +++ b/MPU6050.cpp Sun Dec 01 06:20:11 2013 +0000 @@ -45,10 +45,11 @@ this->write(MPU6050_PWR_MGMT_1_REG, temp); } -bool MPU6050::testConnection( void ) { +char MPU6050::testConnection( void ) { char temp; temp = this->read(MPU6050_WHO_AM_I_REG); - return (temp == (MPU6050_ADDRESS & 0xFE)); + //return (temp == (MPU6050_ADDRESS & 0xFE)); + return temp; } void MPU6050::setBW(char BW) { @@ -234,4 +235,3 @@ retval=(retval+521.0)/340.0+35.0; return retval; } -