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.
Dependents: FreeIMU FreeIMU_external_magnetometer
Fork of MPU6050_tmp by
Diff: MPU6050.cpp
- Revision:
- 5:bdb6ad020352
- Parent:
- 4:ba1cf80aeef0
- Parent:
- 3:8a6a7d6b6816
- Child:
- 6:40ac13ef7290
diff -r ba1cf80aeef0 -r bdb6ad020352 MPU6050.cpp
--- a/MPU6050.cpp Wed Feb 20 18:27:43 2013 +0000
+++ b/MPU6050.cpp Wed Feb 20 18:29:30 2013 +0000
@@ -42,7 +42,7 @@
#include "MPU6050.h"
-#define useDebugSerial
+//#define useDebugSerial
//instead of using pgmspace.h
typedef const unsigned char prog_uchar;
@@ -80,9 +80,10 @@
debugSerial.baud(921600); //uses max serial speed
#ifdef useDebugSerial
+
+ debugSerial.baud(921600);
debugSerial.printf("MPU6050::initialize start\n");
#endif
-
setClockSource(MPU6050_CLOCK_PLL_XGYRO);
setFullScaleGyroRange(MPU6050_GYRO_FS_250);
setFullScaleAccelRange(MPU6050_ACCEL_FS_2);
