![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
code to fly a quadrocopter
config.h@0:b0f9c5ac0305, 2020-05-05 (annotated)
- Committer:
- DD1993
- Date:
- Tue May 05 21:11:38 2020 +0000
- Revision:
- 0:b0f9c5ac0305
initial
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
DD1993 | 0:b0f9c5ac0305 | 1 | // FIFO rate = 200Hz / (1 + this value) |
DD1993 | 0:b0f9c5ac0305 | 2 | // For example, 0x01 is 100Hz, 0x03 is 50Hz. |
DD1993 | 0:b0f9c5ac0305 | 3 | // 0x00 to 0x09 |
DD1993 | 0:b0f9c5ac0305 | 4 | #define IMU_FIFO_RATE_DIVIDER 0x09 |
DD1993 | 0:b0f9c5ac0305 | 5 | |
DD1993 | 0:b0f9c5ac0305 | 6 | // Sample rate = 1kHz / (1 + this valye) |
DD1993 | 0:b0f9c5ac0305 | 7 | // For example, 4 is 200Hz. |
DD1993 | 0:b0f9c5ac0305 | 8 | #define IMU_SAMPLE_RATE_DIVIDER 3 |
DD1993 | 0:b0f9c5ac0305 | 9 | |
DD1993 | 0:b0f9c5ac0305 | 10 | // measuring range of gyroscope (±n deg/s) |
DD1993 | 0:b0f9c5ac0305 | 11 | // But other value doesn't yet support. |
DD1993 | 0:b0f9c5ac0305 | 12 | #define MPU6050_GYRO_FS MPU6050_GYRO_FS_2000 |
DD1993 | 0:b0f9c5ac0305 | 13 | |
DD1993 | 0:b0f9c5ac0305 | 14 | // measuring range of acceleration sensor (±n g) |
DD1993 | 0:b0f9c5ac0305 | 15 | // But other value doesn't yet support. |
DD1993 | 0:b0f9c5ac0305 | 16 | #define MPU6050_ACCEL_FS MPU6050_ACCEL_FS_2 |
DD1993 | 0:b0f9c5ac0305 | 17 | |
DD1993 | 0:b0f9c5ac0305 | 18 | #define PC_BAUDRATE 115200 |