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.
Dependencies: mbed Servo MC33926 encoder
Fork of FlexV1 by
Diff: MPU6050_6Axis_MotionApps20.h
- Revision:
- 9:7b0f9fd4586b
- Parent:
- 6:029b4b8111ef
--- a/MPU6050_6Axis_MotionApps20.h Sat Mar 27 00:06:06 2021 +0000 +++ b/MPU6050_6Axis_MotionApps20.h Tue Jan 25 14:59:26 2022 +0000 @@ -326,7 +326,7 @@ uint8_t MPU6050::dmpInitialize() { // reset device Serial pc(USBTX, USBRX); // tx, rx - pc.baud(115200); + pc.baud(9600); wait_ms(50); pc.printf("\n\nSet USB Baudrate to 115200...\n"); @@ -367,15 +367,15 @@ else DEBUG_PRINT("invalid!\n"); // get X/Y/Z gyro offsets - /* - DEBUG_PRINT("\nReading gyro offset TC values...\n"); - int8_t xgOffsetTC = mpu.getXGyroOffsetTC(); - int8_t ygOffsetTC = getYGyroOffsetTC(); - int8_t zgOffsetTC = getZGyroOffsetTC(); - DEBUG_PRINTF("X gyro offset = %u\n",xgOffset); - DEBUG_PRINTF("Y gyro offset = %u\n",ygOffset); - DEBUG_PRINTF("Z gyro offset = %u\n",zgOffset); - */ + + //DEBUG_PRINT("\nReading gyro offset TC values...\n"); + //int8_t ZAOffset = getZAccelOffset(); + //int8_t ygOffset = getYGyroOffset(); + //int8_t zgOffset = getZGyroOffset(); + //DEBUG_PRINTF("Z acc offset = %u\n",ZAOffset); + //DEBUG_PRINTF("Y gyro offset = %u\n",ygOffset); + //DEBUG_PRINTF("Z gyro offset = %u\n",zgOffset); + // setup weird slave stuff (?) DEBUG_PRINT("Setting slave 0 address to 0x7F...\n"); setSlaveAddress(0, 0x7F);