
MPU6050 DMP sample code.
Dependencies: MPU6050-DMP-Ian mbed
config.h@0:a89e198f9bf7, 2015-01-29 (annotated)
- Committer:
- Match314
- Date:
- Thu Jan 29 11:56:03 2015 +0000
- Revision:
- 0:a89e198f9bf7
up
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Match314 | 0:a89e198f9bf7 | 1 | // FIFO rate = 200Hz / (1 + this value) |
Match314 | 0:a89e198f9bf7 | 2 | // For example, 0x01 is 100Hz, 0x03 is 50Hz. |
Match314 | 0:a89e198f9bf7 | 3 | // 0x00 to 0x09 |
Match314 | 0:a89e198f9bf7 | 4 | #define IMU_FIFO_RATE_DIVIDER 0x09 |
Match314 | 0:a89e198f9bf7 | 5 | |
Match314 | 0:a89e198f9bf7 | 6 | // Sample rate = 1kHz / (1 + this valye) |
Match314 | 0:a89e198f9bf7 | 7 | // For example, 4 is 200Hz. |
Match314 | 0:a89e198f9bf7 | 8 | #define IMU_SAMPLE_RATE_DIVIDER 4 |
Match314 | 0:a89e198f9bf7 | 9 | |
Match314 | 0:a89e198f9bf7 | 10 | // measuring range of gyroscope (±n deg/s) |
Match314 | 0:a89e198f9bf7 | 11 | // But other value doesn't yet support. |
Match314 | 0:a89e198f9bf7 | 12 | #define MPU6050_GYRO_FS MPU6050_GYRO_FS_2000 |
Match314 | 0:a89e198f9bf7 | 13 | |
Match314 | 0:a89e198f9bf7 | 14 | // measuring range of acceleration sensor (±n g) |
Match314 | 0:a89e198f9bf7 | 15 | // But other value doesn't yet support. |
Match314 | 0:a89e198f9bf7 | 16 | #define MPU6050_ACCEL_FS MPU6050_ACCEL_FS_2 |
Match314 | 0:a89e198f9bf7 | 17 | |
Match314 | 0:a89e198f9bf7 | 18 | #define PC_BAUDRATE 921600 |