mbed using PB8,PB9 to contorl I2C successfull dmpinitialize MPU6050
Dependencies: MPU6050_DMP_Nucleo-I2Cdev mbed
Fork of MPU9150_nucleo_i2cdev by
Diff: config.h
- Revision:
- 0:706ce7540c8f
- Child:
- 1:ca8638ade4ab
diff -r 000000000000 -r 706ce7540c8f config.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/config.h Sun Mar 29 08:50:27 2015 +0000 @@ -0,0 +1,18 @@ +// FIFO rate = 200Hz / (1 + this value) +// For example, 0x01 is 100Hz, 0x03 is 50Hz. +// 0x00 to 0x09 +#define IMU_FIFO_RATE_DIVIDER 0x09 + +// Sample rate = 1kHz / (1 + this valye) +// For example, 4 is 200Hz. +#define IMU_SAMPLE_RATE_DIVIDER 4 + +// measuring range of gyroscope (±n deg/s) +// But other value doesn't yet support. +#define MPU6050_GYRO_FS MPU6050_GYRO_FS_2000 + +// measuring range of acceleration sensor (±n g) +// But other value doesn't yet support. +#define MPU6050_ACCEL_FS MPU6050_ACCEL_FS_2 + +#define PC_BAUDRATE 921600 \ No newline at end of file