Go Down

Topic: CONNECTING an MPU6050 (Read 46 times) previous topic - next topic

I have downloaded the MPU 6050 code from jrowberg/i2cdevlib. After extracting the files, the program does not compile and gives a series of errors as unde:-


 
MPU6050_DMP6.ino:46:20: error: I2Cdev.h: No such file or directory
MPU6050_DMP6.ino:48:40: error: MPU6050_6Axis_MotionApps20.h: No such file or directory
MPU6050_DMP6:61: error: 'MPU6050' does not name a type
MPU6050_DMP6:133: error: 'Quaternion' does not name a type
MPU6050_DMP6:134: error: 'VectorInt16' does not name a type
MPU6050_DMP6:135: error: 'VectorInt16' does not name a type
MPU6050_DMP6:136: error: 'VectorInt16' does not name a type
MPU6050_DMP6:137: error: 'VectorFloat' does not name a type
MPU6050_DMP6.ino: In function 'void setup()':
MPU6050_DMP6:184: error: 'mpu' was not declared in this scope
MPU6050_DMP6.ino: In function 'void loop()':
MPU6050_DMP6:263: error: 'mpu' was not declared in this scope
MPU6050_DMP6:313: error: 'q' was not declared in this scope
MPU6050_DMP6:314: error: 'gravity' was not declared in this scope

Could some one please me.
Thanks
Sanjay

Paul__B

Start by telling us what you are trying to do, and post - using the "code" tag function - the scroll icon with the two little brackets - the code that will not compile.

It is your code that will not compile, so unless we can see it, we have no idea whatever what you have done wrong!

JimboZA

My guess is that there's a library missing.
"Could you do the egg bacon spam and sausage without the spam then? "

No PMs for help please.
DO NOT power servos from Arduino 5V: give them their own power and connect the grounds.

Go Up