![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Added for gyro and testing
Diff: MPU6050.cpp
- Revision:
- 13:d66766523196
- Parent:
- 11:9b414412b09e
diff -r 6efce6d008f8 -r d66766523196 MPU6050.cpp --- a/MPU6050.cpp Wed Jul 03 17:56:22 2019 +0000 +++ b/MPU6050.cpp Wed Jul 03 22:09:33 2019 +0000 @@ -207,7 +207,7 @@ data[2]=(float)temp[2] / 3752.9; } if (currentGyroRange == MPU6050_GYRO_RANGE_1000){ - data[0]=(float)temp[0] / 1879.3;; + data[0]=(float)temp[0] / 1879.3; data[1]=(float)temp[1] / 1879.3; data[2]=(float)temp[2] / 1879.3; } @@ -306,7 +306,7 @@ this->write(MPU6050_RA_INT_ENABLE, temp); } -///function for disbling interrupts on MPU6050 INT pin, when the data is ready to take +///function for disabling interrupts on MPU6050 INT pin, when the data is ready to take void MPU6050::disableInt ( void ){ char temp; temp = this->read(MPU6050_RA_INT_ENABLE);