MPU6050 DMP sample code.

Dependencies:   MPU6050-DMP-Ian mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers config.h Source File

config.h

00001 // FIFO rate = 200Hz / (1 + this value)
00002 // For example, 0x01 is 100Hz, 0x03 is 50Hz.
00003 // 0x00 to 0x09
00004 #define IMU_FIFO_RATE_DIVIDER 0x09
00005 
00006 // Sample rate = 1kHz / (1 + this valye)
00007 // For example, 4 is 200Hz.
00008 #define IMU_SAMPLE_RATE_DIVIDER 4
00009 
00010 // measuring range of gyroscope (±n deg/s)
00011 // But other value doesn't yet support.
00012 #define MPU6050_GYRO_FS MPU6050_GYRO_FS_2000
00013 
00014 // measuring range of acceleration sensor (±n g)
00015 // But other value doesn't yet support.
00016 #define MPU6050_ACCEL_FS MPU6050_ACCEL_FS_2
00017 
00018 #define PC_BAUDRATE 921600