
MPU6050 DMP sample code.
Dependencies: MPU6050-DMP-Ian mbed
config.h@2:7ef42101b204, 2015-02-22 (annotated)
- Committer:
- Match314
- Date:
- Sun Feb 22 03:09:44 2015 +0000
- Revision:
- 2:7ef42101b204
- Parent:
- 0:a89e198f9bf7
add comment
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 |