Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed AQM1602 HMC6352 PID
Diff: config.h
- Revision:
- 13:f8f5bd2f0525
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/config.h Fri Nov 20 07:45:06 2015 +0000 @@ -0,0 +1,33 @@ +#ifndef _CONFIG_H_ +#define _CONFIG_H_ + +// FIFO rate = 200Hz / (1 + this value) +// For example, 0x01 is 100Hz, 0x03 is 50Hz. +// 0x00 to 0x09 +#define IMU_FIFO_RATE_DIVIDER 0x09 + +// Sample rate = 1kHz / (1 + this valye) +// For example, 4 is 200Hz. +#define IMU_SAMPLE_RATE_DIVIDER 4 + +// measuring range of gyroscope (±n deg/s) +// But other value doesn't yet support. +#define MPU6050_GYRO_FS MPU6050_GYRO_FS_2000 + +// measuring range of acceleration sensor (±n g) +// But other value doesn't yet support. +#define MPU6050_ACCEL_FS MPU6050_ACCEL_FS_2 + +#define PC_BAUDRATE 9600//921600 + +// Define Necessary. +//#define OUTPUT_QUATERNION +//#define OUTPUT_EULER +#define OUTPUT_ROLL_PITCH_YAW +//#define OUTPUT_FOR_TEAPOT +//#define OUTPUT_TEMPERATURE + +#define DEG_TO_RAD(x) ( x * 0.01745329 ) +#define RAD_TO_DEG(x) ( x * 57.29578 ) + +#endif /*_CONFIG_H_*/ \ No newline at end of file