This is for our FYDP project. 2 MPU6050s are used
Diff: DMP/IMUDATA.h
- Revision:
- 0:21019d94ad33
diff -r 000000000000 -r 21019d94ad33 DMP/IMUDATA.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/DMP/IMUDATA.h Sat Mar 21 21:31:29 2015 +0000 @@ -0,0 +1,14 @@ +#ifndef IMUDATA_H +#define IMUDATA_H + +/**This struct is required for several function in DMP.cpp, ros_machine_interface.h, and reckon.cpp +*/ +struct IMU_DATA +{ + float ypr[3]; //save yaw/pitch/roll + float acc[3]; //save acceleration in x/y/z + float gyr[3]; //rate of rotation x/y/z + float quat[4]; //quaternion w/x/y/z +}; + +#endif \ No newline at end of file