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: lib/mpu6050_2/config.h
- Revision:
- 18:97eba56f82e4
- Parent:
- 14:6f214ea5722e
diff -r 61edad76efd7 -r 97eba56f82e4 lib/mpu6050_2/config.h --- a/lib/mpu6050_2/config.h Mon Jan 18 02:14:23 2016 +0000 +++ b/lib/mpu6050_2/config.h Tue Jan 19 10:22:47 2016 +0000 @@ -4,7 +4,7 @@ // FIFO rate = 200Hz / (1 + this value) // For example, 0x01 is 100Hz, 0x03 is 50Hz. // 0x00 to 0x09 -#define IMU_FIFO_RATE_DIVIDER 0x09 +#define IMU_FIFO_RATE_DIVIDER 0x03//0x09 // Sample rate = 1kHz / (1 + this valye) // For example, 4 is 200Hz. @@ -27,7 +27,7 @@ //#define OUTPUT_FOR_TEAPOT //#define OUTPUT_TEMPERATURE -#define DEG_TO_RAD(x) ( x * 0.01745329 ) -#define RAD_TO_DEG(x) ( x * 57.29578 ) +#define DEG_TO_RAD(x) ( x * 0.01745329f ) +#define RAD_TO_DEG(x) ( x * 57.29578f ) #endif /*_CONFIG_H_*/ \ No newline at end of file