MPU6050 library that is kinda beta and will probably never leave beta but it might help some people.adreess change 0x68

Revision:
1:a3366f09e95c
Parent:
0:6757f7363a9f
Child:
3:124fe33a2a38
diff -r 6757f7363a9f -r a3366f09e95c MPU6050.cpp
--- a/MPU6050.cpp	Wed Jul 11 12:26:47 2012 +0000
+++ b/MPU6050.cpp	Mon Sep 10 21:22:39 2012 +0000
@@ -196,22 +196,22 @@
 void MPU6050::getGyro( float *data ) {
     int temp[3];
     this->getGyroRaw(temp);
-    if (currentAcceleroRange == MPU6050_GYRO_RANGE_250) {
+    if (currentGyroRange == MPU6050_GYRO_RANGE_250) {
         data[0]=(float)temp[0] / 7505.7;
         data[1]=(float)temp[1] / 7505.7;
         data[2]=(float)temp[2] / 7505.7;
         }
-    if (currentAcceleroRange == MPU6050_GYRO_RANGE_500){
+    if (currentGyroRange == MPU6050_GYRO_RANGE_500){
         data[0]=(float)temp[0] / 3752.9;
         data[1]=(float)temp[1] / 3752.9;
         data[2]=(float)temp[2] / 3752.9;
         }
-    if (currentAcceleroRange == MPU6050_GYRO_RANGE_1000){
+    if (currentGyroRange == MPU6050_GYRO_RANGE_1000){
         data[0]=(float)temp[0] / 1879.3;;
         data[1]=(float)temp[1] / 1879.3;
         data[2]=(float)temp[2] / 1879.3;
         }
-    if (currentAcceleroRange == MPU6050_GYRO_RANGE_2000){
+    if (currentGyroRange == MPU6050_GYRO_RANGE_2000){
         data[0]=(float)temp[0] / 939.7;
         data[1]=(float)temp[1] / 939.7;
         data[2]=(float)temp[2] / 939.7;