For the SUTD research project. This is a sample code to access the MPU6050

Dependencies:   MPU6050 Terminal mbed

Committer:
majik
Date:
Sun Dec 01 06:22:13 2013 +0000
Revision:
0:59f6f94baeb1
Robot orientation test

Who changed what in which revision?

UserRevisionLine numberNew contents of line
majik 0:59f6f94baeb1 1 struct data{
majik 0:59f6f94baeb1 2 double time; //previous timestamp
majik 0:59f6f94baeb1 3 int acc[3]; //previous acceleration (3axis)
majik 0:59f6f94baeb1 4 int gyr[3]; //previous gyro data (3axis)
majik 0:59f6f94baeb1 5 double v; //previous velocity (m/s)
majik 0:59f6f94baeb1 6 double d; //previous displacemtn (m)
majik 0:59f6f94baeb1 7 int vO; //velocity simpsons rule value 1
majik 0:59f6f94baeb1 8 int vP; //velocity simpsons rule value 2
majik 0:59f6f94baeb1 9 int dO; //distance simpsons rule value 1
majik 0:59f6f94baeb1 10 int dP; //distance simpsons rule value 2
majik 0:59f6f94baeb1 11 };