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 MPU6050 by
Diff: MPU6050.cpp
- Revision:
- 16:6be55d010301
- Parent:
- 15:09f072efa71e
- Child:
- 17:902d1491455f
diff -r 09f072efa71e -r 6be55d010301 MPU6050.cpp
--- a/MPU6050.cpp Wed Mar 28 21:23:40 2018 +0000
+++ b/MPU6050.cpp Wed Mar 28 21:34:10 2018 +0000
@@ -3528,7 +3528,7 @@
i2Cdev.writeByte(devAddr, MPU60X0_RA_PWR_MGMT_2, 0x00);
}
-void MPU6050::initialize9250MasterMode(){
+void MPU6050::initialize9250MasterMode() {
uint8_t buff[3];
uint8_t data[7];
@@ -3567,7 +3567,7 @@
writeRegister(MPU60X0_RA_PWR_MGMT_1, PWR_RESET);
// wait for MPU-9250 to come back up
- Thread::wait(1);
+ Thread::wait(2);
// reset the AK8963
writeAKRegister(AK8963_RA_CNTL2, PWR_RESET);
@@ -3661,7 +3661,7 @@
//Serial.println((((int16_t)data[5]) << 8) | data[4]);
// successful init, return 0
- //Serial.println("FINISHED");
+ Serial.println("FINISHED");
}
