demo of the optimized MPU6050 library
Dependencies: MPU6050-DMP mbed
Fork of MPU6050-DMP_test by
config.h@3:0fd6f597d8dd, 2015-02-26 (annotated)
- Committer:
- zcw607
- Date:
- Thu Feb 26 04:02:36 2015 +0000
- Revision:
- 3:0fd6f597d8dd
- Parent:
- 0:a89e198f9bf7
test modified library
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 | |
zcw607 | 3:0fd6f597d8dd | 18 | #define PC_BAUDRATE 115200 |