mbed using PB8,PB9 to contorl I2C successfull dmpinitialize MPU6050
Dependencies: MPU6050_DMP_Nucleo-I2Cdev mbed
Fork of MPU9150_nucleo_i2cdev by
config.h@2:bc8df2b3a253, 2018-10-26 (annotated)
- Committer:
- WeberYang
- Date:
- Fri Oct 26 10:00:02 2018 +0000
- Revision:
- 2:bc8df2b3a253
- Parent:
- 1:ca8638ade4ab
ok can use on the NUCLEOF103RB
Who changed what in which revision?
User | Revision | Line number | New 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 | |
WeberYang | 1:ca8638ade4ab | 18 | #define PC_BAUDRATE 115200 |