MPU DMP code modified for use with ST Nucelo boards. This program makes use of I2Cdev based DMP library.

Dependencies:   MPU6050_DMP_Nucleo-I2Cdev mbed

Committer:
akashvibhute
Date:
Sun Mar 29 08:50:27 2015 +0000
Revision:
0:706ce7540c8f
MPU DMP code modified for use with ST Nucelo boards. This program makes use of I2Cdev based DMP library.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
akashvibhute 0:706ce7540c8f 1 // FIFO rate = 200Hz / (1 + this value)
akashvibhute 0:706ce7540c8f 2 // For example, 0x01 is 100Hz, 0x03 is 50Hz.
akashvibhute 0:706ce7540c8f 3 // 0x00 to 0x09
akashvibhute 0:706ce7540c8f 4 #define IMU_FIFO_RATE_DIVIDER 0x09
akashvibhute 0:706ce7540c8f 5
akashvibhute 0:706ce7540c8f 6 // Sample rate = 1kHz / (1 + this valye)
akashvibhute 0:706ce7540c8f 7 // For example, 4 is 200Hz.
akashvibhute 0:706ce7540c8f 8 #define IMU_SAMPLE_RATE_DIVIDER 4
akashvibhute 0:706ce7540c8f 9
akashvibhute 0:706ce7540c8f 10 // measuring range of gyroscope (±n deg/s)
akashvibhute 0:706ce7540c8f 11 // But other value doesn't yet support.
akashvibhute 0:706ce7540c8f 12 #define MPU6050_GYRO_FS MPU6050_GYRO_FS_2000
akashvibhute 0:706ce7540c8f 13
akashvibhute 0:706ce7540c8f 14 // measuring range of acceleration sensor (±n g)
akashvibhute 0:706ce7540c8f 15 // But other value doesn't yet support.
akashvibhute 0:706ce7540c8f 16 #define MPU6050_ACCEL_FS MPU6050_ACCEL_FS_2
akashvibhute 0:706ce7540c8f 17
akashvibhute 0:706ce7540c8f 18 #define PC_BAUDRATE 921600