![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
For the SUTD research project. This is a sample code to access the MPU6050
Dependencies: MPU6050 Terminal mbed
Diff: main.h
- Revision:
- 0:59f6f94baeb1
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.h Sun Dec 01 06:22:13 2013 +0000 @@ -0,0 +1,11 @@ +struct data{ + double time; //previous timestamp + int acc[3]; //previous acceleration (3axis) + int gyr[3]; //previous gyro data (3axis) + double v; //previous velocity (m/s) + double d; //previous displacemtn (m) + int vO; //velocity simpsons rule value 1 + int vP; //velocity simpsons rule value 2 + int dO; //distance simpsons rule value 1 + int dP; //distance simpsons rule value 2 + }; \ No newline at end of file